/* ─────────────────────────────────────────────────────────────────────────────
   Goby Studio — Landing Page CSS
   Dark developer aesthetic. Bricolage Grotesque + DM Sans + JetBrains Mono.
───────────────────────────────────────────────────────────────────────────── */

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

:root {
  /* Palette */
  --bg:           #080a0c;
  --bg-2:         #0d1014;
  --surface:      rgba(255,255,255,0.055);
  --surface-hov:  rgba(255,255,255,0.085);
  --stroke:       rgba(255,255,255,0.09);
  --stroke-light: rgba(255,255,255,0.06);
  --accent:       #3b82f6;
  --accent-dim:   rgba(59,130,246,0.18);
  --accent-glow:  rgba(59,130,246,0.35);
  --green:        #22c55e;
  --green-dim:    rgba(34,197,94,0.15);
  --text:         #f0f2f5;
  --text-2:       rgba(240,242,245,0.55);
  --text-3:       rgba(240,242,245,0.35);

  /* Type */
  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-window: 0 32px 80px rgba(0,0,0,0.7), 0 2px 0 rgba(255,255,255,0.08) inset;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Glow blobs behind content */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
}
.bg-glow--2 {
  width: 500px; height: 500px;
  bottom: 10%; right: -150px;
  background: radial-gradient(circle, rgba(124,58,237,0.10), transparent 70%);
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── Card ──────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* ── Capsule badge ─────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.badge--accent {
  background: var(--accent-dim);
  border-color: rgba(59,130,246,0.25);
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 0 28px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.4);
}
.btn--primary:hover {
  background: #2563eb;
  box-shadow: 0 0 40px var(--accent-glow), 0 6px 20px rgba(0,0,0,0.5);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: var(--surface);
  border-color: var(--stroke);
  color: var(--text-2);
  padding: 13px 24px;
}
.btn--secondary:hover {
  background: var(--surface-hov);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(8,10,12,0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--stroke-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.nav__logo:hover { text-decoration: none; color: var(--text); }

.nav__logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.goby-brand-logo{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

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

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 72px;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title mark {
  background: none;
  color: var(--accent);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ── macOS window frame ────────────────────────────────────────────────────── */

.window {
  background: #1a1d21;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window__titlebar {
  height: 40px;
  background: #141619;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.window__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.window__dot--red    { background: #ff5f57; }
.window__dot--yellow { background: #febc2e; }
.window__dot--green  { background: #28c840; }

.window__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-right: 28px; /* offset dots */
}

.window__body { overflow: hidden; line-height: 0; }
.window__body img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hero window */
.hero-window {
  max-width: 900px;
  margin: 56px auto 0;
}

/* ── Stats strip ───────────────────────────────────────────────────────────── */

.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--stroke-light);
  border-bottom: 1px solid var(--stroke-light);
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__number--accent { color: var(--accent); }
.stat__number--green  { color: var(--green); }

.stat__label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
}

/* ── Features ──────────────────────────────────────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.feature-card {
  padding: 28px;
  transition: background 0.18s ease, transform 0.18s ease;
  cursor: default;
}
.feature-card:hover {
  background: var(--surface-hov);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Accent bar — matches the macOS app's metric card pattern */
.feature-card--accent-bar {
  border-left: 3px solid currentColor;
  padding-left: 25px;
}

/* ── Screenshots carousel ──────────────────────────────────────────────────── */

.screenshots { overflow: hidden; }

.screenshots__track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.screenshot-frame {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.screenshot-frame.visible {
  opacity: 1;
  transform: translateY(0);
}
.screenshot-frame:nth-child(2) { transition-delay: 0.1s; }
.screenshot-frame:nth-child(3) { transition-delay: 0.2s; }
.screenshot-frame:nth-child(4) { transition-delay: 0.3s; }

.screenshot-frame--placeholder .window__body {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(124,58,237,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-frame--placeholder .window__body::after {
  content: 'Screenshot';
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

/* ── Clean list ─────────────────────────────────────────────────────────────── */

.clean-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.clean-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}

.clean-item__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.clean-item__label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.clean-item__sub {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
}

/* ── Pricing / CTA section ─────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-card__glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-sub {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 36px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ── Free / Pro comparison ─────────────────────────────────────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
}

.plan-card {
  padding: 32px;
}

.plan-card--pro {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(124,58,237,0.08));
  border-color: rgba(59,130,246,0.25);
  position: relative;
  overflow: hidden;
}

.plan-card--pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
}

.plan-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-3);
}
.plan-label--pro { color: var(--accent); }

.plan-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}
.plan-features li.locked::before {
  content: '–';
  color: var(--text-3);
}
.plan-features li.locked { color: var(--text-3); }

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--stroke-light);
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
}
.footer__links a:hover { color: var(--text); }

/* ── Scroll animations ─────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .hero { padding: 72px 0 48px; }
  .hero-window { margin-top: 40px; }

  .screenshots__track { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }

  .cta-card { padding: 40px 24px; }

  .nav__links .btn--secondary { display: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
