/* =============================================================
   FileCourier — Design System
   Brand: Indigo #5c6cf0  |  Surface: #ffffff  |  BG: #f5f6ff
   Fonts: Inter (EN) + Hind Siliguri (BN)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --clr-brand:      #5c6cf0;
  --clr-brand-d:    #4a59e0;
  --clr-brand-l:    #eef0fe;
  --clr-success:    #22c55e;
  --clr-success-l:  #dcfce7;
  --clr-warning:    #f59e0b;
  --clr-warning-l:  #fef3c7;
  --clr-danger:     #ef4444;
  --clr-danger-l:   #fee2e2;
  --clr-text:       #1e1f2e;
  --clr-text-2:     #6b7280;
  --clr-border:     #e5e7eb;
  --clr-surface:    #ffffff;
  --clr-bg:         #f5f6ff;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(92,108,240,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 32px rgba(92,108,240,.15), 0 2px 8px rgba(0,0,0,.08);

  --font: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--clr-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { text-decoration: none; }

.logo-icon {
  width: 30px; height: 30px;
  background: var(--clr-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  font-size: .88rem;
  color: var(--clr-text-2);
  font-weight: 500;
}

.header-nav a:hover { color: var(--clr-text); text-decoration: none; }

/* ── Language Toggle ────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-text-2);
  padding: 4px 11px;
  border-radius: 999px;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--clr-surface);
  color: var(--clr-brand);
  box-shadow: var(--shadow-sm);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--clr-brand-d);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--clr-surface);
  color: var(--clr-brand);
  border: 1.5px solid var(--clr-brand);
}

.btn-secondary:hover {
  background: var(--clr-brand-l);
  text-decoration: none;
  color: var(--clr-brand);
}

.btn-danger {
  background: var(--clr-danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  text-decoration: none;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--clr-brand);
  font-weight: 700;
}

.btn-white:hover {
  background: #f0f1ff;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--clr-brand);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-sm {
  font-size: .8rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

/* ── Status Bar ─────────────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-bar.neutral { background: #f3f4f6;             color: var(--clr-text-2); }
.status-bar.neutral  .status-dot { background: var(--clr-text-2); }
.status-bar.online  { background: var(--clr-success-l); color: #166534; }
.status-bar.online   .status-dot { background: var(--clr-success); animation: pulse 1.5s ease infinite; }
.status-bar.warning { background: var(--clr-warning-l); color: #92400e; }
.status-bar.warning  .status-dot { background: var(--clr-warning); animation: pulse 1.5s ease infinite; }
.status-bar.error   { background: var(--clr-danger-l);  color: #991b1b; }
.status-bar.error    .status-dot { background: var(--clr-danger); }
.status-bar.info    { background: var(--clr-brand-l);   color: #312e81; }
.status-bar.info     .status-dot { background: var(--clr-brand); animation: pulse 1.5s ease infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── Drop Zone ──────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-md);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--clr-text-2);
  position: relative;
  user-select: none;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--clr-brand);
  background: var(--clr-brand-l);
  color: var(--clr-brand);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.drop-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
  pointer-events: none;
}

.drop-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 4px;
  pointer-events: none;
}

.drop-sub {
  font-size: .82rem;
  pointer-events: none;
}

.drop-sub .browse {
  color: var(--clr-brand);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Link Share ─────────────────────────────────────────────── */
.share-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--clr-text-2);
  margin-bottom: 7px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.link-share {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1.5px solid var(--clr-brand);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--clr-brand-l);
}

.link-box {
  flex: 1;
  font-size: .82rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--clr-bg);
  border: none;
  border-right: 1.5px solid var(--clr-brand);
  padding: 10px 13px;
  color: var(--clr-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.link-share .btn {
  border-radius: 0;
  border: none;
  flex-shrink: 0;
}

/* ── Progress ───────────────────────────────────────────────── */
.progress-wrap { margin-top: 14px; }

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--clr-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-brand) 0%, #818cf8 100%);
  border-radius: 999px;
  transition: width .25s ease;
  width: 0%;
}

.progress-fill.done { background: var(--clr-success); }

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--clr-text-2);
  margin-top: 5px;
}

/* ── File Card ──────────────────────────────────────────────── */
.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  margin-top: 14px;
}

.file-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--clr-brand-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-name {
  font-weight: 600;
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: .76rem;
  color: var(--clr-text-2);
  margin-top: 2px;
}

