/* ============================================================================
   ResumeRoast — Design system aligned with InvoiceWala
   Domain: roast.webntechno.com
   ============================================================================ */

:root {
  /* Canvas */
  --bg:           #0d0a08;
  --bg-2:         #14100b;
  --bg-soft:      #1a1410;
  --surface:      #1c1612;
  --surface-2:    #241b15;
  --surface-3:    #2a1f17;

  /* Lines */
  --line:         rgba(255, 220, 180, 0.08);
  --line-2:       rgba(255, 220, 180, 0.16);
  --line-strong:  rgba(255, 220, 180, 0.28);

  /* Ink */
  --ink:          #f6efe3;
  --ink-2:        #e6dccb;
  --ink-3:        #c8bca8;
  --muted:        #998a78;
  --muted-2:      #6e604f;

  /* Accents (fire) */
  --flame:        #ff6a2b;
  --flame-2:      #ff8a3d;
  --flame-soft:   #ffb37a;
  --ember:        #ff3d5c;
  --cream:        #fff3df;

  /* Status */
  --ok:           #6fdb9a;
  --ok-bg:        rgba(111, 219, 154, 0.10);
  --fix:          #7cc2ff;
  --fix-bg:       rgba(124, 194, 255, 0.10);
  --star:         #ffd166;
  --star-bg:      rgba(255, 209, 102, 0.10);

  /* Radii */
  --radius-xl:    32px;
  --radius-lg:    24px;
  --radius:       18px;
  --radius-sm:    12px;

  /* Shadows */
  --shadow-1:     0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-2:     0 18px 40px -10px rgba(255, 106, 43, 0.45);
  --shadow-glow:  0 0 80px -10px rgba(255, 106, 43, 0.35);

  /* Fonts */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

/* ====== BACKGROUND ORBS ====== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--flame), transparent 70%);
  top: -200px; right: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--ember), transparent 70%);
  top: 40%; left: -150px;
  opacity: 0.35;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ffaf3d, transparent 70%);
  bottom: -100px; right: 30%;
  opacity: 0.25;
}

/* ====== ANNOUNCEMENT MARQUEE ====== */
.announce {
  background: var(--flame);
  color: #1a0e07;
  overflow: hidden;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.announce-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: marquee 30s linear infinite;
}
.announce .bullet { opacity: 0.55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(13, 10, 8, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  border-radius: 9px;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 106, 43, 0.4);
}
.brand-mark.big { width: 48px; height: 48px; font-size: 26px; border-radius: 12px; }
.brand-text {
  font-size: 18px;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:not(.cta-link) { transition: color .2s; }
.nav-links a:not(.cta-link):hover { color: var(--ink); }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--flame);
  color: #1a0e07 !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .2s, transform .15s;
}
.cta-link:hover { background: var(--flame-2); transform: translateY(-1px); }
.cta-link .arrow { transition: transform .2s; }
.cta-link:hover .arrow { transform: translateX(3px); }

/* ====== BUTTONS ====== */
.btn-primary,
.btn-ghost,
.btn-big,
.btn-white,
.btn-linkedin,
.btn-twitter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--flame);
  color: #1a0e07;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--flame-2); transform: translateY(-2px); box-shadow: 0 24px 50px -10px rgba(255,106,43,0.55); }
.btn-primary.big { padding: 18px 32px; font-size: 17px; }
.btn-primary.btn-small { padding: 11px 18px; font-size: 14px; }
.btn-arrow { transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.play-icon { color: var(--flame); }

.btn-big {
  background: linear-gradient(135deg, var(--flame) 0%, var(--ember) 100%);
  color: #1a0e07;
  padding: 18px 36px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 18px 40px -10px rgba(255,61,92,0.55);
}
.btn-big:disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.3); }
.btn-big:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 26px 60px -10px rgba(255,61,92,0.7); }

