/* Bespoke landing page design for "The Last Dragon" (Claude Design pass, Oct 2026). */

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

    :root {
      --ink:        #0f0d0a;
      --ink-mid:    #1a1610;
      --ink-lift:   #221e17;
      --parchment:  #f5f0e8;
      --gold:       #c8a96e;
      --gold-dim:   #8a6f42;
      --bone:       #e8dfc8;
      --blood:      #6b1a1a;
      --blood-glow: rgba(107,26,26,0.4);
      --shimmer-s:  #c8d8e8;
      --shimmer-p:  #9b6bbf;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--ink);
      color: var(--parchment);
      font-family: 'EB Garamond', Georgia, serif;
      font-size: 18px;
      line-height: 1.72;
      overflow-x: hidden;
    }

    /* ── SHIMMER CANVAS ── */
    #shimmer-canvas {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 60px;
      background: linear-gradient(to bottom, rgba(15,13,10,0.97) 0%, rgba(15,13,10,0) 100%);
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none;
      font-family: 'Cinzel', serif;
      font-size: 14px;
      letter-spacing: 0.12em;
      color: var(--gold);
    }
    .nav-links { display: flex; gap: 32px; list-style: none; }
    .nav-links a {
      font-family: 'Cinzel', serif;
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(245,240,232,0.55);
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-links a:hover, .nav-links a.active { color: var(--gold); }

    /* ── SHARED LAYOUT ── */
    .container { max-width: 1100px; margin: 0 auto; padding: 0 60px; }
    .section-label {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0.75;
      margin-bottom: 10px;
    }
    .section-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(26px, 3vw, 40px);
      font-weight: 600;
      color: var(--parchment);
      margin-bottom: 48px;
      line-height: 1.15;
    }
    .rule {
      display: flex; align-items: center; gap: 18px;
      margin: 0 0 72px;
    }
    .rule::before, .rule::after {
      content: ''; flex: 1; height: 1px;
      background: rgba(200,169,110,0.18);
    }
    .rule-gem { color: var(--gold); font-size: 11px; opacity: 0.55; letter-spacing: 0.1em; }

    /* Buttons */
    .btn-gold {
      font-family: 'Cinzel', serif;
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 13px 30px;
      background: var(--gold);
      color: var(--ink);
      border: none;
      text-decoration: none;
      display: inline-block;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-gold:hover { background: #d4b87a; transform: translateY(-1px); }
    .btn-ghost {
      font-family: 'Cinzel', serif;
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 12px 30px;
      background: transparent;
      color: var(--parchment);
      border: 1px solid rgba(245,240,232,0.25);
      text-decoration: none;
      display: inline-block;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s;
    }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

    /* Fade on scroll */
    .fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    /* ══════════════════════════════════════════════════════
       HERO
    ══════════════════════════════════════════════════════ */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 0 60px 100px;
      z-index: 1;
      overflow: hidden;
    }

    /* Dragon skull silhouette — SVG background */
    .hero-bg {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
      padding-right: 60px;
    }
    .hero-bg svg {
      width: 100%;
      height: 100%;
      opacity: 0.18;
      filter: none;
      position: absolute;
      inset: 0;
    }

    /* Flame/glow emanating from below */
    .hero-glow {
      position: absolute;
      bottom: -100px; right: 10%;
      width: 500px; height: 500px;
      background: radial-gradient(ellipse at center, rgba(107,26,26,0.35) 0%, rgba(107,26,26,0.1) 40%, transparent 70%);
      pointer-events: none;
      animation: flamePulse 4s ease-in-out infinite;
    }
    @keyframes flamePulse {
      0%,100% { transform: scale(1);   opacity: 0.6; }
      50%      { transform: scale(1.1); opacity: 1;   }
    }

    .hero-eyebrow {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .hero-eyebrow::before {
      content: '';
      width: 28px; height: 1px;
      background: var(--gold); opacity: 0.5;
    }

    .hero-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(56px, 9vw, 128px);
      font-weight: 700;
      line-height: 0.92;
      letter-spacing: -0.01em;
      color: var(--parchment);
      margin-bottom: 32px;
      text-wrap: balance;
    }
    .hero-title span {
      display: block;
      color: var(--blood);
      font-size: 0.55em;
      letter-spacing: 0.18em;
      font-weight: 400;
      margin-bottom: 4px;
      text-shadow: 0 0 40px rgba(107,26,26,0.8);
    }

    .hero-tagline {
      font-size: 20px;
      font-style: italic;
      color: rgba(245,240,232,0.65);
      max-width: 520px;
      margin-bottom: 12px;
      line-height: 1.6;
    }
    .hero-sub {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.2em;
      color: rgba(245,240,232,0.3);
      text-transform: uppercase;
      margin-bottom: 44px;
    }
    .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

    /* Draft badge */
    .draft-badge {
      position: absolute;
      top: 110px; right: 60px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }
    .draft-ring {
      width: 88px; height: 88px;
      position: relative;
    }
    .draft-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
    .draft-ring-label {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .draft-num {
      font-family: 'Cinzel', serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--gold);
      line-height: 1;
    }
    .draft-word {
      font-family: 'Cinzel', serif;
      font-size: 8px;
      letter-spacing: 0.14em;
      color: rgba(200,169,110,0.6);
      text-transform: uppercase;
    }
    .draft-caption {
      font-family: 'Cinzel', serif;
      font-size: 8px;
      letter-spacing: 0.16em;
      color: rgba(245,240,232,0.3);
      text-transform: uppercase;
      text-align: center;
    }

    /* ══════════════════════════════════════════════════════
       OPENING HOOK — Chapter One excerpt
    ══════════════════════════════════════════════════════ */
    .hook-section {
      position: relative;
      z-index: 1;
      padding: 0 0 80px;
    }
    .hook-inner {
      max-width: 780px;
      margin: 0 auto;
      padding: 0 60px;
    }
    .hook-chapter {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0.6;
      margin-bottom: 28px;
      text-align: center;
    }
    .hook-text {
      font-size: 19px;
      line-height: 1.85;
      color: rgba(245,240,232,0.8);
      font-style: italic;
      text-align: center;
      position: relative;
    }
    .hook-text::before {
      content: '\201C';
      font-size: 80px;
      color: var(--gold);
      opacity: 0.18;
      position: absolute;
      top: -30px; left: -20px;
      font-family: 'EB Garamond', serif;
      line-height: 1;
    }

    /* ══════════════════════════════════════════════════════
       WORLD OF DRAKONA — four factions
    ══════════════════════════════════════════════════════ */
    .world-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
      background: rgba(10,8,5,0.5);
    }
    .world-intro{max-width:680px;font-size:17px;line-height:1.8;color:rgba(240,232,214,0.72);margin:-8px 0 48px;text-wrap:pretty}
    .factions-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1px;
      background: rgba(200,169,110,0.1);
      border: 1px solid rgba(200,169,110,0.1);
    }
    .faction-card {
      background: var(--ink-mid);
      padding: 36px 28px 32px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: background 0.25s;
      cursor: default;
    }
    .faction-card:hover { background: var(--ink-lift); }

    .faction-icon {
      width: 44px; height: 44px;
      margin-bottom: 4px;
    }
    .faction-name {
      font-family: 'Cinzel', serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--parchment);
      letter-spacing: 0.05em;
    }
    .faction-ruler {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      opacity: 0.5;
    }
    .faction-desc {
      font-size: 15px;
      color: rgba(245,240,232,0.55);
      line-height: 1.65;
      flex: 1;
    }
    .faction-tag {
      font-family: 'Cinzel', serif;
      font-size: 8px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 5px 10px;
      border: 1px solid;
      display: inline-block;
      align-self: flex-start;
    }

    /* Faction accent colors */
    .faction-marrow .faction-tag  { color: var(--gold); border-color: rgba(200,169,110,0.3); }
    .faction-marrow .faction-ruler{ color: var(--gold); }
    .faction-shimmer .faction-tag { color: var(--shimmer-p); border-color: rgba(155,107,191,0.3); }
    .faction-shimmer .faction-ruler{ color: var(--shimmer-p); }
    .faction-blood .faction-tag   { color: #c84040; border-color: rgba(200,64,64,0.3); }
    .faction-blood .faction-ruler { color: #c84040; }
    .faction-flesh .faction-tag   { color: #7a9e7e; border-color: rgba(122,158,126,0.3); }
    .faction-flesh .faction-ruler { color: #7a9e7e; }

    /* ══════════════════════════════════════════════════════
       DRAGON RELICS — magic system
    ══════════════════════════════════════════════════════ */
    .relics-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
    }
    .relics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .relic-card {
      background: rgba(245,240,232,0.03);
      border: 1px solid rgba(245,240,232,0.07);
      padding: 28px 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: border-color 0.2s, background 0.2s;
    }
    .relic-card:hover {
      border-color: rgba(200,169,110,0.2);
      background: rgba(245,240,232,0.05);
    }
    .relic-glyph {
      font-size: 28px;
      line-height: 1;
      margin-bottom: 4px;
    }
    .relic-name {
      font-family: 'Cinzel', serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--parchment);
      letter-spacing: 0.06em;
    }
    .relic-form {
      font-family: 'Cinzel', serif;
      font-size: 8px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0.6;
    }
    .relic-effect {
      font-size: 14px;
      color: rgba(245,240,232,0.55);
      line-height: 1.6;
    }
    .relic-quote {
      font-style: italic;
      font-size: 13px;
      color: rgba(245,240,232,0.38);
      border-top: 1px solid rgba(245,240,232,0.07);
      padding-top: 12px;
      line-height: 1.5;
    }

    /* ══════════════════════════════════════════════════════
       THE PROPHECY — thumbs ceremony
    ══════════════════════════════════════════════════════ */
    .prophecy-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
      background: rgba(10,8,5,0.5);
    }
    .prophecy-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .prophecy-text .section-title { margin-bottom: 20px; }
    .prophecy-body {
      font-size: 17px;
      color: rgba(245,240,232,0.62);
      line-height: 1.78;
      margin-bottom: 28px;
    }
    .prophecy-pull {
      font-style: italic;
      font-size: 18px;
      color: rgba(245,240,232,0.8);
      border-left: 2px solid var(--blood);
      padding-left: 20px;
      line-height: 1.65;
    }

    /* Thumbs visual */
    .thumbs-visual {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }
    .thumbs-row {
      display: flex;
      gap: 40px;
      align-items: center;
    }
    .thumb-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }
    .thumb-svg { width: 60px; height: 60px; }
    .thumb-label {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(245,240,232,0.4);
      text-align: center;
    }
    .thumb-vs {
      font-family: 'Cinzel', serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: rgba(245,240,232,0.2);
    }
    .thumbs-result {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    .thumbs-result-icon {
      font-family: 'Cinzel', serif;
      font-size: 11px;
      letter-spacing: 0.16em;
      color: var(--blood);
      text-transform: uppercase;
      border: 1px solid rgba(107,26,26,0.5);
      padding: 8px 20px;
      background: rgba(107,26,26,0.1);
      animation: resultPulse 2.8s ease-in-out infinite;
    }
    @keyframes resultPulse {
      0%,100% { box-shadow: 0 0 0 rgba(107,26,26,0); }
      50%      { box-shadow: 0 0 24px rgba(107,26,26,0.3); }
    }
    .thumbs-result-sub {
      font-size: 13px;
      color: rgba(245,240,232,0.35);
      font-style: italic;
    }

    /* ══════════════════════════════════════════════════════
       CHARACTERS
    ══════════════════════════════════════════════════════ */
    .characters-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
    }
    .characters-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 2px;
      background: rgba(200,169,110,0.06);
      border: 1px solid rgba(200,169,110,0.06);
    }
    .char-card {
      background: var(--ink-mid);
      padding: 28px 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: background 0.2s;
    }
    .char-card:hover { background: var(--ink-lift); }
    .char-placeholder {
      width: 48px; height: 48px;
      border-radius: 50%;
      border: 1px solid;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Cinzel', serif;
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .char-name {
      font-family: 'Cinzel', serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--parchment);
    }
    .char-title {
      font-family: 'Cinzel', serif;
      font-size: 8px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      opacity: 0.5;
    }
    .char-desc {
      font-size: 13px;
      color: rgba(245,240,232,0.5);
      line-height: 1.6;
      flex: 1;
    }

    /* ══════════════════════════════════════════════════════
       SHIMMER PASSAGE BLOCKQUOTE
    ══════════════════════════════════════════════════════ */
    .passage-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
      background: rgba(10,8,5,0.5);
    }
    .passage-inner {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 60px;
    }
    .passage-card {
      background: rgba(20,15,30,0.7);
      border-left: 2px solid var(--shimmer-p);
      padding: 36px 44px;
      position: relative;
    }
    .passage-shimmer-dots {
      position: absolute;
      top: 20px; right: 24px;
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .s-dot {
      width: 5px; height: 5px;
      border-radius: 50%;
      animation: sDotPulse 2s ease-in-out infinite;
    }
    .s-dot:nth-child(1) { background: var(--shimmer-s); animation-delay: 0s; }
    .s-dot:nth-child(2) { background: var(--shimmer-p); animation-delay: 0.4s; }
    .s-dot:nth-child(3) { background: var(--shimmer-s); animation-delay: 0.8s; }
    .s-dot:nth-child(4) { background: var(--shimmer-p); animation-delay: 1.2s; }
    @keyframes sDotPulse {
      0%,100% { opacity:0.25; transform: scale(0.8); }
      50%      { opacity:1;    transform: scale(1.2); }
    }
    .passage-card blockquote {
      font-style: italic;
      font-size: 19px;
      color: rgba(245,240,232,0.82);
      line-height: 1.85;
    }
    .passage-card cite {
      display: block;
      margin-top: 18px;
      font-style: normal;
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.22em;
      color: var(--shimmer-p);
      opacity: 0.75;
    }

    /* ══════════════════════════════════════════════════════
       FROM THE AUTHOR — personal note
    ══════════════════════════════════════════════════════ */
    .author-section {
      position: relative;
      z-index: 1;
      padding: 80px 0;
    }
    .author-inner {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 64px;
      align-items: flex-start;
      max-width: 900px;
    }
    .author-photo-wrap {
      position: relative;
    }
    .author-photo {
      width: 100%;
      display: block;
      filter: sepia(0.25) contrast(1.05);
      mix-blend-mode: luminosity;
      opacity: 0.82;
    }
    .author-photo-frame {
      position: absolute;
      inset: -8px;
      border: 1px solid rgba(200,169,110,0.2);
      pointer-events: none;
    }
    .author-note-label {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0.7;
      margin-bottom: 16px;
    }
    .author-note-title {
      font-family: 'Cinzel', serif;
      font-size: 26px;
      font-weight: 600;
      color: var(--parchment);
      margin-bottom: 20px;
      line-height: 1.2;
    }
    .author-note-body {
      font-size: 17px;
      color: rgba(245,240,232,0.62);
      line-height: 1.8;
    }
    .note-divider{display:flex;align-items:center;gap:14px;margin:28px 0}.nd-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(200,169,110,0.45))}.nd-line:last-child{background:linear-gradient(90deg,rgba(200,169,110,0.45),transparent)}.nd-ring{width:22px;height:22px;border:1px solid rgba(200,169,110,0.6);border-radius:50%;display:grid;place-items:center;transform:rotate(45deg)}.nd-core{width:7px;height:7px;background:var(--gold);opacity:0.8}

    /* ══════════════════════════════════════════════════════
       CTA FOOTER
    ══════════════════════════════════════════════════════ */
    .cta-section {
      position: relative;
      z-index: 1;
      padding: 80px 0 120px;
      text-align: center;
      background: rgba(10,8,5,0.5);
    }
    .cta-title {
      font-family: 'Cinzel', serif;
      font-size: clamp(28px, 4vw, 52px);
      font-weight: 700;
      color: var(--parchment);
      margin-bottom: 16px;
      line-height: 1.1;
    }
    .cta-title em {
      color: var(--blood);
      font-style: normal;
      text-shadow: 0 0 40px rgba(107,26,26,0.6);
    }
    .cta-sub {
      font-size: 17px;
      font-style: italic;
      color: rgba(245,240,232,0.45);
      margin-bottom: 44px;
    }
    .cta-buttons { display: flex; gap: 16px; justify-content: center; }

    /* ══════════════════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════════════════ */
    footer {
      position: relative;
      z-index: 1;
      padding: 40px 60px;
      border-top: 1px solid rgba(245,240,232,0.07);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .footer-logo {
      font-family: 'Cinzel', serif;
      font-size: 14px;
      color: var(--gold);
    }
    .footer-links { display: flex; gap: 28px; list-style: none; }
    .footer-links a {
      font-family: 'Cinzel', serif;
      font-size: 9px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(245,240,232,0.35);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--gold); }

    /* ══════════════════════════════════════════════════════
       TWEAKS PANEL
    ══════════════════════════════════════════════════════ */
    #tweak-panel {
      display: none;
      position: fixed;
      right: 16px; bottom: 16px;
      z-index: 2000;
      width: 260px;
      background: rgba(20,16,12,0.96);
      border: 1px solid rgba(200,169,110,0.28);
      border-radius: 8px;
      padding: 16px;
      font-family: 'Cinzel', serif;
      font-size: 11px;
      color: var(--parchment);
      backdrop-filter: blur(12px);
    }
    #tweak-panel.visible { display: block; }
    .tweak-head {
      font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 14px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .tweak-x { background: none; border: none; color: rgba(245,240,232,0.35); cursor: pointer; font-size: 15px; }
    .tweak-row { margin-bottom: 11px; }
    .tweak-lbl { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 9px; letter-spacing: 0.1em; color: rgba(245,240,232,0.6); }
    .tweak-sl { width: 100%; accent-color: var(--shimmer-p); }
    .tweak-tgl { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 9px; letter-spacing: 0.1em; color: rgba(245,240,232,0.6); }
    .tweak-tgl input { accent-color: var(--shimmer-p); }
    .tweak-sep { height: 1px; background: rgba(245,240,232,0.08); margin: 14px 0 12px; }

    /* Responsive */
    @media (max-width: 900px) {
      nav { padding: 18px 24px; }
      .nav-links { display: none; }
      .hero { padding: 0 24px 80px; }
      .container { padding: 0 24px; }
      .factions-grid { grid-template-columns: 1fr 1fr; }      .relics-grid { grid-template-columns: 1fr 1fr; }
      .characters-grid { grid-template-columns: repeat(3, 1fr); }
      .prophecy-inner { grid-template-columns: 1fr; }
      .author-inner { grid-template-columns: 1fr; }
      .author-photo-wrap { max-width: 180px; }
      footer { flex-direction: column; gap: 20px; text-align: center; }
      .draft-badge { display: none; }
      .hook-inner, .passage-inner { padding: 0 24px; }
    }
