/* =========================================================================
   TeraGrab — Design System
   Concept: "Claim Ticket" — retrieving a file feels like collecting a
   stamped manifest ticket from a cargo office. Dark ink surfaces carry a
   warm kraft-paper ticket as the signature element, stamped with a rust
   ink accent for actions and a verified-teal accent for success states.
   ========================================================================= */

:root {
  /* ---- ink (dark) surfaces ---- */
  --ink:        #13151b;
  --ink-2:      #191c23;
  --ink-3:      #21242d;
  --ink-line:   rgba(239, 230, 210, 0.10);
  --ink-line-2: rgba(239, 230, 210, 0.16);

  /* ---- paper (ticket) surfaces ---- */
  --paper:      #efe6d2;
  --paper-2:    #e6dabd;
  --paper-line: #c7b788;

  /* ---- accents ---- */
  --stamp:      #c1442c;
  --stamp-dark: #9c3520;
  --stamp-tint: rgba(193, 68, 44, 0.12);
  --verify:     #2e9c79;
  --verify-dark:#227557;
  --verify-tint:rgba(46, 156, 121, 0.14);

  /* ---- text ---- */
  --text-lt:       #f2ecdf;
  --text-lt-mute:  #a6a48f;
  --text-lt-mute2: #7d7d70;
  --text-dk:       #241f16;
  --text-dk-mute:  #6b6152;

  /* ---- type ---- */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- misc ---- */
  --radius:   10px;
  --radius-sm:6px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.55);
  --shadow-md: 0 12px 28px -14px rgba(0,0,0,0.4);
  --ease: cubic-bezier(.22,.68,0,1);
}

/* ============================= RESET ==================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--stamp); outline-offset: 3px; }

html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--text-lt);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.2px;
  color: var(--text-lt);
  text-wrap: balance;
}
.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4 { color: var(--text-dk); }

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { color: var(--text-lt-mute); }
.on-paper p { color: var(--text-dk-mute); }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

.mono { font-family: var(--f-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-tint);
}

.section { padding: 84px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--ink-line); }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* thin blueprint grid backdrop, used behind hero + footer */
.grid-bg {
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ============================= BUTTONS =================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-stamp {
  background: var(--stamp); color: #fff5ee;
  box-shadow: 0 10px 24px -10px rgba(193,68,44,.55);
}
.btn-stamp:hover { background: var(--stamp-dark); }

.btn-ghost {
  background: transparent; color: var(--text-lt);
  border-color: var(--ink-line-2);
}
.btn-ghost:hover { border-color: var(--text-lt-mute); background: rgba(255,255,255,.03); }

.btn-outline-dark {
  background: transparent; color: var(--text-dk);
  border-color: var(--text-dk);
}
.btn-outline-dark:hover { background: var(--text-dk); color: var(--paper); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* =============================== HEADER =================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19,21,27,0.82);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); background: rgba(19,21,27,0.96); }

