/* Duo Files — duofiles.com
   Native Liquid Glass visual language with adaptive Dark & Light themes */

:root {
  color-scheme: dark light;
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-surface: rgba(18, 26, 44, 0.72);
  --bg-glass: rgba(24, 34, 56, 0.56);
  --bg-glass-hover: rgba(34, 48, 76, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fc;
  --text-secondary: #a2aec4;
  --text-muted: #76849e;
  --accent: #2f8cff;
  --accent-strong: #0a84ff;
  --accent-soft: rgba(47, 140, 255, 0.16);
  --accent-glow: rgba(36, 128, 255, 0.34);
  --bezel-outer: #1a2130;
  --bezel-ring: rgba(255, 255, 255, 0.16);
  --shadow-lg: 0 32px 80px rgba(0, 4, 14, 0.65), 0 8px 24px rgba(0, 4, 14, 0.45);
  --shadow-card: 0 12px 32px rgba(0, 4, 14, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --max-w: 1120px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-elevated: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-glass: rgba(255, 255, 255, 0.68);
  --bg-glass-hover: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --text: #0d1321;
  --text-secondary: #4a556c;
  --text-muted: #6c7890;
  --accent: #007aff;
  --accent-strong: #0066d6;
  --accent-soft: rgba(0, 122, 255, 0.1);
  --accent-glow: rgba(0, 122, 255, 0.22);
  --bezel-outer: #1d2433;
  --bezel-ring: rgba(255, 255, 255, 0.6);
  --shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.18), 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Subtle Liquid Canvas ambient wash */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 68%),
    radial-gradient(ellipse 50% 40% at 85% 35%, rgba(56, 152, 255, 0.1), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 75%, rgba(99, 102, 241, 0.08), transparent 65%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Liquid Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-glass-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(180deg, #2e92ff 0%, #0074f0 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 116, 240, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #439eff 0%, #0a7ef7 100%);
  box-shadow: 0 10px 28px rgba(0, 116, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.btn-glass {
  background: var(--bg-glass);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.btn-glass:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 140, 255, 0.28);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Product Stage */
.stage-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  margin-bottom: 28px;
}

.stage-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stage-tab:hover {
  color: var(--text);
}

.stage-tab[aria-selected="true"] {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.35);
}

.stage-frame-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.device-bezel {
  position: relative;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #2a3346 0%, #101520 55%, #1c2434 100%);
  border: 1px solid var(--bezel-ring);
  box-shadow: var(--shadow-lg);
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.35s ease;
  width: 100%;
  max-width: 880px;
}

.device-bezel.is-cover {
  max-width: 390px;
  border-radius: 40px;
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.device-bezel.is-cover .device-screen {
  border-radius: 30px;
}

.device-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.stage-caption {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* Section Layout */
.section {
  padding: 84px 0;
}

.section-header {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
}

.section-header p {
  margin: 0;
  font-size: 17px;
  color: var(--text-secondary);
}

/* Form-factor Showcase (Unfolded vs Cover) */
.duo-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.glass-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.card-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.card-media.cover-crop {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 24px;
}

/* Feature Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(47, 140, 255, 0.24);
}

.bento-card h3 {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Hardware Demo Video */
.video-shell {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.video-shell video {
  width: 100%;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.chapter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-glass-hover);
}

.chapter-time {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 650;
}

/* Pricing & Privacy Banner */
.cta-panel {
  border-radius: var(--radius-xl);
  padding: 52px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--accent-soft), transparent 72%),
    var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px rgba(0, 116, 240, 0.28);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-panel p {
  margin: 0 auto 26px;
  max-width: 540px;
  font-size: 16.5px;
  color: var(--text-secondary);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Subpages (Support & Privacy) */
.prose-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.prose-wrap h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.032em;
  margin: 0 0 10px;
}

.prose-lead {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 36px;
}

.prose-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 18px;
}

.prose-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.prose-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

details.faq {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

details.faq summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq .faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 860px) {
  .duo-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding-top: 32px;
  }
  .section {
    padding: 56px 0;
  }
  .stage-tab {
    padding: 7px 12px;
    font-size: 13px;
  }
  .stage-frame-wrap {
    min-height: 0;
  }
  .glass-card,
  .bento-card,
  .cta-panel {
    padding: 22px;
  }
  .device-bezel {
    padding: 8px;
    border-radius: 24px;
  }
  .device-screen {
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
