/* VibeDeck — shared styles
   Premium, minimal, controlled. Soft glass aesthetic.
*/

:root {
  --cyan: #79d6ff;
  --pink: #f5a3d7;
  --mint: #b8f0d6;
  --accent: #1fb6c9;
  --ink: #0e1a24;
  --ink-2: #2a3744;
  --muted: #5b6b7a;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-strong: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 30, 50, 0.04),
    0 8px 24px rgba(15, 30, 50, 0.06);
  --radius: 13px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --readw: 640px;
  --font-sans: -apple-system, "SF Pro Rounded", "SF Pro Text", system-ui,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #f5f9fc;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient pastel backdrop — pure CSS, fixed so it stays during scroll. */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -2;
  background:
    radial-gradient(40vmax 36vmax at 12% 8%, rgba(121, 214, 255, 0.55), transparent 60%),
    radial-gradient(36vmax 32vmax at 92% 18%, rgba(245, 163, 215, 0.45), transparent 62%),
    radial-gradient(44vmax 40vmax at 78% 92%, rgba(184, 240, 214, 0.5), transparent 60%),
    radial-gradient(30vmax 30vmax at 8% 88%, rgba(207, 195, 255, 0.35), transparent 65%),
    linear-gradient(180deg, #f4faff 0%, #fbf7fb 100%);
  filter: blur(40px) saturate(110%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1px 1px at 25% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.4), transparent 60%);
  pointer-events: none;
}

/* ---------- Layout ---------- */

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--hairline);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 10px rgba(121, 180, 255, 0.35);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}

.brand-mark::before {
  inset: 6px 6px auto 6px;
  height: 6px;
}

.brand-mark::after {
  inset: auto 6px 6px 6px;
  height: 6px;
  opacity: 0.6;
}

.wordmark {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.nav a:hover {
  color: var(--accent);
}

.nav a.cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.nav a.cta:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Hero (landing) ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 182, 201, 0.18);
}

.wordmark-hero {
  font-weight: 900;
  letter-spacing: -3px;
  font-size: clamp(64px, 12vw, 144px);
  line-height: 0.95;
  background: linear-gradient(90deg, var(--cyan) 0%, #c9b8ff 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.tagline {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 24px 0 12px;
}

.lede {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.1px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 16px rgba(15, 30, 50, 0.18);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-color: var(--hairline-strong);
  box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-arrow {
  transition: transform 0.18s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* ---------- Hero showcase (mock window) ---------- */

.showcase {
  margin: 64px auto 0;
  max-width: 920px;
  padding: 0 12px;
}

.window {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 60px rgba(15, 30, 50, 0.12),
    0 8px 20px rgba(15, 30, 50, 0.06);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4d8dd;
}
.window-dot.r { background: #ff6058; }
.window-dot.y { background: #ffbe2e; }
.window-dot.g { background: #28c941; }

.window-title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.window-body {
  padding: 22px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.tile {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  padding: 14px;
  min-height: 120px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 6px rgba(15, 30, 50, 0.04);
}

.tile .pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.tile h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.tile p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tile .accent {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.7;
}

.tile.c-cyan .pill, .tile.c-cyan .accent { background: #79c0ff; }
.tile.c-violet .pill, .tile.c-violet .accent { background: #b8a4ff; }
.tile.c-pink .pill, .tile.c-pink .accent { background: #f5a3d7; }
.tile.c-mint .pill, .tile.c-mint .accent { background: #7ee0b3; }
.tile.c-orange .pill, .tile.c-orange .accent { background: #ffb27a; }
.tile.c-yellow .pill, .tile.c-yellow .accent { background: #ffd66e; }
.tile.c-rose .pill, .tile.c-rose .accent { background: #ff9bb6; }
.tile.c-slate .pill, .tile.c-slate .accent { background: #a3b1bf; }

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section .section-lede {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  text-wrap: pretty;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature:hover::before {
  opacity: 0.8;
}

.feature-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.feature h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 80px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc {
  padding: 64px 0 32px;
}

.doc-head {
  max-width: var(--readw);
  margin: 0 auto 32px;
  text-align: left;
}

.doc-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.doc-head h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.4px;
  margin: 0;
  color: var(--ink);
}

.doc-head .meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.doc-body {
  max-width: var(--readw);
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px 44px;
}

.doc-body h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 28px 0 8px;
  color: var(--ink);
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

.doc-body p {
  margin: 0 0 14px;
}

.doc-body ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.doc-body li {
  margin-bottom: 6px;
}

.doc-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 182, 201, 0.3);
}

.doc-body a:hover {
  border-bottom-color: var(--accent);
}

.doc-body strong {
  color: var(--ink);
}

/* ---------- Support FAQ ---------- */

.contact-card {
  max-width: var(--readw);
  margin: 0 auto 28px;
  background: linear-gradient(135deg, rgba(121, 214, 255, 0.18), rgba(245, 163, 215, 0.18));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-card .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.contact-card .email {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.contact-card .email:hover {
  color: var(--accent);
}

.faq {
  max-width: var(--readw);
  margin: 0 auto;
}

.faq details {
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq details[open] {
  border-color: var(--hairline-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary .chev {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 182, 201, 0.1);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-size: 13px;
}

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

.faq .answer {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.faq .answer p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav {
    gap: 14px;
  }

  .nav a:not(.cta) {
    display: none;
  }

  .hero {
    padding: 56px 0 32px;
  }

  .section {
    padding: 64px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .window-body {
    padding: 16px;
  }

  .doc-body {
    padding: 28px 22px;
  }

  .site-footer .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile {
    min-height: 100px;
    padding: 12px;
  }
}
