/* ============================================
   MoiSoft — Design System v2
   Platform-grade design, Xsolla-inspired
   Light default + Dark toggle
   ============================================ */

/* ── Theme: Light (default) ── */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8f8;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-hero: linear-gradient(160deg, #f8fbff 0%, #eef6ff 40%, #f0f0ff 100%);

    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);

    --cyan: #0099cc;
    --cyan-vivid: #00b8e6;
    --cyan-bg: rgba(0, 153, 204, 0.06);
    --cyan-bg-strong: rgba(0, 153, 204, 0.12);
    --purple: #6c5ce7;
    --purple-bg: rgba(108, 92, 231, 0.06);
    --green: #00b894;
    --green-bg: rgba(0, 184, 148, 0.06);
    --orange: #e17055;
    --orange-bg: rgba(225, 112, 85, 0.06);

    --gradient-brand: linear-gradient(135deg, #0099cc 0%, #6c5ce7 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(0,153,204,0.1) 0%, rgba(108,92,231,0.1) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(0,153,204,0.12) 0%, transparent 60%);

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-heading: #0f172a;
    --text-on-accent: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(0,153,204,0.15);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'JetBrains Mono', 'Fira Code', monospace;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    --header-h: 72px;
    --container-xl: 1280px;
    --container: 1120px;
    --container-sm: 800px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
    --duration-slow: 0.6s;
}

/* ── Theme: Dark ── */
[data-theme="dark"] {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    --bg-glass: rgba(10, 10, 15, 0.8);
    --bg-hero: linear-gradient(160deg, #0a0a14 0%, #0d0d1a 40%, #0a0f14 100%);

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);

    --cyan: #00d4ff;
    --cyan-vivid: #33ddff;
    --cyan-bg: rgba(0, 212, 255, 0.08);
    --cyan-bg-strong: rgba(0, 212, 255, 0.15);
    --purple: #917AFF;
    --purple-bg: rgba(145, 122, 255, 0.08);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.08);
    --orange: #fb923c;
    --orange-bg: rgba(251, 146, 60, 0.08);

    --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #917AFF 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, rgba(145,122,255,0.12) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.15) 0%, transparent 60%);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-heading: #f8fafc;
    --text-on-accent: #0a0a0a;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 60px rgba(0,212,255,0.2);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--xl { max-width: var(--container-xl); }
.container--sm { max-width: var(--container-sm); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-mono { font-family: var(--font-mono); font-size: 0.875rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-brand);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text-heading);
    border: 1px solid var(--border-strong);
}
.btn--secondary:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    color: var(--cyan);
    padding: 14px 8px;
}
.btn--ghost:hover { opacity: 0.8; }
.btn--ghost svg { transition: transform var(--duration) var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn--sm { padding: 10px 20px; font-size: 0.8125rem; }
.btn--lg { padding: 18px 40px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Lucide Icons ── */
.lucide { stroke-width: 1.75; vertical-align: middle; flex-shrink: 0; }

/* Context-specific sizes */
.tool-tile__icon   .lucide { width: 24px; height: 24px; }
.hero-pill         .lucide { width: 13px; height: 13px; }
.t-sidebar-card__header .lucide,
.is-sidebar-card__header .lucide { width: 14px; height: 14px; }
.img-demo__label   .lucide { width: 12px; height: 12px; }

/* ── Label / Badge ── */
.label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.label--cyan { color: var(--cyan); background: var(--cyan-bg); border: 1px solid var(--cyan-bg-strong); }
.label--purple { color: var(--purple); background: var(--purple-bg); }
.label--green { color: var(--green); background: var(--green-bg); }

.tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.tag:hover { color: var(--cyan); background: var(--cyan-bg); }

/* ── Pulse dot ── */
.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--green);
    animation: pulse-ring 2s ease-out infinite;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-heading);
}

.header__nav { display: flex; gap: 8px; }

.header__link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.header__link:hover { color: var(--text-heading); background: var(--bg-tertiary); }
.header__link.active { color: var(--text-heading); }

.header__actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--text-heading); }
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
    z-index: 101;
}
.header__burger span {
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}
.header__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.open span:nth-child(2) { opacity: 0; }
.header__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nav-overlay__link {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 24px;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}
.nav-overlay__link:hover,
.nav-overlay__link.active { color: var(--text-heading); background: var(--cyan-bg); }