.file-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.file-badge.uploading,
.file-badge.downloading { background: var(--clr-brand-l); color: var(--clr-brand); }
.file-badge.done        { background: var(--clr-success-l); color: #166534; }
.file-badge.error       { background: var(--clr-danger-l);  color: #991b1b; }
.file-badge.cancelled   { background: #f3f4f6; color: var(--clr-text-2); }

/* ── Result Panels ──────────────────────────────────────────── */
.result-panel {
  text-align: center;
  padding: 32px 16px;
}

.result-icon {
  font-size: 2.2rem;
  margin: 0 auto 18px;
  line-height: 1;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  display: flex; align-items: center; justify-content: center;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-msg {
  font-size: .88rem;
  color: var(--clr-text-2);
  white-space: pre-line;
  margin-bottom: 22px;
  line-height: 1.65;
}

/* ── Relay Hint ─────────────────────────────────────────────── */
.relay-hint {
  background: var(--clr-warning-l);
  border: 1.5px solid var(--clr-warning);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
  display: none;
}

.relay-hint.visible { display: block; }

.relay-hint-title {
  font-weight: 700;
  font-size: .88rem;
  color: #92400e;
  margin-bottom: 6px;
}

.relay-hint-desc {
  font-size: .82rem;
  color: #78350f;
  white-space: pre-line;
  margin-bottom: 12px;
  line-height: 1.55;
}

.relay-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-warning-l);
  border: 1px solid var(--clr-warning);
  color: #92400e;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  margin-top: 6px;
}

/* ── Notice ─────────────────────────────────────────────────── */
.notice {
  font-size: .8rem;
  color: var(--clr-text-2);
  line-height: 1.55;
  margin-top: 12px;
  padding: 9px 13px;
  border-left: 3px solid var(--clr-brand-l);
  background: var(--clr-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── App Layout ─────────────────────────────────────────────── */
.app-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px 80px;
  position: relative;
  background: var(--clr-bg);
}

.app-card {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--clr-brand);
  box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 4px 16px rgba(92,108,240,.12);
  animation: cardSlideUp .28s ease;
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 18px 0;
  font-size: .8rem;
  color: var(--clr-text-2);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Landing: Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #f5f6ff 0%, #eef0fe 55%, #e8ebff 100%);
  padding: 88px 0 76px;
  text-align: center;
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 18px;
  white-space: pre-line;
}

.hero-sub {
  font-size: clamp(.92rem, 2vw, 1.05rem);
  color: var(--clr-text-2);
  max-width: 500px;
  margin: 0 auto 32px;
  white-space: pre-line;
  line-height: 1.75;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-brand);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(92,108,240,.35);
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--clr-brand-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92,108,240,.45);
  text-decoration: none;
  color: #fff;
}

/* ── Landing: Sections ──────────────────────────────────────── */
.section { padding: 72px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 44px;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 42px; height: 42px;
  background: var(--clr-brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 14px;
}

.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 7px; }
.step-desc  { font-size: .84rem; color: var(--clr-text-2); line-height: 1.6; }

/* Why section */
.why-section { background: var(--clr-surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
}

.feature-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.feature-text { font-size: .84rem; font-weight: 600; color: var(--clr-text); }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--clr-border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  color: var(--clr-text);
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-q:hover { color: var(--clr-brand); }

.faq-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--clr-text-2);
  font-style: normal;
  font-size: .8rem;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  font-size: .85rem;
  color: var(--clr-text-2);
  line-height: 1.7;
  padding-bottom: 18px;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(130deg, var(--clr-brand) 0%, #818cf8 100%);
  padding: 56px 0;
  text-align: center;
  color: #fff;
}

.cta-strip-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-strip-sub {
  font-size: .92rem;
  opacity: .85;
  margin-bottom: 28px;
}

/* ── Spacing helpers ────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

/* ═════════════════════════════════════════════════════════════════
   REDESIGNED LANDING PAGE — COMPONENTS
   ═════════════════════════════════════════════════════════════════ */

/* Fix: .header-nav a specificity overrides .btn-primary color */
.header-nav a.btn-primary,
.header-nav a.btn-primary:hover { color: #fff; text-decoration: none; }

/* Logo image (SVG in header) */
.logo-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }

