/* ==========================================================================
   BOND.DEV — Design System
   Bold & Colorful · Magenta-Purple gradient · Yellow accent · Rounded type
   ========================================================================== */

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

:root {
  /* Color tokens */
  --magenta: #d6336c;
  --magenta-soft: #f06595;
  --purple: #5b2a9d;
  --purple-deep: #38185f;
  --ink: #1f1233;
  --ink-soft: #c9bce0;
  --ink-faint: #8d7eb0;
  --yellow: #ffd43b;
  --yellow-deep: #f5b800;
  --cream: #fdf8f4;
  --cream-dim: #f3ecf7;
  --white: #ffffff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--magenta) 0%, var(--purple) 100%);
  --grad-primary-soft: linear-gradient(135deg, var(--magenta-soft) 0%, var(--purple) 100%);
  --grad-deep: linear-gradient(160deg, var(--purple-deep) 0%, var(--ink) 100%);

  /* Type */
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-stamp: 32px 8px 32px 8px;

  /* Shadow */
  --shadow-card: 0 12px 32px rgba(56, 24, 95, 0.14);
  --shadow-lift: 0 18px 44px rgba(56, 24, 95, 0.22);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { font-size: 1.05rem; color: var(--ink); }
.lede { font-size: 1.2rem; color: var(--ink); opacity: 0.85; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta);
}

.on-dark .eyebrow { color: var(--yellow); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section {
  padding: var(--sp-7) 0;
}

.section--tight { padding: var(--sp-5) 0; }

.on-dark {
  background: var(--grad-deep);
  color: var(--cream);
}

.on-dark h1 { color: var(--cream); }
.on-dark h2, .on-dark h3 { color: var(--yellow); }
.on-dark h4 { color: var(--cream); }
.on-dark p { color: var(--ink-soft); }

.on-brand {
  background: var(--grad-primary);
  color: var(--white);
}
.on-brand h1, .on-brand h2, .on-brand h3 { color: var(--white); }
.on-brand p { color: rgba(255,255,255,0.92); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { box-shadow: var(--shadow-lift); }

.btn--accent {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn--accent:hover { box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.on-dark .btn--ghost, .on-brand .btn--ghost {
  color: var(--cream);
  border-color: rgba(255,255,255,0.5);
}

.btn--pending {
  background: rgba(255,255,255,0.15);
  color: var(--cream);
  border: 2px dashed rgba(255,255,255,0.5);
  cursor: default;
}
.btn--pending:hover { transform: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91, 42, 157, 0.08);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand .dot { color: var(--magenta); }

.nav-links {
  display: flex;
  gap: var(--sp-4);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

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

.nav-links a.active { color: var(--magenta); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: var(--sp-2) var(--sp-4) var(--sp-4);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-card);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid rgba(91,42,157,0.08); }
  .nav-toggle { display: block; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--ink-soft);
  padding: var(--sp-5) 0 var(--sp-4);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.site-footer .brand { color: var(--cream); }
.site-footer a:hover { color: var(--yellow); }

.footer-links {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-fine {
  width: 100%;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Stamp (signature element) ---------- */
/* A rounded "sticker" shape used as the recurring visual signature —
   nods to laptop/water-bottle sticker culture, fitting an indie creative-dev brand */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-stamp);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  position: relative;
}

.stamp--app {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  flex-shrink: 0;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-decoration: none;
}

.app-card .stamp--app { margin-bottom: var(--sp-1); }

.app-card h3 { margin-top: 0.2rem; }

.app-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--cream-dim);
  color: var(--purple);
  width: fit-content;
}

.app-card .tag--soon {
  background: rgba(255,255,255,0.15);
  color: var(--ink-faint);
}

/* Cards with banner images — zero padding on card, image fills top naturally */
.app-card--with-img {
  padding: 0;
  overflow: hidden; /* clips image corners to card border-radius */
}

.app-card-img-wrap {
  height: 160px;
  width: 100%;
  background: #ecedf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.app-card-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* ---------- Hero photo ---------- */
.hero-split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: center;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
  box-shadow: var(--shadow-lift);
}

@media (max-width: 680px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo { width: 150px; height: 150px; margin: 0 auto; }
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-7) 0 var(--sp-6);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  gap: var(--sp-4);
}

.hero h1 { margin-bottom: var(--sp-3); }
.hero .lede { margin-bottom: var(--sp-4); max-width: 540px; }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- Feature blocks ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature h4 { color: var(--purple); }
.on-dark .feature h4, .on-brand .feature h4 { color: var(--yellow); }

.feature p { font-size: 0.97rem; }

/* ---------- Process steps ---------- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.process-step {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.process-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius-stamp);
  background: var(--grad-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.process-step h4 { margin-bottom: 0.2rem; }

/* ---------- Stat callout ---------- */
.stat-callout {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  font-weight: 700;
  margin-top: var(--sp-2);
}

.stat-callout .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
}

/* ---------- Screenshot placeholder ---------- */
.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}

.shot-placeholder {
  aspect-ratio: 9/19.5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 2px dashed rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: var(--sp-2);
}

body:not(.on-dark-page) .shot-placeholder {
  border-color: rgba(91,42,157,0.3);
  background: var(--cream-dim);
  color: var(--ink-faint);
}

/* Real screenshots */
.shot-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lift);
}

/* Landscape screenshots (Apple TV) */
.shot-row--landscape {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* App banner image (hero area) */
.app-banner-img {
  width: 100%;
  max-width: 820px;
  border-radius: var(--radius-lg);
  display: block;
  margin: var(--sp-4) auto 0;
  box-shadow: var(--shadow-lift);
}

/* ---------- Forms ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--sp-3);
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-dim);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--magenta);
  outline: none;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: var(--sp-2);
}

.form-success {
  display: none;
  background: var(--cream-dim);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  font-weight: 600;
  color: var(--purple);
}

.form-success.show { display: block; }

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: center;
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- App page header ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.app-header .stamp--app { width: 80px; height: 80px; font-size: 2rem; overflow: hidden; padding: 0; }
.stamp--app img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
}

.pending-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ---------- Generic utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.max-w-text { max-width: 680px; }