/* ============================================
   HERO — Full-impact, product-grade
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    background: var(--bg-hero);
    overflow: hidden;
}

/* Ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: var(--gradient-glow);
    pointer-events: none;
}

/* Animated grid background */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: var(--cyan-bg);
    border: 1px solid var(--cyan-bg-strong);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 32px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
}
.hero__title .line-2 {
    display: block;
    margin-top: 4px;
}

.hero__subtitle {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual — floating product cards */
.hero__visual {
    position: relative;
    min-height: 480px;
    perspective: 1000px;
}

.hero__showcase {
    position: relative;
    width: 100%;
    height: 480px;
}

/* Main floating panel */
.hero__panel {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.hero__panel--main {
    top: 10%;
    left: 5%;
    width: 320px;
    animation: float-1 8s ease-in-out infinite;
}

.hero__panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__panel-dots {
    display: flex;
    gap: 6px;
}
.hero__panel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.hero__panel-dot--red { background: #ff5f57; }
.hero__panel-dot--yellow { background: #ffbd2e; }
.hero__panel-dot--green { background: #28c840; }

.hero__panel-body {
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.hero__panel-body .kw { color: var(--purple); }
.hero__panel-body .fn { color: var(--cyan); }
.hero__panel-body .str { color: var(--green); }
.hero__panel-body .cm { color: var(--text-tertiary); }

/* Metric cards */
.hero__metric {
    position: absolute;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.hero__metric--1 {
    top: 5%;
    right: 0;
    animation: float-2 7s ease-in-out infinite;
}
.hero__metric--2 {
    bottom: 15%;
    right: 10%;
    animation: float-3 9s ease-in-out infinite;
}
.hero__metric--3 {
    bottom: 8%;
    left: 0;
    animation: float-2 6s ease-in-out infinite 1s;
}

.hero__metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
}
.hero__metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}
.hero__metric-bar {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    overflow: hidden;
}
.hero__metric-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-brand);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2.5s ease-in-out infinite;
}

/* ============================================
   SECTION — Shared
   ============================================ */
.section {
    position: relative;
    overflow: hidden;
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 16px;
}
.section__label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--cyan);
    border-radius: 1px;
}

/* ============================================
   TOOLS — Bento Grid (product-grade)
   ============================================ */
.tools-section {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 32px;
}

.tools-header__text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 16px;
}

.bento__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento__item:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Bento decorative glow on hover */
.bento__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.bento__item:hover::before { opacity: 1; }

.bento__item--wide { grid-column: span 7; }
.bento__item--medium { grid-column: span 5; }
.bento__item--third { grid-column: span 4; }
.bento__item--half { grid-column: span 6; }

.bento__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
}
.bento__icon--cyan { background: var(--cyan-bg-strong); color: var(--cyan); }
.bento__icon--purple { background: var(--purple-bg); color: var(--purple); }
.bento__icon--green { background: var(--green-bg); color: var(--green); }
.bento__icon--orange { background: var(--orange-bg); color: var(--orange); }

.bento__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.bento__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.bento__footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bento__arrow {
    color: var(--cyan);
    transition: transform var(--duration) var(--ease);
}
.bento__item:hover .bento__arrow { transform: translateX(4px); }

/* Bento preview mock */
.bento__preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    overflow: hidden;
}

/* ============================================
   ABOUT — Asymmetric split
   ============================================ */
.about-section {
    padding: 160px 0 120px;
}

.about__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: start;
}

.about__sticky {
    position: sticky;
    top: calc(var(--header-h) + 40px);
}

.about__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-top: 12px;
    margin-bottom: 24px;
}

.about__text {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.about__stat {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.about__stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about__stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Tech stack — staggered pills */
.about__right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about__tech-group h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.about__tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tech-pill {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--duration) var(--ease);
}
.tech-pill:hover {
    border-color: var(--cyan);
    background: var(--cyan-bg);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   TIMELINE (.tl)
   ============================================ */
.tl-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.tl-header {
    text-align: center;
    margin-bottom: 64px;
}

.tl-header__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 8px 0 0;
}

.tl {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 28px;
}

.tl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.tl__item {
    position: relative;
    padding: 0 0 48px 28px;
}

.tl__item:last-child {
    padding-bottom: 0;
}

.tl__marker {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--cyan-bg);
}