/* ── Hero v2 ────────────────────────────────────────────────── */
.hero-v2 {
  background: linear-gradient(140deg, #0d1024 0%, #191d50 55%, #0d1024 100%);
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 45%, rgba(92,108,240,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(129,140,248,.14) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 85%, rgba(92,108,240,.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero-v2-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  letter-spacing: .06em; text-transform: uppercase;
}

.hero-heading-v2 {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800; line-height: 1.1;
  color: #fff; margin-bottom: 20px; white-space: pre-line;
}
.hero-heading-v2 .grad {
  background: linear-gradient(120deg, #818cf8 0%, #a5b4fc 50%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub-v2 {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.58);
  max-width: 500px; margin: 0 auto 38px; line-height: 1.8;
}

.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}

.btn-hero {
  background: var(--clr-brand); color: #fff;
  font-family: var(--font); font-size: .97rem; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius-md); border: none;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(92,108,240,.45);
}
.btn-hero:hover {
  background: var(--clr-brand-d); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(92,108,240,.55);
  color: #fff; text-decoration: none;
}

.btn-ghost {
  background: transparent; color: rgba(255,255,255,.78);
  font-family: var(--font); font-size: .97rem; font-weight: 600;
  padding: 12px 26px; border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.22);
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.38);
  color: #fff; text-decoration: none;
}

.hero-trust-strip {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  font-size: .73rem; font-weight: 600;
  color: rgba(255,255,255,.38); letter-spacing: .03em;
}
.hero-trust-strip span::before { content: '✓  '; color: rgba(129,140,248,.8); }

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); }
.stats-grid { display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item {
  text-align: center; padding: 18px 36px;
  border-right: 1px solid var(--clr-border);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--clr-brand); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: .7rem; color: var(--clr-text-2); font-weight: 500; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; }

/* ── Feature cards v2 ───────────────────────────────────────── */
.features-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  transition: all var(--transition);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--clr-brand-l); }
.feat-card-icon {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; margin-bottom: 14px;
}
.feat-card-title { font-size: .9rem; font-weight: 700; margin-bottom: 7px; }
.feat-card-desc  { font-size: .8rem; color: var(--clr-text-2); line-height: 1.65; }
.ic-red    { background: #fee2e2; }
.ic-green  { background: #dcfce7; }
.ic-blue   { background: var(--clr-brand-l); }
.ic-purple { background: #f3e8ff; }
.ic-yellow { background: #fef9c3; }
.ic-orange { background: #ffedd5; }

/* ── Steps v2 ───────────────────────────────────────────────── */
.steps-v2-wrap { position: relative; }
.steps-v2-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; position: relative;
}
.steps-connector {
  position: absolute; top: 32px;
  left: calc(16.67% + 24px); right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-brand-l));
  pointer-events: none; z-index: 0;
}
.step-v2 { text-align: center; padding: 0 8px; position: relative; z-index: 1; }
.step-v2-num {
  width: 64px; height: 64px; background: var(--clr-brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; margin: 0 auto 18px;
  box-shadow: 0 4px 18px rgba(92,108,240,.4);
  border: 4px solid var(--clr-bg);
}
.step-v2-icon { font-size: 1.4rem; margin-bottom: 10px; }
.step-v2-title { font-size: .92rem; font-weight: 700; margin-bottom: 8px; }
.step-v2-desc  { font-size: .8rem; color: var(--clr-text-2); line-height: 1.65; }
.steps-cta { text-align: center; margin-top: 36px; }

/* ── Trust / Security section ───────────────────────────────── */
.trust-section {
  background: linear-gradient(140deg, #0d1024 0%, #191d50 100%);
  color: #fff; padding: 80px 0;
}
.trust-section .section-title { color: #fff; }
.section-sub-dark {
  text-align: center; color: rgba(255,255,255,.52);
  font-size: .9rem; max-width: 520px;
  margin: -30px auto 48px; line-height: 1.72;
}

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  padding: 24px 18px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); text-align: center;
  transition: background var(--transition);
}
.trust-item:hover { background: rgba(255,255,255,.09); }
.trust-item-icon  { font-size: 1.8rem; margin-bottom: 12px; }
.trust-item-title { font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 7px; }
.trust-item-desc  { font-size: .77rem; color: rgba(255,255,255,.48); line-height: 1.65; }

/* ── Browser compat table ───────────────────────────────────── */
.compat-wrap {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto;
}
.compat-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.compat-table th {
  padding: 13px 20px; text-align: left; font-weight: 700;
  background: var(--clr-bg); border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text); white-space: nowrap;
}
.compat-table td {
  padding: 12px 20px; border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-2); vertical-align: middle;
}
.compat-table tr:last-child td { border-bottom: none; }
.compat-ok  { color: var(--clr-success); font-weight: 700; }
.compat-no  { color: var(--clr-danger); }
.compat-cap { color: var(--clr-warning); font-weight: 600; }

/* ── Section sub-label ──────────────────────────────────────── */
.section-sub {
  text-align: center; font-size: .9rem; color: var(--clr-text-2);
  max-width: 540px; margin: -30px auto 48px; line-height: 1.72;
}

/* ── CTA strip v2 ───────────────────────────────────────────── */
.cta-strip-v2 {
  background: linear-gradient(130deg, var(--clr-brand) 0%, #818cf8 100%);
  padding: 76px 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-strip-v2::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.09) 0%, transparent 55%);
  pointer-events: none;
}
.cta-strip-v2 .container { position: relative; z-index: 1; }
.cta-v2-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.cta-v2-sub   { font-size: .93rem; opacity: .8; margin-bottom: 30px; }

