/* ===== Design System — TKT colors + Linear structure ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-dark:    #080E1C;
    --bg-dark-2:  #0D1526;
    --bg-dark-3:  #111C30;
    --bg-light:   #F7F8FA;
    --accent-blue:   #046DED;
    --accent-yellow: #DEFB00;
    --text-dark:  #060F1E;
    --text-body:  rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.45);
    --text-white: #FFFFFF;
    --border-dark:  rgba(255,255,255,0.09);
    --border-light: #E4E7EC;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;
    --font-display: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;
    --section-pt: 96px;
    --section-pb: 128px;
    --content-max: 1344px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
img { display: block; }

/* ===== Navigation ===== */
nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(8,14,28,0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dark); z-index: 100;
}
.nav-container {
    max-width: 1440px; margin: 0 auto; padding: 0 72px;
    height: 72px; display: flex; align-items: center;
    justify-content: space-between; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 0; flex: 1; justify-content: center; align-items: center; }
.nav-links a {
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.6); transition: color 0.2s; white-space: nowrap;
    padding: 0 14px; line-height: 72px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-white); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-login {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6);
    padding: 0 14px; line-height: 72px; transition: color 0.2s;
}
.btn-login:hover { color: var(--text-white); }
.btn-start {
    font-size: 14px; font-weight: 600; color: var(--text-white);
    background: var(--accent-blue); padding: 10px 20px;
    border-radius: var(--radius-sm); transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap; box-shadow: 0 4px 20px rgba(4,109,237,0.35);
}
.btn-start:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== Language Switcher ===== */
.lang-switcher {
    position: relative;
    display: flex; align-items: center;
}
.lang-switcher-trigger {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; font-family: var(--font-body);
    color: rgba(255,255,255,0.5); cursor: pointer;
    background: none; border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm); padding: 6px 10px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap; line-height: 1;
}
.lang-switcher-trigger:hover,
.lang-switcher:hover .lang-switcher-trigger { color: var(--text-white); border-color: rgba(255,255,255,0.2); }
.lang-switcher-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.lang-switcher:hover .lang-switcher-trigger svg { transform: rotate(180deg); }
.lang-switcher-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #0F1623;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    transform: translateY(-4px);
    z-index: 200; min-width: 100px;
}
.lang-switcher:hover .lang-switcher-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-switcher-menu a {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6);
    padding: 8px 12px; border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap; line-height: 1;
}
.lang-switcher-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text-white); }
.lang-switcher-menu a.active { color: var(--text-white); font-weight: 600; }

/* ===== Nav Dropdown — mega-menu ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
    display: flex; align-items: center; gap: 16px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.6); cursor: pointer; transition: color 0.2s;
    white-space: nowrap; background: none; border: none; padding: 0 14px;
    line-height: 72px; font-family: var(--font-body);
}
.nav-dropdown-trigger.active,
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--text-white); }
.nav-dropdown-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* Panel */
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #0F1623;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* Pointer nub */
.nav-dropdown-menu::before {
    content: '';
    position: absolute; top: -5px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: #0F1623;
    border-top: 1px solid var(--border-dark);
    border-left: 1px solid var(--border-dark);
}

/* Grid layout inside panel */
.nav-menu-grid { display: grid; gap: 0; }
.nav-menu-grid--panoramai {
    grid-template-columns: 1fr 1fr 1fr;
    min-width: 580px;
    gap: 1px; background: var(--border-dark);
}
.nav-menu-grid--ai {
    grid-template-columns: 1fr 1fr;
    min-width: 420px;
    gap: 1px; background: var(--border-dark);
}
.nav-menu-col {
    background: #0F1623;
    display: flex; flex-direction: column; gap: 20px; padding: 16px;
}
.nav-menu-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px; border-radius: var(--radius-sm);
    transition: background 0.12s; text-decoration: none;
}
.nav-menu-item:hover { background: rgba(255,255,255,0.06); }
.nav-menu-item--featured { background: rgba(4,109,237,0.06); }
.nav-menu-item--featured:hover { background: rgba(4,109,237,0.1); }
.nav-menu-cat { display: none; }
.nav-menu-title {
    font-size: 14px; font-weight: 600; color: var(--text-white);
    line-height: 1.35; letter-spacing: -0.01em;
}
.nav-menu-desc {
    font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.45;
}
.nav-menu-divider { height: 1px; background: var(--border-dark); margin: 4px 8px; }