.tl__year {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--cyan-bg);
    border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
    border-radius: 4px;
    padding: 2px 10px;
    margin-bottom: 10px;
}

.tl__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    font-family: var(--font-heading);
    margin: 0 0 8px;
    line-height: 1.3;
}

.tl__text {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.75;
    margin: 0;
}

/* ============================================
   CASES — Staggered / asymmetric
   ============================================ */
.cases-section {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 24px;
}
.cases-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
}

.cases__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 16px;
}
.cases__grid > :nth-child(2) { margin-top: 64px; }

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 16px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}
.case-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

/* Case image placeholder */
.case-card__visual {
    width: 100%;
    height: 200px;
    border-radius: var(--radius);
    background: var(--gradient-brand-soft);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.case-card__visual svg { opacity: 0.3; }

.case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.case-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.case-card__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-card__result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--cyan-bg);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--cyan);
}
.case-card__result svg { flex-shrink: 0; }

/* ============================================
   SERVICES — Feature blocks, alternating
   ============================================ */
.services-section {
    padding: 140px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}
.services-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
    margin-bottom: 16px;
}
.services-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
}
.service-block:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.service-block--reverse { direction: rtl; }
.service-block--reverse > * { direction: ltr; }

.service-block__content { max-width: 480px; }

.service-block__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-block__icon--cyan { background: var(--cyan-bg-strong); color: var(--cyan); }
.service-block__icon--purple { background: var(--purple-bg); color: var(--purple); }
.service-block__icon--green { background: var(--green-bg); color: var(--green); }

.service-block__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.service-block__desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}
.service-block__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.service-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
}
.service-feature__check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--cyan-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Service visual panel */
.service-block__visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-block__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand-soft);
    opacity: 0.5;
}

/* ============================================
   HOW IT WORKS — Steps
   ============================================ */
.steps-section {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.steps-header {
    text-align: center;
    margin-bottom: 80px;
}
.steps-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.step {
    background: var(--bg-card);
    padding: 40px 32px;
    position: relative;
}
.step:hover { background: var(--bg-card-hover); }

.step__number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 20px;
    line-height: 1;
}

.step__title {
    font-size: 1.125rem;
    margin-bottom: 10px;
}
.step__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-section {
    padding: 140px 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 64px;
}
.comparison-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 12px;
    margin-bottom: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 28px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-heading);
    background: var(--bg-tertiary);
}
.comparison-table thead th:nth-child(2) {
    background: var(--cyan-bg-strong);
    color: var(--cyan);
}

.comparison-table tbody td {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.comparison-table tbody td:nth-child(2) {
    background: var(--cyan-bg);
    color: var(--text-heading);
    font-weight: 500;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

.check-icon { color: var(--green); }
.cross-icon { color: var(--text-tertiary); }

/* ============================================
   FAQ — Premium accordion
   ============================================ */
.faq-section { padding: 140px 0; background: var(--bg-secondary); }

.faq__layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 80px;
    align-items: start;
}

.faq__left {
    position: sticky;
    top: calc(var(--header-h) + 40px);
}
.faq__left h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: 12px;
    margin-bottom: 16px;
}

.accordion { display: flex; flex-direction: column; gap: 8px; }

.accordion__item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease);
}
.accordion__item:has(.accordion__trigger[aria-expanded="true"]) {
    border-color: var(--cyan-bg-strong);
}

.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    text-align: left;
    transition: color var(--duration) var(--ease);
    gap: 16px;
}
.accordion__trigger:hover { color: var(--cyan); }
.accordion__trigger svg {
    flex-shrink: 0;
    transition: transform var(--duration) var(--ease);
    color: var(--text-tertiary);
}
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--cyan); }

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.accordion__content p {
    padding: 0 24px 22px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA — Full-width with ambient bg
   ============================================ */
.cta-section { padding: 140px 0; }

.cta-block {
    position: relative;
    text-align: center;
    padding: 100px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand-soft);
    opacity: 0.6;
}
.cta-block::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan-bg-strong) 0%, transparent 70%);
    pointer-events: none;
}

.cta-block__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    position: relative;
    margin-bottom: 16px;
}
.cta-block .text-secondary {
    position: relative;
    margin-bottom: 40px;
    font-size: 1.0625rem;
}
.cta-block__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.footer__desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.footer__link {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color var(--duration) var(--ease);
}
.footer__link:hover { color: var(--cyan); }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.footer__social a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-bg);
}

