  :root {
    --bg: #163244;
    --bg2: #1d3f52;
    --bg3: #264d62;
    --text: #d8eef5;
    --muted: #6a98ab;
    --accent: #2eb8d0;
    --accent2: #63d4e8;
    --code-bg: #0a1e28;
    --code-border: #1c3c4e;
    --green: #4aba78;
    --red: #e05a5a;
    --line: rgba(46,184,208,0.2);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* GRAIN OVERLAY */
  body::before {
    content: '';
    position: fixed;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
  }

  /* TYPOGRAPHY */
  .display {
    font-family: 'DM Serif Display', serif;
    line-height: 1.1;
  }
  .mono { font-family: 'Syne Mono', monospace; }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 4rem;
    background: rgba(7,9,12,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-logo-img {
    height: 50px;
    width: auto;
    transition: filter 0.2s, opacity 0.2s;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--accent); }

  .btn-contact {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s !important;
  }
  .btn-contact:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem 4rem 5rem;
    position: relative;
    overflow: hidden;
  }

  .hero-grid-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: var(--line);
  }
  .hero-grid-line:nth-child(1) { left: 25%; }
  .hero-grid-line:nth-child(2) { left: 50%; }
  .hero-grid-line:nth-child(3) { left: 75%; }

  .hero-tag {
    font-family: 'Syne Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
  }

  .hero-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.02;
    max-width: 16ch;
    opacity: 0;
    animation: fadeUp 0.9s 0.4s forwards;
  }

  .hero-headline em {
    font-style: italic;
    color: var(--accent);
  }

  .hero-sub {
    margin-top: 2.5rem;
    max-width: 52ch;
    font-size: 1.1rem;
    color: rgba(216,238,245,0.7);
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.8s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

  .hero-version {
    font-family: 'Syne Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* MARQUEE */
  .marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg2);
    padding: 0.75rem 0;
  }
  .marquee-track {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
  }
  .marquee-item {
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .marquee-dot { color: var(--accent); }

  /* SECTIONS */
  section {
    padding: 7rem 4rem;
    position: relative;
  }

  .section-label {
    font-family: 'Syne Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .section-label::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--accent);
    display: block;
  }

  /* PROBLEM SECTION */
  .problem-section {
    background: var(--bg2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
    align-items: start;
  }

  .problem-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
  }

  .problem-headline em {
    font-style: italic;
    color: var(--accent);
  }

  .problem-body {
    color: rgba(216,238,245,0.75);
    line-height: 1.8;
  }

  .problem-body p + p { margin-top: 1.2rem; }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
  }

  .stat-item {}
  .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
    line-height: 1.4;
  }

  /* PAIN POINTS */
  .pain-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .pain-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(224,90,90,0.06);
    border: 1px solid rgba(224,90,90,0.15);
    border-radius: 4px;
    padding: 1rem 1.25rem;
  }

  .pain-icon {
    color: var(--red);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
  }

  .pain-text {
    font-size: 0.92rem;
    color: rgba(216,238,245,0.8);
    line-height: 1.5;
  }

  /* WHAT IS SPELL */
  .spell-section {}

  .spell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
  }

  .spell-intro {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .spell-intro em {
    font-style: italic;
    color: var(--accent);
  }

  .spell-desc {
    color: rgba(216,238,245,0.75);
    line-height: 1.8;
  }
  .spell-desc p + p { margin-top: 1.2rem; }

  .principle-block {
    background: var(--bg3);
    border-left: 3px solid var(--accent);
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
    border-radius: 0 4px 4px 0;
  }

  .principle-block p {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent2);
    line-height: 1.5;
  }

  /* CODE BLOCK */
  .code-panel {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 6px;
    overflow: hidden;
  }

  .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--code-border);
  }

  .code-dots {
    display: flex;
    gap: 0.4rem;
  }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot-r { background: #ff5f57; }
  .dot-y { background: #febc2e; }
  .dot-g { background: #28c840; }

  .code-filename {
    font-family: 'Syne Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  .code-body {
    padding: 1.5rem;
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    overflow-x: auto;
  }

  .c-keyword { color: #c792ea; }
  .c-string { color: #c3e88d; }
  .c-comment { color: #546e7a; font-style: italic; }
  .c-key { color: #82aaff; }
  .c-accent { color: var(--accent2); }
  .c-paren { color: #89ddff; }

  /* HOW IT WORKS */
  .how-section {
    background: var(--bg2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .how-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    max-width: 20ch;
    line-height: 1.15;
    margin-bottom: 4rem;
  }

  .steps-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
  }

  .steps-flow::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(to right, var(--accent), rgba(46,184,208,0.3));
    z-index: 0;
  }

  .step {
    position: relative;
    z-index: 1;
    padding: 0 1.5rem 0 0;
  }

  .step-num-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  .step-num {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--accent);
    flex-shrink: 0;
  }

  .step-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
  }

  .step-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .step-tag {
    display: inline-block;
    font-family: 'Syne Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    border: 1px solid rgba(46,184,208,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    margin-top: 0.75rem;
    letter-spacing: 0.08em;
  }

  /* INSTALL SECTION */
  .install-section {}

  .install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
  }

  .install-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .install-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .install-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(46,184,208,0.15);
    border: 1px solid rgba(46,184,208,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  .install-step-text {
    font-size: 0.92rem;
    color: rgba(216,238,245,0.8);
    line-height: 1.6;
  }

  .install-step-text strong {
    color: var(--text);
  }

  .cmd-line {
    display: block;
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    color: var(--green);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
  }
  .cmd-line::before {
    content: '$ ';
    color: var(--muted);
  }

  /* DOWNLOAD SECTION */
  .download-section {
    background: var(--bg2);
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .download-headline {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .download-headline em {
    font-style: italic;
    color: var(--accent);
  }

  .download-sub {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.2rem 2.5rem;
    border-radius: 3px;
    transition: all 0.2s;
    box-shadow: 0 0 40px rgba(46,184,208,0.25);
  }

  .btn-download:hover {
    background: var(--accent2);
    box-shadow: 0 0 60px rgba(46,184,208,0.4);
    transform: translateY(-2px);
  }

  .download-meta {
    margin-top: 1.5rem;
    font-family: 'Syne Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* ABOUT SECTION */
  .about-section {
    border-top: 1px solid var(--line);
    padding: 4rem;
  }

  .about-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 700px;
  }

  .author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid rgba(46,184,208,0.3);
    flex-shrink: 0;
    filter: grayscale(20%);
  }

  .about-text {
    flex: 1;
  }

  .about-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--text);
  }

  .about-bio {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* FOOTER */
  footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo {
    font-family: 'Syne Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.15em;
  }

  .footer-right {
    font-family: 'Syne Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  /* DIVIDER */
  .divider {
    width: 100%;
    height: 1px;
    background: var(--line);
    margin: 0;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    section { padding: 5rem 2rem; }
    .hero { padding: 8rem 2rem 4rem; }
    .problem-grid, .spell-grid, .install-grid { grid-template-columns: 1fr; gap: 3rem; }
    .steps-flow { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .steps-flow::before { display: none; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    footer { padding: 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
    .about-section { padding: 3rem 2rem; }
  }

  @media (max-width: 600px) {
    .nav-links { display: none; }
    .steps-flow { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
  }

  /* LANG TOGGLE */
  .lang-toggle {
    background: transparent;
    border: 1px solid rgba(46,184,208,0.35);
    color: var(--muted);
    font-family: 'Syne Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
  }
  .lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