/* ── Footer v2 (dark) ───────────────────────────────────────── */
.footer-v2 { background: #080816; color: rgba(255,255,255,.52); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo-link {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; margin-bottom: 12px;
}
.footer-logo-link:hover { text-decoration: none; color: #fff; }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; }
.footer-tagline { font-size: .79rem; color: rgba(255,255,255,.38); line-height: 1.7; margin-bottom: 20px; }
.footer-col-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.28); margin-bottom: 16px; }
.footer-col a {
  display: block; color: rgba(255,255,255,.52); font-size: .84rem;
  margin-bottom: 10px; text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: .74rem; color: rgba(255,255,255,.26);
  flex-wrap: wrap; gap: 10px;
}

/* ── Sub-page hero ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1024 0%, #191d50 100%);
  padding: 68px 0 56px; text-align: center; color: #fff;
}
.page-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px; padding: 5px 16px;
  font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.62);
  margin-bottom: 18px; letter-spacing: .06em; text-transform: uppercase;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800;
  color: #fff; margin-bottom: 14px; line-height: 1.15;
}
.page-hero-sub {
  font-size: .93rem; color: rgba(255,255,255,.52);
  max-width: 480px; margin: 0 auto; line-height: 1.75;
}

/* ── Callout boxes (sub-pages) ──────────────────────────────── */
.callout { border-radius: var(--radius-md); padding: 16px 18px; font-size: .84rem; line-height: 1.65; margin: 16px 0; }
.callout-info { background: var(--clr-brand-l); border-left: 4px solid var(--clr-brand); color: #312e81; }
.callout-warn { background: var(--clr-warning-l); border-left: 4px solid var(--clr-warning); color: #78350f; }

/* ── Privacy table ──────────────────────────────────────────── */
.privacy-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.privacy-table th { background: var(--clr-bg); padding: 11px 16px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--clr-border); color: var(--clr-text); }
.privacy-table td { padding: 12px 16px; border-bottom: 1px solid var(--clr-border); color: var(--clr-text-2); vertical-align: top; line-height: 1.65; }
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table td:first-child { font-weight: 600; color: var(--clr-text); width: 32%; }
.privacy-check { color: var(--clr-success); font-weight: 700; }
.privacy-cross  { color: var(--clr-danger); }

/* ── Responsive additions ───────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-v2 { padding: 64px 0 52px; }
  .features-grid-v2 { grid-template-columns: 1fr; }
  .steps-v2-grid { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--clr-border); }
  .logo-img { width: 26px; height: 26px; }
  .page-hero { padding: 48px 0 36px; }
  .header-nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .app-wrap { padding: 0 12px 60px; }
  .card { padding: 20px 18px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* ── Connection Modal ───────────────────────────────────────── */
.conn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.conn-modal {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.2s ease;
}

.conn-modal-icon  { font-size: 2.5rem; margin-bottom: 12px; line-height: 1; }
.conn-modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--clr-text); }
.conn-modal-msg   { font-size: .85rem; color: var(--clr-text-2); margin-bottom: 22px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── File Queue ─────────────────────────────────────────────── */
.file-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-text-2);
}