.btn-white {
  background: var(--cream); color: #1a0e07;
  padding: 13px 20px; border-radius: 999px; font-size: 14px;
}
.btn-white:hover { background: #fff; transform: translateY(-1px); }
.btn-linkedin {
  background: #0a66c2; color: #fff;
  padding: 13px 20px; border-radius: 999px; font-size: 14px;
}
.btn-linkedin:hover { background: #084d97; transform: translateY(-1px); }
.btn-twitter {
  background: #0d0d0d; color: #fff;
  padding: 13px 20px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line-2);
}
.btn-twitter:hover { background: #000; transform: translateY(-1px); }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 60px 0 80px;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.dot-pulse {
  width: 7px; height: 7px;
  background: var(--flame);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--flame);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 6.4vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.title-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--flame-2) 0%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-highlight {
  position: relative;
  display: inline-block;
}
.title-highlight::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 18px;
  background: linear-gradient(90deg, rgba(255,106,43,0.35), rgba(255,61,92,0.35));
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 560px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--flame);
  padding-left: 14px;
}
.meta-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
}
.meta-num small { font-size: 18px; opacity: 0.7; }
.meta-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ====== HERO MOCKUP ====== */
.hero-mockup {
  position: relative;
  height: 560px;
}
.mock-glow {
  position: absolute;
  inset: 20px;
  background: radial-gradient(ellipse at center, rgba(255,106,43,0.35), transparent 60%);
  filter: blur(60px);
  z-index: 0;
}
.mock-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.mock-paper {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 92%;
  max-width: 420px;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.mock-back {
  top: 70px;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--surface);
  opacity: 0.6;
  height: 460px;
}
.mock-front {
  padding: 26px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-color: rgba(255,106,43,0.25);
  animation: float-mock 6s ease-in-out infinite;
}
@keyframes float-mock {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -10px); }
}
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.mock-brand { display: flex; gap: 10px; align-items: center; }
.mock-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mock-biz-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.mock-biz-sub  { font-size: 10.5px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.mock-title { text-align: right; }
.mock-tag {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--flame-soft);
  font-weight: 700;
}
.mock-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  margin-top: 2px;
}
.mock-divider { height: 1px; background: var(--line); margin: 4px 0 16px; }

.mock-bar-wrap { margin-bottom: 18px; }
.mock-bar {
  height: 8px; border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 8px;
}
.mock-bar-fill {
  width: 62%; height: 100%;
  background: linear-gradient(90deg, var(--flame), var(--ember));
  border-radius: 99px;
}
.mock-bar-label { font-size: 12px; color: var(--ink-2); font-weight: 600; }

.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-row.roast    { border-color: rgba(255,106,43,0.22); }
.mock-row.fix      { border-color: rgba(111,219,154,0.18); }
.mock-row.strength { border-color: rgba(255,209,102,0.20); }
.row-tag {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.mock-row.roast    .row-tag { color: var(--flame-soft); }
.mock-row.fix      .row-tag { color: var(--ok); }
.mock-row.strength .row-tag { color: var(--star); }
.row-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }

.mock-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mock-share {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.mock-share-icon { font-size: 22px; }
.mock-share-label { display: flex; flex-direction: column; gap: 2px; }
.mock-share-tag {
  font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--flame-soft); font-weight: 700;
}
.mock-share-sub { font-size: 11.5px; color: var(--muted); }

.float-shape {
  position: absolute;
  font-size: 24px;
  color: var(--flame);
  opacity: 0.45;
}
.float-1 { top: 30px;  left: 0;     animation: drift1 7s ease-in-out infinite; }
.float-2 { top: 200px; right: 20px; animation: drift2 8s ease-in-out infinite; color: var(--ember); }
.float-3 { bottom: 50px; left: 30px; animation: drift1 6s ease-in-out infinite reverse; color: var(--star); }
@keyframes drift1 {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(8deg); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50%      { transform: translate(-8px, 8px) rotate(-8deg); }
}

/* ====== PROOF STRIP ====== */
.proof {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
  overflow: hidden;
}
.proof-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
}
.proof-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.proof-content {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}
.dot-sep { color: var(--flame); font-size: 10px; }

/* ====== SECTION HEAD ====== */
.section-head {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow.light { color: var(--cream); opacity: 0.85; }
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 800px;
}
.section-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 600px;
}