.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .2px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 19px; height: 19px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 0.94rem; font-weight: 600; color: var(--text-lt-mute); transition: color .18s var(--ease); }
.nav-link:hover { color: var(--text-lt); }
.nav-cta { display: inline-flex; align-items:center; gap:6px; padding: 9px 18px; border-radius: var(--radius-sm); background: var(--paper); color: var(--text-dk); font-weight: 700; font-size: .9rem; }
.nav-cta:hover { background: #fff; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--ink-line-2); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-lt); position: relative; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* =============================== HERO ====================================== */
.hero { position: relative; padding: 76px 0 90px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(193,68,44,0.10), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .lead { font-size: 1.14rem; max-width: 560px; margin-inline: auto; }
.hero-promo-wrap { width:100%; max-width:1150px; margin:26px auto -14px; }
.hero-promo-banner { position:relative; min-height:86px; border:1px solid rgba(33,194,139,.42); border-radius:22px; background:rgba(14,20,20,.96); box-shadow:0 14px 35px rgba(0,0,0,.22); }
.hero-promo-link { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:22px; padding:18px 26px 18px 84px; color:#baffdf; }
.hero-promo-link:hover { color:#e1fff1; }
.hero-promo-text { font-size:1rem; font-weight:800; line-height:1.45; text-align:left; animation:hero-promo-text-blink 1.4s ease-in-out infinite; }
.hero-promo-ribbon { position:absolute; z-index:2; top:0; left:0; width:72px; height:72px; overflow:hidden; border-radius:21px 0 0 0; pointer-events:none; }
.hero-promo-ribbon::before { content:""; position:absolute; width:105px; height:30px; top:11px; left:-34px; background:#075f4b; transform:rotate(-45deg); }
.hero-promo-ribbon span { position:absolute; z-index:1; top:19px; left:5px; transform:rotate(-45deg); color:#9fffd5; font:800 .62rem/1 var(--f-mono); letter-spacing:.08em; }
.hero-promo-arrow { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:50%; background:#075f4b; border:1px solid rgba(33,194,139,.35); color:#16d99a; font-size:1.65rem; line-height:1; transition:transform .2s ease, background .2s ease; }
.hero-promo-link:hover .hero-promo-arrow { transform:translateX(3px); background:#08745b; }
@keyframes hero-promo-text-blink { 0%,100% { opacity:1; text-shadow:0 0 0 rgba(22,217,154,0); } 50% { opacity:.72; text-shadow:0 0 12px rgba(22,217,154,.35); } }
@media (max-width:600px) { .hero-promo-wrap { margin-top:22px; } .hero-promo-banner { min-height:76px; border-radius:17px; } .hero-promo-link { min-height:74px; padding:15px 16px 15px 57px; gap:10px; } .hero-promo-text { font-size:.83rem; } .hero-promo-arrow { width:34px; height:34px; flex-basis:34px; font-size:1.3rem; } .hero-promo-ribbon { width:55px; height:55px; border-radius:16px 0 0 0; } .hero-promo-ribbon::before { width:82px; height:25px; top:8px; left:-29px; } .hero-promo-ribbon span { top:14px; left:3px; font-size:.5rem; } }
@media (prefers-reduced-motion: reduce) { .hero-promo-text { animation:none; } }

/* ---- ticket card (signature element) ---- */
.ticket-wrap { max-width: 620px; margin: 40px auto 0; position: relative; }

.ticket {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 32px 28px 44px;
  position: relative;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
/* perforated stub edge */
.ticket::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background-image: radial-gradient(circle at 11px 18px, var(--ink) 6px, transparent 6.5px);
  background-size: 22px 26px;
  background-repeat: repeat-y;
  border-right: 1.5px dashed var(--paper-line);
}
.ticket-label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dk-mute); margin-bottom: 16px;
}
.ticket-label .no { color: var(--text-dk); font-weight: 700; }

.ticket-stamp {
  position: absolute; top: -18px; right: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 11px;
  border: 2px solid var(--stamp);
  border-radius: 30px;
  color: var(--stamp);
  background: var(--paper);
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-6deg);
}
.ticket-stamp svg { width: 13px; height: 13px; }

.ticket-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-input {
  flex: 1 1 280px;
  background: #fbf7ec;
  border: 1.6px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text-dk);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.ticket-input::placeholder { color: #9a9078; }
.ticket-input:focus { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-tint); outline: none; }
.ticket-input.is-invalid { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-tint); }

/* input + paste button wrapper */
.input-wrap { flex: 1 1 280px; position: relative; display: block; }
.input-wrap .ticket-input { width: 100%; padding-right: 92px; }
.paste-btn {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--stamp-tint); color: var(--stamp-dark);
  border: 1px solid var(--stamp);
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease);
}
.paste-btn:hover { background: var(--stamp); color: #fff5ee; }
.paste-btn svg { flex-shrink: 0; }

.ticket-submit { flex: 0 0 auto; min-width: 154px; position: relative; }
.ticket-submit .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.4px solid rgba(255,245,238,.4); border-top-color: #fff5ee;
  display: none; animation: spin .7s linear infinite;
}
.ticket-submit.is-loading .spinner { display: inline-block; }

.field-error {
  display: none; margin-top: 10px; font-size: 0.85rem; color: var(--stamp-dark); font-weight: 600;
}

.browser-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.82rem; color: var(--text-dk-mute);
}
.browser-note svg { flex-shrink: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-alert {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 620px; margin: 0 auto 16px;
  background: var(--stamp-tint); border: 1.4px solid rgba(193,68,44,.4);
  color: #ffd9cf; padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  max-width: 620px; margin: 26px auto 0;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-lt-mute); font-weight: 500; }
.trust-item svg { flex-shrink: 0; }

/* ============================= CHECKPOINTS (how it works) ================= */
.checkpoints { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: cp; }
.checkpoints::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 0;
  border-top: 1.6px dashed var(--ink-line-2); z-index: 0;
}
.checkpoint { position: relative; z-index: 1; padding-top: 8px; }
.cp-marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink-3); border: 1.6px solid var(--ink-line-2);
  font-family: var(--f-mono); font-weight: 700; color: var(--stamp); font-size: 0.95rem;
  margin-bottom: 18px;
}
.checkpoint h3 { margin-bottom: 8px; font-size: 1.15rem; }
.checkpoint p { font-size: 0.95rem; }