/* ── Cookie Bar ── */
.cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 420px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 200;
    box-shadow: var(--shadow-xl);
    transform: translateY(150%);
    transition: transform 0.5s var(--ease-spring);
    backdrop-filter: blur(12px);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { font-size: 0.8125rem; color: var(--text-secondary); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(-0.5deg); }
    66% { transform: translateY(-14px) rotate(0.5deg); }
}

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento__item--wide,
    .bento__item--medium { grid-column: span 6; }
    .bento__item--third { grid-column: span 3; }
    .bento__item--half { grid-column: span 3; }
}

@media (max-width: 1024px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__actions .btn--primary { display: none; }

    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__visual { display: none; }

    .about__grid { grid-template-columns: 1fr; gap: 48px; }
    .about__sticky { position: static; }

    .cases__grid { grid-template-columns: 1fr; }
    .cases__grid > :nth-child(2) { margin-top: 0; }

    .service-block { grid-template-columns: 1fr; gap: 40px; }
    .service-block--reverse { direction: ltr; }
    .service-block__visual { min-height: 240px; }

    .steps { grid-template-columns: repeat(2, 1fr); }

    .faq__layout { grid-template-columns: 1fr; gap: 40px; }
    .faq__left { position: static; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .bento__item--wide,
    .bento__item--medium,
    .bento__item--third,
    .bento__item--half { grid-column: span 6; }

    .about__stats { grid-template-columns: 1fr; gap: 12px; }
    .about__stat { text-align: left; display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
    .tl-section { padding: 72px 0; }
    .tl__item { padding-bottom: 36px; }

    .steps { grid-template-columns: 1fr; }

    .cta-block { padding: 64px 24px; }
    .cta-block__actions { flex-direction: column; align-items: center; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    .comparison-table { font-size: 0.8125rem; }
    .comparison-table th,
    .comparison-table td { padding: 14px 16px; }
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { opacity: .4; flex-shrink: 0; }

/* ============================================
   PAGE HERO — inner pages
   ============================================ */
.page-hero {
    padding: calc(var(--header-h) + 60px) 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hero);
}

.page-hero__glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.page-hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
}

.page-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 12px;
    margin-bottom: 16px;
}

.page-hero__desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.page-hero__stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.page-hero__stat {
    text-align: center;
}

.page-hero__stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.page-hero__stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    display: block;
}

/* ── Tools Catalog Grid ── */
.tools-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tool-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.tool-tile:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.tool-tile:hover::before { opacity: 1; }

.tool-tile--soon {
    pointer-events: none;
    opacity: 0.5;
    background: repeating-linear-gradient(
        -45deg,
        var(--bg-card),
        var(--bg-card) 8px,
        var(--bg-tertiary) 8px,
        var(--bg-tertiary) 9px
    );
}

.tool-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.tool-tile__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-tile__name {
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
}

.tool-tile__desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.tool-tile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tool-tile__cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 8px;
    transition: gap var(--duration) var(--ease);
}
.tool-tile:hover .tool-tile__cta { gap: 10px; }

.tool-tile__soon-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

@media (max-width: 1024px) {
    .tools-catalog { grid-template-columns: repeat(2, 1fr); }
    .page-hero__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .tools-catalog { grid-template-columns: 1fr; }
    .page-hero__stats { gap: 20px; }
}

/* ── Tools Search ── */
.tools-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 12px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 480px;
    transition: border-color .2s;
}
.tools-search:focus-within { border-color: var(--cyan); }
.tools-search .lucide { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; }
.tools-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: .9375rem;
    outline: none;
}
.tools-search input::placeholder { color: var(--text-tertiary); }

/* ── Category headers ── */
.tools-category { margin-bottom: 56px; }
.tools-category__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tools-category__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tools-category__icon .lucide { width: 16px; height: 16px; }
.tools-category__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.tools-category__count {
    font-size: .8125rem;
    color: var(--text-tertiary);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Compact catalog variant for category sections */
.tools-catalog--compact {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tools-catalog--compact .tool-tile__name { font-size: 1rem; }
.tools-catalog--compact .tool-tile__desc { font-size: .875rem; }