/* ====== FEATURES ====== */
.features { padding: 100px 0; }
.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 18px;
}
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.f-large    { grid-row: span 2; }
.f-medium   { grid-column: span 1; }
.f-accent {
  background: linear-gradient(160deg, var(--surface-2), #2a1709);
  border-color: rgba(255,106,43,0.25);
}
.feature-icon {
  display: inline-flex;
  width: 50px; height: 50px;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--flame);
  margin-bottom: 18px;
}
.feature-num {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-visual { margin-top: 22px; }
.score-vis {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.score-vis-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, var(--flame-2), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-vis-num small { font-size: 18px; color: var(--muted); font-weight: 700; -webkit-text-fill-color: var(--muted); }
.score-vis-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  margin: 12px 0 10px;
  overflow: hidden;
}
.score-vis-fill {
  height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--flame), var(--ember));
  border-radius: 999px;
}
.score-vis-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.chips-vis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.chip {
  font-size: 12px;
  padding: 6px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
}
.chip.ghost { color: var(--muted); border-style: dashed; }

.forever-mark {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 180px;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255,106,43,0.10);
  line-height: 1;
  pointer-events: none;
}

/* ====== HOW IT WORKS ====== */
.how {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(255,106,43,0.04) 50%, transparent);
}
.how-track {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.how-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame), transparent);
}
.how-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--flame);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-weight: 600;
}
.how-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.how-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.how-arrow {
  font-size: 28px;
  color: var(--flame);
  align-self: center;
  font-weight: 200;
}
.how-decor {
  margin-top: 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.decor-line {
  height: 6px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-2), transparent);
  border-radius: 999px;
}
.decor-line.short { flex: 0.5; }
.decor-doc {
  width: 60px;
  height: 50px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
}
.decor-doc::before, .decor-doc::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 3px;
  background: var(--line-2);
  border-radius: 99px;
}
.decor-doc::before { top: 12px; }
.decor-doc::after  { top: 22px; right: 20px; }
.decor-arrow {
  font-size: 36px;
  color: var(--flame);
  font-weight: 200;
}

/* ====== BUILDER / START ====== */
.builder { padding: 100px 0 60px; }
.start-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.start-shell #upload-section,
.start-shell #loading,
.start-shell #error,
.start-shell #results {
  max-width: 880px;
  margin: 0 auto;
}

#upload-section {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
#upload-section::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,106,43,0.18), transparent 70%);
  pointer-events: none;
}

.dropzone {
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  position: relative;
  z-index: 1;
}
.dropzone:hover { border-color: var(--flame); background: var(--surface-2); }
.dropzone.drag-over {
  border-color: var(--flame);
  background: rgba(255,106,43,0.08);
  transform: scale(1.01);
}
.dz-icon { font-size: 56px; margin-bottom: 16px; filter: drop-shadow(0 6px 16px rgba(255,106,43,0.4)); }
.dz-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.dz-hint { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.dz-filename {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--flame-soft);
}

.roast-trigger {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
.trigger-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ====== LOADING ====== */
.loading {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
}
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,106,43,0.15);
  border-top-color: var(--flame);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.loading-sub { font-size: 14px; color: var(--muted); margin: 0; }

/* ====== ERROR ====== */
.error-box {
  background: rgba(255, 61, 92, 0.08);
  border: 1px solid rgba(255, 61, 92, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  color: #ffb0bd;
  margin: 30px auto;
}
.error-box p { margin: 0 0 8px; font-weight: 600; }
.error-retry {
  background: transparent;
  border: 0;
  color: #ffb0bd;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* ====== RESULTS ====== */
.results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.result-score {
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  border-color: rgba(255,106,43,0.35);
}
.result-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}
.result-score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 6px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, var(--flame-2), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-slash { font-size: 32px; color: var(--muted); font-weight: 700; }
.score-label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}

.result-h {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.015em;
}
.result-h small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.55;
  font-size: 15px;
  color: var(--ink-2);
}
.result-list li::before {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 18px;
}
.result-roast      { border-color: rgba(255,106,43,0.22); }
.result-roast li::before     { content: "🔥"; }
.result-fixes      { border-color: rgba(111,219,154,0.20); }
.result-fixes li::before     { content: "✅"; }
.result-strengths  { border-color: rgba(255,209,102,0.22); }
.result-strengths li::before { content: "🏆"; }