/* ============================= TWO-COLUMN INFO ============================ */
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split-cols h2 { margin-bottom: 14px; font-size: 1.7rem; }
.split-cols p + p { margin-top: 12px; }
.split-cols .tag {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-lt-mute2); border: 1px solid var(--ink-line-2);
  border-radius: 20px; padding: 4px 10px; margin-bottom: 14px;
}

/* ============================= SUPPORTED DOMAINS =========================== */
.manifest-panel {
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
}
.manifest-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--stamp) 0 14px, transparent 14px 26px);
}
.domain-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
  margin-top: 6px;
}
.domain-chip {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-lt);
  background: var(--ink-3); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.domain-chip svg { flex-shrink: 0; color: var(--verify); }

/* ============================= FAQ ========================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--ink-line); border-radius: var(--radius-sm); background: var(--ink-2); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-align: left; font-weight: 700; font-size: 1rem;
}
.faq-q .icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--stamp);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-q .icon::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.faq-q .icon::after { width: 2px; height: 12px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-q .icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.faq-a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a { padding: 0 22px 20px; font-size: 0.96rem; color: var(--text-lt-mute); }

/* ============================= DISCLAIMER =================================== */
.disclaimer-box {
  background: var(--paper); color: var(--text-dk); border-radius: var(--radius);
  padding: 26px 28px; font-size: 0.92rem; line-height: 1.65;
  border-left: 5px solid var(--stamp);
}
.disclaimer-box strong { color: var(--text-dk); }

/* ============================= FOOTER ======================================= */
.site-footer { border-top: 1px solid var(--ink-line); padding: 34px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-row .copy { font-size: 0.86rem; color: var(--text-lt-mute2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.86rem; color: var(--text-lt-mute); }
.footer-links a:hover { color: var(--text-lt); }

/* ============================= RESULT PAGE: LOADER =========================== */
.result-shell {
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px); /* mobile browsers ka address-bar show/hide se 100vh jump ho jaata hai; dvh us jump ko fix karta hai */
  display: flex; align-items: center; padding: 50px 0;
}

.loader-card {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--paper); color: var(--text-dk);
  border-radius: var(--radius); padding: 46px 36px 38px; position: relative;
  box-shadow: var(--shadow-lg);
}
.loader-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background-image: radial-gradient(circle at 11px 18px, var(--ink) 6px, transparent 6.5px);
  background-size: 22px 26px; background-repeat: repeat-y;
  border-right: 1.5px dashed var(--paper-line);
}

.scan-frame {
  width: 100px; height: 100px; margin: 0 auto 22px; position: relative;
  border: 2px solid var(--text-dk); border-radius: 10px; overflow: hidden;
  background: #fbf7ec;
}
.scan-frame svg { width: 56px; height: 56px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--text-dk); opacity: .85; }
.scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--stamp), transparent);
  box-shadow: 0 0 12px 1px rgba(193,68,44,.7);
  animation: scan 1.7s ease-in-out infinite;
}
@keyframes scan { 0% { top: 4%; } 50% { top: 92%; } 100% { top: 4%; } }

.loader-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.loader-note { font-size: 0.9rem; color: var(--text-dk-mute); margin-bottom: 26px; }