.fq-add-label { cursor: pointer; }

.fq-max-note {
  font-size: .75rem;
  color: var(--clr-text-2);
  opacity: .7;
}

.file-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .83rem;
}

.fq-icon { font-size: 1.1rem; flex-shrink: 0; }
.fq-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fq-size { flex-shrink: 0; color: var(--clr-text-2); font-size: .75rem; white-space: nowrap; }

.btn-icon {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-text-2);
  line-height: 1;
  padding: 0;
  font-family: var(--font);
}

.btn-icon:hover        { background: var(--clr-border); color: var(--clr-text); }
.btn-remove:hover      { background: var(--clr-danger-l); border-color: var(--clr-danger); color: var(--clr-danger); }

.drop-zone-add {
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  font-size: .78rem;
  color: var(--clr-text-2);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.drop-zone-add:hover,
.drop-zone-add.drag-over {
  border-color: var(--clr-brand);
  background: var(--clr-brand-l);
  color: var(--clr-brand);
}

/* ── File Offer (receiver) ──────────────────────────────────── */
.file-offer-panel {
  border: 2px solid var(--clr-brand-l);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  background: var(--clr-bg);
}

.file-offer-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-brand);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.file-offer-prompt {
  font-size: .84rem;
  color: var(--clr-text-2);
  margin-top: 12px;
}

.file-offer-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ── Sender waiting confirm ─────────────────────────────────── */
.waiting-confirm {
  text-align: center;
  padding: 20px 0 8px;
}

.waiting-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.waiting-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.waiting-msg   { font-size: .82rem; color: var(--clr-text-2); }

.fq-progress-note {
  font-size: .76rem;
  color: var(--clr-brand);
  font-weight: 600;
  margin-bottom: 6px;
  text-align: right;
}

/* ── File saved notice (receiver between files) ─────────────── */
.file-saved-notice {
  text-align: center;
  padding: 16px;
  background: var(--clr-success-l);
  border: 1px solid var(--clr-success);
  border-radius: var(--radius-md);
}

.file-saved-icon { font-size: 1.4rem; color: var(--clr-success); margin-bottom: 6px; }
.file-saved-name { font-size: .88rem; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-saved-msg  { font-size: .78rem; color: #166534; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
  .app-wrap { padding: 0 12px 60px; }
  .card { padding: 20px 18px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   APP PAGE — ENHANCED VISUAL DESIGN
   ══════════════════════════════════════════════════════════════ */

/* Dark hero band across the top — matches site page-hero style */
.app-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(135deg, #0d1024 0%, #191d50 100%);
  pointer-events: none;
  z-index: 0;
}

/* Branded intro strip above the card */
.app-intro {
  position: relative; z-index: 1;
  text-align: center;
  padding: 40px 16px 24px;
  width: 100%; max-width: 560px;
}

.app-intro-badge {
  display: inline-block;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 6px 16px;
  font-size: .71rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}

.app-intro-sub {
  font-size: .76rem; color: rgba(255,255,255,.38);
  letter-spacing: .02em; margin: 0; line-height: 1.7;
}

/* Trust strip below the card */
.app-trust-row {
  position: relative; z-index: 1;
  margin-top: 16px;
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; align-items: center;
  font-size: .71rem; color: var(--clr-text-2); opacity: .7;
}

/* Dark footer matching the rest of the site */
.app-footer {
  background: #080816;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}

.app-footer .container {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.app-footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.65);
  text-decoration: none;
}
.app-footer-brand img { width: 22px; height: 22px; object-fit: contain; }
.app-footer-brand:hover { color: #fff; text-decoration: none; }

.app-footer-links { display: flex; gap: 20px; }
.app-footer-links a {
  font-size: .78rem; color: rgba(255,255,255,.38);
  text-decoration: none; transition: color var(--transition);
}
.app-footer-links a:hover { color: rgba(255,255,255,.72); text-decoration: none; }

.app-footer-note { font-size: .71rem; color: rgba(255,255,255,.22); }

/* Mobile: compact app page */
@media (max-width: 640px) {
  .app-wrap::before { height: 190px; }
  .app-intro { padding: 28px 16px 18px; }
  .app-trust-row { display: none; }
  .app-footer .container { flex-direction: column; text-align: center; gap: 10px; }
  .app-footer-links { gap: 16px; justify-content: center; }
}
