/* Ilkov Group — Deep glass system. Shared by the secondary pages
   (feature pages, changelog). index.html carries its own copy of the
   tokens inline so the landing page needs no extra request. */
:root {
    --ground: #0B0F14;
    --ground-2: #0E151D;
    --ground-3: #0B1116;
    --text: #EAF0F4;
    --text-soft: #B8C4CC;
    --text-dim: #7C8A94;
    --accent: #47C2B4;
    --accent-bright: #7FE3D6;
    --accent-ink: #06110F;
    --pool-2: #7C6CF0;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-hi: rgba(255, 255, 255, 0.10);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-edge-hi: rgba(255, 255, 255, 0.22);
    --radius: 22px;
    --radius-sm: 14px;
    --display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
    --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--sans);
    background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 50%, var(--ground-3) 100%);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: clip;
    position: relative;
}
img, svg { max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent-bright); }
a:hover { color: #A9F0E7; }

/* Light pools: what the glass refracts. */
.pools { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pool { position: absolute; border-radius: 50%; filter: blur(28px); }
.pool-1 { width: 620px; height: 620px; right: -140px; top: -160px; background: radial-gradient(circle at 40% 40%, rgba(71,194,180,0.40), rgba(71,194,180,0) 65%); }
.pool-2 { width: 560px; height: 560px; left: -200px; top: 38vh; background: radial-gradient(circle at 50% 50%, rgba(124,108,240,0.30), rgba(124,108,240,0) 65%); }
.pool-3 { width: 760px; height: 420px; left: 30vw; bottom: -160px; background: radial-gradient(circle at 50% 50%, rgba(71,194,180,0.16), rgba(71,194,180,0) 70%); }

.glass {
    background: linear-gradient(135deg, var(--glass-hi), rgba(255,255,255,0.03));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--glass-edge-hi), 0 24px 60px rgba(0,0,0,0.38);
    border-radius: var(--radius);
}
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

nav.site-nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 24px; }
nav.site-nav .nav-inner {
    max-width: 1180px; margin: 0 auto; height: 64px; padding: 0 22px;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 18px;
}
nav.site-nav .logo img { width: 200px; display: block; filter: brightness(0) invert(1); }
nav.site-nav .nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
nav.site-nav .nav-links a { color: var(--text-soft); text-decoration: none; font-size: 0.86rem; font-weight: 500; padding: 9px 14px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
nav.site-nav .nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
nav.site-nav .nav-links a.nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
nav.site-nav .nav-links a.nav-cta:hover { background: var(--accent-bright); }

.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 150px 36px 96px; }
.page-hero { max-width: 760px; margin-bottom: 56px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 18px 0 20px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { font-size: 1.18rem; color: var(--text-soft); line-height: 1.65; max-width: 600px; }
.page h2 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 16px; }
.page p { color: var(--text-soft); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 56px; }
.card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.card p { font-size: 0.95rem; line-height: 1.65; }

.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--text); color: var(--ground); border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: transform 0.2s, background 0.2s; }
.btn-primary:hover { background: #FFFFFF; color: var(--ground); transform: translateY(-2px); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-glass { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.95rem; transition: transform 0.2s; }
.btn-glass:hover { color: var(--text); transform: translateY(-2px); }

.tier-tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); padding: 6px 10px; border-radius: 999px; background: rgba(71,194,180,0.12); border: 1px solid rgba(71,194,180,0.3); }

.changelog { display: flex; flex-direction: column; gap: 18px; }
.release { padding: 28px 30px; }
.release-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.release-head h2 { margin: 0; }
.release-head .date { font-family: var(--mono); font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.08em; }
.release ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.release li { color: var(--text-soft); font-size: 0.98rem; line-height: 1.6; padding-left: 18px; position: relative; }
.release li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

footer.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--glass-edge); padding: 40px 36px; }
footer.site-footer .footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
footer.site-footer .footer-left { font-size: 0.82rem; color: var(--text-dim); font-weight: 500; line-height: 1.9; }
footer.site-footer a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 0.82rem; }
footer.site-footer a:hover { color: var(--accent-bright); }
footer.site-footer .footer-links { display: flex; gap: 24px; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.nav-menu { display: none; }
.mobile-menu { display: none; }
@media (max-width: 768px) {
    nav.site-nav .nav-links { display: none; }
    nav.site-nav .nav-inner { justify-content: space-between; position: relative; z-index: 2; }
    .nav-menu {
        display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px;
        border-radius: 12px; border: 1px solid var(--glass-edge); background: rgba(255,255,255,0.06); color: var(--text);
        font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
        transition: background 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s, color 0.35s;
    }
    .nav-menu[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .nav-menu-icon { position: relative; width: 32px; height: 32px; display: inline-block; }
    .nav-menu-icon i { position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), top 0.3s cubic-bezier(0.16,1,0.3,1); }
    .nav-menu-icon i:first-child { top: 11px; } .nav-menu-icon i:last-child { top: 19px; }
    .nav-menu[aria-expanded="true"] .nav-menu-icon i:first-child { top: 15px; transform: rotate(225deg); }
    .nav-menu[aria-expanded="true"] .nav-menu-icon i:last-child { top: 15px; transform: rotate(135deg); }
    .mobile-menu { position: absolute; top: 74px; left: 24px; right: 24px; z-index: 1; }
    .mobile-menu.open { display: block; }
    .mobile-menu-panel { padding: 10px 16px 16px; transform-origin: top center; animation: unfold 0.55s cubic-bezier(0.16,1,0.3,1) both; }
    .mobile-menu.closing .mobile-menu-panel { animation: unfold 0.28s cubic-bezier(0.7,0,0.84,0) reverse both; }
    @keyframes unfold { from { opacity: 0; clip-path: inset(0 0 100% 0 round 22px); transform: translateY(-14px) scaleY(0.9); } to { opacity: 1; clip-path: inset(0 0 0 0 round 22px); transform: none; } }
    .mobile-menu-links { display: flex; flex-direction: column; }
    .mobile-menu-links a {
        display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px;
        color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
        border-bottom: 1px solid var(--glass-edge);
        opacity: 0; animation: menuItem 0.6s cubic-bezier(0.16,1,0.3,1) both;
    }
    .mobile-menu-links a:hover { color: var(--text); text-decoration: none; }
    .mobile-menu-links a:last-child { border-bottom: 0; }
    .mobile-menu-links a .n { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
    .mobile-menu-links a:nth-child(1) { animation-delay: 0.06s; } .mobile-menu-links a:nth-child(2) { animation-delay: 0.11s; }
    .mobile-menu-links a:nth-child(3) { animation-delay: 0.16s; } .mobile-menu-links a:nth-child(4) { animation-delay: 0.21s; }
    .mobile-menu-links a:nth-child(5) { animation-delay: 0.26s; } .mobile-menu-links a:nth-child(6) { animation-delay: 0.31s; }
    @keyframes menuItem { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
    .mobile-menu.closing .mobile-menu-links a { animation: menuItem 0.2s ease reverse both; animation-delay: 0s; }
    .mobile-menu-cta {
        display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 14px;
        background: var(--accent); color: var(--accent-ink); border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 0.95rem;
        opacity: 0; animation: menuItem 0.6s cubic-bezier(0.16,1,0.3,1) 0.38s both;
    }
    .mobile-menu-cta:hover { color: var(--accent-ink); text-decoration: none; }
    .mobile-menu.closing .mobile-menu-cta { animation: menuItem 0.2s ease reverse both; }
    .mobile-menu-cta svg { width: 18px; height: 18px; }
    .page { padding: 120px 22px 72px; }
    footer.site-footer .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
