/* ============================================
   Showcase — shared styles
   All app pages link this file. Per-page <style>
   blocks override --accent, set the background
   gradient, and add any unique layout.
   ============================================ */

/* ── TOKENS ── */
:root {
  --bg:           #f5f5f7;
  --surface:      #ffffff;
  --surface-2:    #f0f0f5;
  --text:         #1d1d1f;
  --text-muted:   #6e6e73;
  --accent:       #0071e3;
  --accent-hover: #0077ed;
  --border:       rgba(0,0,0,0.08);
  --shadow:       0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.12);
  --radius-card:  20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #000000;
    --surface:      #1c1c1e;
    --surface-2:    #2c2c2e;
    --text:         #f5f5f7;
    --text-muted:   #a1a1a6;
    --accent:       #0a84ff;
    --accent-hover: #409cff;
    --border:       rgba(255,255,255,0.10);
    --shadow:       0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               system-ui, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TOP NAV ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  height: 52px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.topnav-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.topnav-home:hover { opacity: 0.72; }

.topnav-home svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topnav-sep {
  color: var(--text-muted);
  font-size: 14px;
  opacity: 0.5;
  user-select: none;
}

.topnav-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── MAIN CONTAINER ── */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 92px 0 72px;
}

.app-icon-wrap {
  margin: 0 auto 28px;
  width: 120px;
  height: 120px;
}

.app-icon-wrap svg,
.app-icon-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  display: block;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  /* default — pages override with gradient text */
  color: var(--text);
}

.hero .tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

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

.requirements {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 4px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border-radius: 980px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.btn-disabled, .btn-disabled:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-large { padding: 16px 40px; font-size: 18px; }

/* ── SVG SHOWCASE ILLUSTRATION ── */
.showcase {
  margin: 0 auto 64px;
  max-width: 860px;
  padding: 0 16px;
}
.showcase svg,
.showcase img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ── SECTION LABEL ── */
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 28px;
}

/* ── FEATURES: HERO CARDS (3-column) ── */
.features-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 36px 0 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 12px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── FEATURES: DETAIL LIST ── */
.features-list {
  padding: 8px 0 80px;
}

.features-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 32px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.features-list li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.features-list li:last-child { border-bottom: none; }

.features-list strong {
  color: var(--text);
  font-weight: 600;
}

.features-list code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── CTA / DOWNLOAD SECTION ── */
.cta-section {
  text-align: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
}

.cta-section .cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
footer a:hover { opacity: 0.72; }

/* ── WEB APP PREVIEW FRAME ── */
.app-preview-frame {
  margin: 0 0 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.app-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.app-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.app-preview-dot.red    { background: #ff5f57; }
.app-preview-dot.yellow { background: #febc2e; }
.app-preview-dot.green  { background: #28c840; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 44px; }
  .hero .tagline { font-size: 17px; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
  .features-hero { padding: 24px 0 12px; gap: 14px; }
  .feature-card { padding: 24px 20px; }
  .features-list ul { padding: 16px 18px; }
  .cta-section { padding: 52px 0; }
}

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