.result-share {
  background: linear-gradient(135deg, #1a0e07 0%, #2a1209 100%);
  border-color: rgba(255,106,43,0.35);
  text-align: center;
}
.share-h {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.share-sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.share-buttons {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.share-again {
  margin-top: 22px;
  background: transparent; border: 0;
  color: var(--muted);
  text-decoration: underline;
  font-size: 13.5px;
  cursor: pointer;
}
.share-again:hover { color: var(--ink-2); }

/* ====== BIG CTA ====== */
.big-cta {
  position: relative;
  padding: 120px 32px;
  text-align: center;
  margin: 60px 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #2a1209 0%, #4a1a14 100%);
}
.big-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,106,43,0.4), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,61,92,0.3), transparent 50%);
}
.big-cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.big-cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 14px 0 32px;
  color: var(--cream);
}
.title-em-light {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--flame-2);
}
.big-cta-sub {
  margin: 20px 0 0;
  color: var(--ink-3);
  font-size: 15px;
}

/* ====== SHARE CARD TEMPLATE (rendered to PNG) ====== */
.share-card-template {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 600px;
  padding: 40px;
  background: linear-gradient(135deg, #ff6a2b 0%, #ff3d5c 50%, #d11a72 100%);
  color: #fff;
  font-family: var(--font-sans);
}
.sc-inner {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  padding: 36px;
}
.sc-brand { font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.sc-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 6px;
}
.sc-eyebrow-2 { margin-top: 22px; }
.sc-score {
  display: flex; align-items: baseline; gap: 4px;
  margin: 4px 0 10px;
}
.sc-score span {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  font-weight: 500;
}
.sc-score small { font-size: 28px; opacity: 0.7; font-weight: 700; }
.sc-verdict { font-size: 22px; font-weight: 700; margin: 0; }
.sc-roast { font-size: 18px; line-height: 1.45; margin: 0; font-weight: 500; }
.sc-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-size: 14px;
  opacity: 0.9;
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255,106,43,0.04));
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 32px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer-brand .brand-text { font-size: 22px; font-weight: 800; color: var(--ink); }
.footer-tagline {
  margin: 6px 0 4px;
  font-size: 14px;
  color: var(--muted);
}
.footer-domain {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}
.link-accent {
  color: var(--flame);
  font-weight: 600;
  transition: color .2s;
}
.link-accent:hover { color: var(--flame-2); }

.creator-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.creator-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,106,43,0.20), transparent 70%);
}
.creator-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--flame), var(--ember));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #1a0e07;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px -6px rgba(255,106,43,0.4);
}
.creator-info { flex: 1; position: relative; }
.creator-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 600;
}
.creator-name {
  margin: 4px 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.creator-role {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.creator-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.creator-links a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  transition: all .2s;
}
.creator-links a:hover {
  background: var(--flame);
  color: #1a0e07;
  border-color: var(--flame);
  transform: translateY(-2px);
}

/* SISTER TOOLS */
.footer-cross { margin-bottom: 50px; }
.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 22px;
  font-weight: 600;
}
.cross-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cross-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s, background .2s, transform .2s;
}
.cross-card:hover {
  border-color: var(--flame);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.cross-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.cross-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cross-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.cross-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.cross-arrow {
  color: var(--muted-2);
  font-size: 16px;
  transition: color .2s, transform .2s;
}
.cross-card:hover .cross-arrow {
  color: var(--flame);
  transform: translateX(4px);
}

/* FOOTER BOTTOM */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-mockup { height: 540px; max-width: 460px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .f-large { grid-row: span 1; }
  .how-track {
    grid-template-columns: 1fr;
  }
  .how-arrow { transform: rotate(90deg); margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links a:not(.cta-link) { display: none; }
  .hero { padding: 40px 0 60px; }
  .hero-inner { padding: 0 20px; gap: 40px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-mockup { height: 500px; }
  .section-head { padding: 0 20px; margin-bottom: 40px; }
  .features { padding: 70px 0; }
  .features-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .how { padding: 70px 0; }
  .how-track { padding: 0 20px; }
  .builder { padding: 70px 0 50px; }
  .start-shell { padding: 0 20px; }
  #upload-section { padding: 28px; border-radius: 24px; }
  .dropzone { padding: 40px 20px; }
  .footer-inner { padding: 50px 20px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; margin-bottom: 36px; }
  .cross-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .big-cta { padding: 80px 24px; margin: 40px 20px; }
  .result-card { padding: 24px; border-radius: 18px; }
  .score-num { font-size: 80px; }
  .hero-title { font-size: 44px; }
  .section-title { font-size: 36px; }
}
@media (max-width: 480px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .mock-paper { max-width: 320px; }
  .creator-card { flex-direction: column; }
  .creator-avatar { width: 48px; height: 48px; font-size: 16px; }
}