.stage-list { text-align: left; display: flex; flex-direction: column; gap: 3px; margin-bottom: 26px; }
.stage-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  font-size: 0.93rem; color: #9a917b; font-weight: 500;
  transition: color .25s var(--ease);
}
.stage-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--paper-line); display: grid; place-items: center;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.stage-dot svg { width: 11px; height: 11px; opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.stage-item.is-active { color: var(--text-dk); }
.stage-item.is-active .stage-dot { border-color: var(--stamp); }
.stage-item.is-active .stage-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); animation: pulse-dot 1s ease-in-out infinite; }
.stage-item.is-done { color: var(--verify-dark); }
.stage-item.is-done .stage-dot { border-color: var(--verify); background: var(--verify); transform: scale(1.05); }
.stage-item.is-done .stage-dot svg { opacity: 1; transform: scale(1); color: #fff; }
@keyframes pulse-dot { 0%,100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.tape-track { height: 10px; border-radius: 6px; background: #ddd0ab; overflow: hidden; position: relative; }
.tape-fill {
  height: 100%; width: 0%; border-radius: 6px;
  background: repeating-linear-gradient(-45deg, var(--stamp) 0 8px, var(--stamp-dark) 8px 16px);
  transition: width 1s linear;
}
.countdown { margin-top: 12px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--text-dk-mute); }
.countdown span { color: var(--text-dk); font-weight: 700; }

/* ============================= RESULT PAGE: FILE CARDS ======================= */
.results-head { text-align: center; margin-bottom: 34px; }
.badge-ready {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verify-tint); color: var(--verify); border: 1px solid rgba(46,156,121,.4);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: 20px; margin-bottom: 14px;
}

.file-card {
  max-width: 620px; margin: 0 auto; background: var(--paper); color: var(--text-dk);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  position: relative;
}
.file-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--ink-3); }
.file-body { padding: 26px 28px 28px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 5px; background: var(--ink-3); color: var(--text-lt);
}
.chip-outline { background: transparent; border: 1px solid var(--paper-line); color: var(--text-dk-mute); }

.file-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.file-title-row h2 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 700; word-break: break-word; }
.copy-btn {
  flex-shrink: 0; font-family: var(--f-mono); font-size: 0.75rem; font-weight: 700;
  border: 1.4px solid var(--text-dk); border-radius: 20px; padding: 6px 13px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.copy-btn:hover { background: var(--text-dk); color: var(--paper); }
.copy-btn.is-copied { background: var(--verify); border-color: var(--verify); color: #fff; }

.file-meta { font-family: var(--f-mono); font-size: 0.85rem; color: var(--text-dk-mute); margin-bottom: 22px; }

.file-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.file-actions .btn { flex: 1 1 140px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--text-lt-mute); margin-top: 30px; }
.back-link:hover { color: var(--text-lt); }
.back-link-row { text-align: center; }

/* ============================= PLAYER PAGE ==================================== */
.player-shell { padding: 44px 0 70px; }
.player-wrap { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); margin: 26px 0 24px; border: 1px solid var(--ink-line); }
.player-wrap video { width: 100%; display: block; max-height: 74vh; background: #000; }

.player-meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.quality-select {
  background: var(--ink-3); border: 1px solid var(--ink-line-2); color: var(--text-lt);
  border-radius: var(--radius-sm); padding: 8px 12px; font-family: var(--f-mono); font-size: 0.85rem;
}

/* ============================= EMPTY / 404 ===================================== */
.empty-shell {
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
  display: flex; align-items: center;
}
.empty-inner { text-align: center; max-width: 480px; margin: 0 auto; padding: 40px 0; }
.empty-code { font-family: var(--f-display); font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--ink-3); line-height: 1; -webkit-text-stroke: 1.5px var(--ink-line-2); }
.empty-ticket { display: inline-block; margin: 6px 0 18px; }

/* ============================= RESPONSIVE ======================================= */
@media (max-width: 860px) {
  .split-cols { grid-template-columns: 1fr; gap: 34px; }
  .checkpoints { grid-template-columns: 1fr; gap: 22px; }
  .checkpoints::before { display: none; }
}

