/* ============================================
   MyCardsandDocs — Static Site Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-0: #07080B;
  --bg-1: #0E1014;
  --bg-2: #16181F;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.10);
  --ink-0: #F5F6F7;
  --ink-1: #C9CBD1;
  --ink-2: #8A8D96;
  --ink-3: #5B5E66;
  --accent: #2FE4A4;
  --accent-deep: #0B8C66;
  --accent-soft: rgba(47,228,164,0.14);
  --gold: #D4B374;
  --plum: #8B5CF6;
  --ruby: #F26D6D;
  --steel: #6B8AFF;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 32px;
  --space-xxxl: 64px;
  --font: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
  --radius-pill: 9999px;
  --radius-card: 22px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-0: #F2F2F7;
    --bg-1: #FFFFFF;
    --bg-2: #E8E8ED;
    --ink-0: #0B0C0F;
    --ink-1: #3A3C42;
    --ink-2: #6B6E76;
    --ink-3: #8E9099;
    --line: rgba(0,0,0,0.06);
    --line-strong: rgba(0,0,0,0.10);
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-0); color: var(--ink-1); line-height: 1.55; font-size: 15px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-soft); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Layout --- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

/* --- Components: Panel --- */
.panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card); padding: var(--space-xxl);
}
.panel-gold {
  background: linear-gradient(135deg, rgba(212,179,116,0.08), rgba(212,179,116,0.02));
  border: 1px solid rgba(212,179,116,0.12); border-radius: var(--radius-card);
  padding: var(--space-xxl);
}
.panel-warn {
  background: linear-gradient(135deg, rgba(242,109,109,0.06), rgba(242,109,109,0.02));
  border: 1px solid rgba(242,109,109,0.12); border-radius: var(--radius-card);
  padding: var(--space-xxl);
}

/* --- Components: Trust chip --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Components: Device frame --- */
.device-frame {
  border-radius: 38px; border: 1px solid var(--line-strong);
  overflow: hidden; position: relative;
  box-shadow: 0 0 80px rgba(47,228,164,0.10), 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: 56px; display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink-0); letter-spacing: -0.01em; }
.nav-logo .icon { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.nav-logo .icon svg { width: 15px; height: 15px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink-0); }
.nav-cta {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--bg-0);
  font-size: 12px; font-weight: 600; transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }
.hamburger { display: none; background: none; border: none; color: var(--ink-1); cursor: pointer; padding: 4px; }
.hamburger svg { width: 22px; height: 22px; }

/* Mobile nav overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-0) 95%, transparent);
  backdrop-filter: blur(20px); flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a { font-size: 20px; color: var(--ink-0); font-weight: 500; }
.nav-overlay .nav-cta { height: 44px; padding: 0 28px; font-size: 14px; }
.nav-overlay .close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--ink-1); cursor: pointer; }
.nav-overlay .close svg { width: 24px; height: 24px; }

/* --- Hero --- */
.hero { padding-top: 100px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--ink-0); }
.hero p { margin-top: 16px; font-size: 16px; line-height: 1.6; max-width: 480px; }
.hero-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-actions a.learn-more { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.hero-actions a.learn-more:hover { color: var(--accent); }
.hero-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual .glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,228,164,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-visual .device-frame { max-width: 280px; transform: rotate(4deg); }

/* --- Feature Grid --- */
.features { padding: 48px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-grid .panel { transition: border-color 0.2s; }
.feature-grid .panel:hover { border-color: var(--line-strong); }
.feature-grid .icon { width: 32px; height: 32px; margin-bottom: 14px; display: flex; align-items: center; }
.feature-grid .icon svg { width: 28px; height: 28px; }
.feature-grid h3 { font-size: 14px; font-weight: 600; color: var(--ink-0); margin-bottom: 6px; }
.feature-grid p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* --- How Private --- */
.private { padding: 24px 0 48px; }
.private h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--ink-0); letter-spacing: -0.02em; margin-bottom: 20px; }
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.private-grid h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.private-grid h4.gold { color: var(--gold); }
.private-grid h4.emerald { color: var(--accent); }
.private-grid ul { display: flex; flex-direction: column; gap: 8px; }
.private-grid li { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; }
.private-grid li .check { color: var(--accent); flex-shrink: 0; }
.private .caption { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.private .caption a { color: var(--accent); }
.private .caption a:hover { text-decoration: underline; }

/* --- Screenshot Carousel --- */
.carousel { padding: 24px 0 48px; }
.carousel h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--ink-0); letter-spacing: -0.02em; margin-bottom: 20px; }
.carousel-track {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex-shrink: 0; width: 180px; scroll-snap-align: start;
  position: relative;
}
.carousel-item .glow-wrap { position: relative; }
.carousel-item .glow-wrap::before {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,228,164,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.carousel-item img { border-radius: 24px; border: 1px solid var(--line-strong); width: 100%; }
.carousel-item .cap { margin-top: 10px; }
.carousel-item .cap strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink-0); }
.carousel-item .cap span { font-size: 12px; color: var(--ink-3); }

/* --- Why Exists --- */
.closer { padding: 24px 0 48px; }
.closer .panel { max-width: 680px; }
.closer p { font-size: 16px; line-height: 1.7; color: var(--ink-1); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .container { padding-top: 48px; padding-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--ink-0); margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a, .footer-grid span { font-size: 13px; color: var(--ink-2); transition: color 0.2s; }
.footer-grid a:hover { color: var(--ink-0); }
.footer-grid a.emerald:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 12px; color: var(--ink-3); }

/* --- Content Pages (Privacy/Support/Terms) --- */
.page-header { padding-top: 100px; padding-bottom: 32px; }
.page-header h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--ink-0); letter-spacing: -0.02em; }
.page-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-section:last-child { border-bottom: none; }
.page-section h2 { font-size: 15px; font-weight: 600; color: var(--ink-0); margin-bottom: 10px; }
.page-section h3 { font-size: 14px; font-weight: 600; color: var(--ink-1); margin: 16px 0 8px; }
.page-section p, .page-section li { font-size: 14px; line-height: 1.65; color: var(--ink-1); }
.page-section ul { list-style: none; margin-top: 8px; }
.page-section ul li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.page-section ul li::before { content: '\2022'; position: absolute; left: 0; color: var(--ink-3); }
.page-date { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* --- FAQ Accordion (details/summary) --- */
details { border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 10px; overflow: hidden; }
details[open] { border-color: var(--line-strong); }
summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--ink-0); list-style: none; user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary .chevron { transition: transform 0.2s; color: var(--ink-3); flex-shrink: 0; }
details[open] summary .chevron { transform: rotate(180deg); }
details .faq-body { padding: 0 20px 16px; font-size: 14px; line-height: 1.65; color: var(--ink-1); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 0; }

/* --- CTA Section --- */
.cta-section { padding: 48px 0; text-align: center; }
.cta-section h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--ink-0); letter-spacing: -0.02em; }
.cta-section p { font-size: 15px; color: var(--ink-2); margin-top: 8px; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-section .badge-wrap { margin-top: 20px; }

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink-0); background: var(--bg-2); }
td { color: var(--ink-2); }
tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* --- Animations (scroll reveal) --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-visual .device-frame { max-width: 220px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .private-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .carousel-item { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
