:root {
    --red: #C0392B;
    --red-bright: #E74C3C;
    --red-dark: #922B21;
    --oracle-dark: #0D0D0D;
    --surface: #141414;
    --surface2: #1C1C1C;
    --surface3: #242424;
    --border: #2E2E2E;
    --text: #F0EDE8;
    --text-muted: #7A7570;
    --text-dim: #4A4744;
    --accent-gold: #D4A853;
    --accent-teal: #1ABC9C;
    --mono: 'DM Mono', monospace;
    --serif: 'DM Serif Display', serif;
    --sans: 'Syne', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--oracle-dark);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ── NOISE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

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

  .nav-logo-icon {
    width: 32px; height: 32px;
    background: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 18px;
    color: #fff;
    font-style: italic;
  }

  .nav-logo-text {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
  }

  .nav-logo-text span {
    color: var(--red-bright);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

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

  .nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    transition: background 0.2s !important;
  }

  .nav-cta:hover { background: var(--red-bright) !important; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
  }

  .hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(192,57,43,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(192,57,43,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 80px;
    position: relative;
    z-index: 1;
  }

  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--red-bright);
  }

  h1 {
    font-family: var(--serif);
    font-size: clamp(52px, 6vw, 88px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }

  h1 em {
    color: var(--red-bright);
    font-style: italic;
  }

  .hero-desc {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.8;
    margin-bottom: 48px;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }

  .btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
  }

  .btn-ghost:hover { border-color: var(--text-muted); transform: translateY(-1px); }

  .hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 80px 80px 40px;
    position: relative;
    z-index: 1;
  }

  .hero-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,57,43,0.1);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .terminal-bar {
    background: var(--surface2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }

  .dot { width: 12px; height: 12px; border-radius: 50%; }
  .dot-r { background: #FF5F57; }
  .dot-y { background: #FEBC2E; }
  .dot-g { background: #28C840; }

  .terminal-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
  }

  .terminal-body {
    padding: 24px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 2;
  }

  .t-comment { color: var(--text-dim); }
  .t-prompt { color: var(--text-muted); }
  .t-cmd { color: var(--text); }
  .t-keyword { color: var(--red-bright); }
  .t-string { color: var(--accent-gold); }
  .t-output { color: var(--accent-teal); }
  .t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--red-bright);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
  }

  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  /* ── SEARCH ── */
  .search-section {
    padding: 60px 80px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .search-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
  }

  .search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 800px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
  }

  .search-bar:focus-within {
    border-color: var(--red);
  }

  .search-icon {
    padding: 0 20px;
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
  }

  .search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--mono);
    font-size: 15px;
    color: var(--text);
    padding: 18px 0;
  }

  .search-bar input::placeholder { color: var(--text-dim); }

  .search-bar button {
    background: var(--red);
    border: none;
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 28px;
    height: 58px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .search-bar button:hover { background: var(--red-bright); }

  .search-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .search-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
  }

  .search-tag:hover {
    border-color: var(--red);
    color: var(--red-bright);
    background: rgba(192,57,43,0.05);
  }

  /* ── SECTIONS COMMON ── */
  section { padding: 100px 80px; }

  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
  }

  .section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 10px;
  }

  h2 {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .see-all {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    margin-bottom: 8px;
  }

  .see-all:hover { color: var(--red-bright); border-color: var(--red-bright); }

  /* ── TECH SUPPORT ── */
  #support { background: var(--oracle-dark); }

  .support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }

  .support-card {
    background: var(--surface);
    padding: 36px 32px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .support-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--red-bright);
    transition: width 0.3s ease;
  }

  .support-card:hover { background: var(--surface2); }
  .support-card:hover::after { width: 100%; }

  .card-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.2);
  }

  .card-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 8px;
  }

  .card-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .card-desc {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
  }

  .card-badge {
    font-family: var(--mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid;
  }

  .badge-critical { color: #E74C3C; border-color: rgba(231,76,60,0.3); background: rgba(231,76,60,0.05); }
  .badge-new { color: var(--accent-teal); border-color: rgba(26,188,156,0.3); background: rgba(26,188,156,0.05); }
  .badge-updated { color: var(--accent-gold); border-color: rgba(212,168,83,0.3); background: rgba(212,168,83,0.05); }
  .badge-info { color: var(--text-muted); border-color: var(--border); }

  /* ── FEATURED ARTICLE ── */
  .featured-support {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-top: 32px;
  }

  .featured-left {
    padding: 48px;
    border-right: 1px solid var(--border);
  }

  .featured-right {
    padding: 48px;
    background: var(--surface2);
  }

  .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    cursor: pointer;
  }

  .faq-item:last-child { border-bottom: none; }

  .faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
  }

  .faq-toggle {
    color: var(--text-dim);
    font-size: 20px;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
  }

  .faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--red-bright); }

  .faq-a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
  }

  .faq-item.open .faq-a {
    max-height: 200px;
    padding-top: 12px;
  }

  /* ── BLOG ── */
  #blog { background: var(--surface); }

  .blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }

  .blog-featured {
    background: var(--oracle-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .blog-featured:hover { border-color: var(--red); }

  .blog-featured-img {
    height: 280px;
    background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 40%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .blog-featured-img-inner {
    font-family: var(--serif);
    font-size: 72px;
    font-style: italic;
    color: rgba(192,57,43,0.25);
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
    user-select: none;
  }

  .blog-featured-img .version-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--red-bright);
    border: 1px solid var(--red);
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(192,57,43,0.1);
  }

  .blog-featured-body { padding: 32px; }

  .post-category {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 10px;
  }

  .post-title {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .post-excerpt {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
  }

  .post-author { color: var(--text-muted); }

  .blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--oracle-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }

  .blog-list-item {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .blog-list-item:last-child { border-bottom: none; }
  .blog-list-item:hover { background: var(--surface2); }

  .list-post-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .list-post-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 16px;
  }

  /* ── STATUS BAR ── */
  .status-section {
    padding: 40px 80px;
    background: var(--oracle-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 28px;
  }

  .status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 10px rgba(26,188,156,0.5);
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(26,188,156,0.5); }
    50% { box-shadow: 0 0 14px rgba(26,188,156,0.8); }
  }

  .status-text {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
  }

  .status-items {
    display: flex;
    gap: 32px;
  }

  .status-item {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .status-item::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
  }

  /* ── VERSION TIMELINE ── */
  #versions { background: var(--oracle-dark); }

  .timeline {
    position: relative;
    padding-left: 40px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--red) 0%, var(--border) 60%, transparent 100%);
  }

  .timeline-item {
    position: relative;
    padding: 0 0 48px 40px;
  }

  .timeline-dot {
    position: absolute;
    left: -5px; top: 4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--oracle-dark);
  }

  .timeline-dot.current {
    background: var(--red-bright);
    box-shadow: 0 0 12px rgba(231,76,60,0.6);
    width: 14px; height: 14px;
    left: -7px;
  }

  .timeline-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 4px;
  }

  .timeline-version {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
  }

  .timeline-version .current-tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--red-bright);
    border: 1px solid var(--red);
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 10px;
    background: rgba(192,57,43,0.1);
  }

  .timeline-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .feature-chip {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: default;
  }

  .feature-chip:hover { border-color: var(--red); color: var(--text); }
  .feature-chip.highlight { border-color: rgba(192,57,43,0.4); color: var(--red-bright); background: rgba(192,57,43,0.05); }

  /* ── FOOTER ── */
  footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 80px 40px;
  }

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

  .footer-brand p {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 280px;
  }

  .footer-col-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-col ul a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-col ul a:hover { color: var(--red-bright); }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
  }

  .footer-bottom p span { color: var(--red-bright); }

  /* ── SCROLL ANIMATION ── */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    nav { padding: 0 32px; }
    section, .search-section, .status-section { padding-left: 32px; padding-right: 32px; }
    footer { padding-left: 32px; padding-right: 32px; }
    .support-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  }

  @media (max-width: 768px) {
    .support-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .featured-support { grid-template-columns: 1fr; }
    .featured-right { border-top: 1px solid var(--border); border-right: none; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .status-items { display: none; }
  }