@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    /* Solid background so header stays visible in in-app browsers
       (WhatsApp/Telegram/Instagram) where backdrop-blur isn't supported. */
    background: #13151b;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 1px solid var(--ink-line);
  }
  .site-header.is-scrolled { background: #13151b; }
  main, .empty-shell { padding-top: 76px; }
  .nav-links {
    position: fixed; top: 76px; right: 0; bottom: 0; left: 0;
    z-index: 199;
    background: var(--ink); opacity: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform .25s var(--ease);
    border-top: 1px solid var(--ink-line);
  }
  .nav-links.is-open { transform: translateX(0); pointer-events: auto; }
  .nav-link, .nav-cta { padding: 14px 4px; border-bottom: 1px solid var(--ink-line); width: 100%; text-align: left; border-radius: 0; }
  .nav-cta { background: none; color: var(--text-lt); margin-top: 4px; }
  .nav-toggle { display: inline-flex; }
  .ticket { padding: 28px 20px 24px 36px; }
  .ticket-stamp { position: static; display: inline-flex; margin-bottom: 14px; transform: rotate(-3deg); }
  .file-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .section { padding: 60px 0; }
  h1 { font-size: 2.4rem; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .container { padding-inline: 16px; }
  .ticket { padding: 24px 16px 20px 30px; }
  .ticket-form-row { flex-direction: column; }
  .ticket-input { flex: 0 0 auto; width: 100%; }
  .input-wrap { flex: 0 0 auto; width: 100%; }
  .ticket-submit { width: 100%; }
  .file-body { padding: 20px 18px 22px; }
  .file-title-row h2 { font-size: 1.05rem; }
  .trust-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  .domain-grid { grid-template-columns: 1fr; }
  .loader-card { padding: 34px 20px 28px; }
}
.site-footer{
    background:#111827;
    color:#ddd;
    padding:60px 0 25px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-box h3,
.footer-box h4{
    color:#fff;
    margin-bottom:15px;
}

.footer-box p{
    line-height:1.8;
    color:#bbb;
}

.footer-box ul{
    margin:0;
    padding:0;
    list-style:none;
}

.footer-box li{
    margin:10px 0;
}

.footer-box a{
    color:#bbb;
    text-decoration:none;
    transition:.3s;
}

.footer-box a:hover{
    color:#fff;
}

.footer-divider{
    margin:35px 0;
    border:none;
    border-top:1px solid rgba(255,255,255,.1);
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.copy{
    font-size:14px;
}

.footer-note{
    font-size:13px;
    color:#999;
}
.hero-features{

padding:70px 0;

}

.feature-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:25px;

}

.feature-card{

background:#fff;

border-radius:12px;

padding:25px;

text-align:center;

box-shadow:0 5px 15px rgba(0,0,0,.08);

transition:.3s;

}

.feature-card:hover{

transform:translateY(-6px);

}

.feature-card .icon{

font-size:40px;

margin-bottom:15px;

}

.stats-section{

padding:60px 0;

background:#0f172a;

color:#fff;

}

.stats-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

text-align:center;

}

.stat-box h2{

font-size:40px;

color:#3b82f6;

margin-bottom:10px;

}

.trust-section{

padding:70px 0;

}

.trust-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:20px;

margin-top:30px;

}

.trust-grid div{

padding:18px;

background:#f8f8f8;

border-radius:8px;

}

.related-tools{

padding:70px 0;

background:#fafafa;

}

.tool-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:15px;

margin-top:30px;

}

.tool-grid a{

display:block;

padding:16px;

text-align:center;

background:#fff;

border-radius:10px;

text-decoration:none;

font-weight:600;

box-shadow:0 2px 8px rgba(0,0,0,.08);

transition:.3s;

}

.tool-grid a:hover{

background:#2563eb;

color:#fff;

}

.breadcrumb{
display:flex;
align-items:center;
gap:8px;
margin:20px 0 30px;
font-size:14px;
flex-wrap:wrap;
}

.breadcrumb a{
display:flex;
align-items:center;
gap:5px;
text-decoration:none;
color:#ff7a18;
font-weight:600;
}

.breadcrumb svg{
width:15px;
height:15px;
}

.breadcrumb span{
color:#888;
}

/* ============================= API / PRICING PAGE ======================== */
.api-price-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 18px; max-width: 900px; margin: 0 auto 32px;
  background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 22px 26px; position: relative; overflow: hidden;
}
.api-price-banner::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: var(--stamp);
}
.api-price-tag {
  display: inline-block; font-family: var(--f-mono); font-weight: 700;
  font-size: 1.25rem; color: var(--text-lt); letter-spacing: .01em;
}
.api-price-banner p { margin: 6px 0 0; color: var(--text-lt-mute); font-size: .9rem; }

.api-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.api-card {
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 24px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.api-card:hover { border-color: var(--ink-line-2); transform: translateY(-3px); }
.api-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.api-logo {
  flex-shrink: 0; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--ink-1, #12141a);
  border: 1px solid var(--ink-line);
}
.api-logo svg { display: block; }
.api-card-name { font-size: 1.22rem; margin: 0 0 12px; line-height: 1.3; }
.api-badge {
  flex-shrink: 0; font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  color: var(--verify); background: var(--verify-tint); border: 1px solid var(--verify);
  border-radius: 20px; padding: 4px 10px; white-space: nowrap;
}
.api-desc { color: var(--text-lt-mute); font-size: .92rem; margin: 0 0 16px; }
.api-feats { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.api-feats li { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-lt); }
.api-feats li svg { flex-shrink: 0; color: var(--verify); }
.api-buy { margin-top: auto; }

@media (max-width: 560px) {
  .api-price-banner { flex-direction: column; align-items: flex-start; }
  .api-price-banner .btn { width: 100%; text-align: center; justify-content: center; }
}