/* Legacy single-item dropdown (kept for backward compat) */
.nav-dropdown-item {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px; border-radius: var(--radius-sm); transition: background 0.15s;
}
.nav-dropdown-item + .nav-dropdown-item { margin-top: 8px; }
.nav-dropdown-item:hover { background: rgba(255,255,255,0.06); }
.dropdown-item-icon { display: none; }
.dropdown-item-title { font-size: 13px; font-weight: 600; color: var(--text-white); line-height: 1.4; }
.dropdown-item-desc { font-size: 11px; color: rgba(255,255,255,0.45); line-height: 1.3; }

/* ===== Shared Utilities ===== */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 32px; }

.section-label {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent-blue); background: rgba(4,109,237,0.08);
    padding: 4px 12px; border-radius: var(--radius-full);
    border: 1px solid rgba(4,109,237,0.2); margin-bottom: 20px;
}
.section-label--light {
    color: var(--accent-yellow); background: rgba(222,251,0,0.1);
    border-color: rgba(222,251,0,0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: 44px; font-weight: 700; line-height: 1.1;
    letter-spacing: -0.025em; color: var(--text-white); margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px; line-height: 1.65; color: var(--text-body);
    max-width: 600px; margin-bottom: 56px;
}
.section-subtitle--light { color: var(--text-body); }

.btn-large {
    display: inline-flex; align-items: center; gap: 10px;
    height: 50px; padding: 0 26px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer; border: none; white-space: nowrap;
}
.btn-large:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary-large {
    background: var(--accent-blue); color: var(--text-white);
    box-shadow: 0 4px 20px rgba(4,109,237,0.4);
}
.btn-secondary-large {
    background: rgba(255,255,255,0.07); color: var(--text-white);
    border: 1px solid var(--border-dark);
}
.btn-ghost-large {
    background: transparent; color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: var(--bg-dark); padding: 160px 0 80px;
    position: relative; overflow: hidden;
}
.page-hero-mesh {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 70% 10%, rgba(4,109,237,0.16) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(222,251,0,0.05) 0%, transparent 55%);
}
.page-hero-grain {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
.page-hero-content { position: relative; max-width: 760px; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: 52px; font-weight: 800; line-height: 1.08;
    letter-spacing: -0.035em; color: var(--text-white); margin-bottom: 20px;
}
.page-hero p {
    font-size: 18px; line-height: 1.7;
    color: var(--text-body); margin-bottom: 36px; max-width: 560px;
}

/* ===== CTA Strip ===== */
.cta-strip { background: var(--bg-dark); padding: 80px 0;
    border-top: 1px solid var(--border-dark); }
.cta-strip-inner {
    background: rgba(4,109,237,0.08); border: 1px solid rgba(4,109,237,0.2);
    border-radius: var(--radius-xl); padding: 56px 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
}
.cta-strip-inner::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(4,109,237,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-strip-text h2 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 700; color: var(--text-white);
    margin-bottom: 8px; letter-spacing: -0.02em;
}
.cta-strip-text p { font-size: 15px; color: var(--text-body); }

/* ===== Footer ===== */
footer {
    background: var(--bg-dark); border-top: 1px solid var(--border-dark);
    padding: 64px 0 32px;
}
.footer-container { max-width: 1440px; margin: 0 auto; padding: 0 72px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand > p {
    font-size: 14px; line-height: 1.65; color: var(--text-muted);
    margin-bottom: 24px; max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.07);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-links h4 {
    font-size: 12px; font-weight: 600; color: var(--text-white);
    text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-white); }
.footer-bottom {
    border-top: 1px solid var(--border-dark); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-copyright { font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-container, .container, .footer-container { padding: 0 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-strip-inner { flex-direction: column; align-items: flex-start; padding: 40px; }
    .page-hero h1 { font-size: 40px; }
    .section-title { font-size: 34px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .page-hero h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}
