:root {
    --accent: rgba(0, 175, 152, 1);
    --accent-light: rgba(0, 175, 152, 0.15);
    --accent-glow: rgba(0, 175, 152, 0.4);

    --bg-base: #050a09;
    --bg-card: #0a1210;
    --bg-card-hover: #0f1a17;
    --bg-subtle: #0d1714;
    --text-primary: #ffffff;
    --text-secondary: #94a3a0;
    --text-muted: #5c6b68;
    --border: rgba(0, 175, 152, 0.15);
    --border-strong: rgba(0, 175, 152, 0.3);

    --logo-url: url('https://typestor.lnln.eu/brand/lnln/image/t_w.svg');
}

[data-theme="light"] {
    --bg-base: #f0fdf9;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdfa;
    --bg-subtle: #e6faf5;
    --text-primary: #0a1210;
    --text-secondary: #3d5854;
    --text-muted: #6b8580;
    --border: rgba(0, 175, 152, 0.2);
    --border-strong: rgba(0, 175, 152, 0.35);
    --accent-glow: rgba(0, 175, 152, 0.25);

    --logo-url: url('https://typestor.lnln.eu/brand/lnln/image/t_b.svg');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Lexend", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 175, 152, 0.12), transparent),
        radial-gradient(ellipse 40% 30% at 0% 80%, rgba(0, 175, 152, 0.08), transparent);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.04;
    mask-image: linear-gradient(to bottom, black 0%, transparent 50%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 50%);
}

.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; top: -150px; right: -100px; opacity: 0.12; }
.orb-2 { width: 400px; height: 400px; bottom: 20%; left: -150px; opacity: 0.08; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; bottom: -100px; right: 20%; opacity: 0.06; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.nav.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

/* Logo switching for themes */
.logo-dark { display: block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.nav-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover { color: var(--text-primary); background: var(--accent-light); }

.nav-btn {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

.theme-toggle {
    width: 38px;
    height: 38px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    margin-left: 0.75rem;
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.theme-toggle .icon-dark { opacity: 1; }
.theme-toggle .icon-light { opacity: 0; position: absolute; }

[data-theme="light"] .theme-toggle .icon-dark { opacity: 0; }
[data-theme="light"] .theme-toggle .icon-light { opacity: 1; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.625rem;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 2.5rem;
    position: relative;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-logo::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--accent);
    border-radius: 40px;
    opacity: 0.15;
    filter: blur(30px);
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.hero-logo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px var(--accent-glow));
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #00d4aa 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 500px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 8px 40px var(--accent-glow); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.scroll-hint span { margin-right: -0.1em; }
.scroll-hint iconify-icon { animation: bounce 2s ease-in-out infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Section */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.25rem;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 60px var(--accent-light);
}

.bento-item:hover::before { opacity: 1; }

.bento-item.featured { grid-column: span 2; grid-row: span 2; }
.bento-item.tall { grid-row: span 2; }

.bento-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.bento-icon iconify-icon { font-size: 28px; color: var(--accent); }

.bento-content { flex: 1; position: relative; z-index: 1; }

.bento-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bento-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.bento-link iconify-icon { transition: transform 0.2s; }
.bento-item:hover .bento-link iconify-icon { transform: translateX(4px); }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover { border-color: var(--accent); }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    padding: 4rem 2rem 3rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img { height: 28px; opacity: 0.7; }
.footer-brand span { font-weight: 600; color: var(--text-muted); }

.footer-links { display: flex; gap: 2rem; }

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.featured { grid-column: span 2; grid-row: span 1; }
    .bento-item.tall { grid-row: span 1; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-link { display: none; }
    .nav-btn { display: none; }
    .hero { padding: 6rem 1.25rem 4rem; }
    .hero-logo { width: 100px; height: 100px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.featured { grid-column: span 1; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .section { padding: 4rem 1.25rem; }
}

.nav-logo, .nav-link, .nav-btn, .footer-link { min-height: 44px; display: inline-flex; align-items: center; }
.theme-toggle { width: 44px; height: 44px; flex-shrink: 0; }
@media (max-width: 640px) { .nav-link, .nav-btn { display: none; } }
.footer-link { padding: 0 0.5rem; }
.footer-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }

.faq { padding: 2rem 2rem 6rem; position: relative; z-index: 1; }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: 1.75rem; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.faq-item { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.4rem; font-weight: 600; }
.faq-item p { font-size: 0.95rem; }
.faq-item a { color: var(--accent); }
.footer-updated { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 640px) { .faq { padding: 1rem 1.25rem 4rem; } }
