/* ─────────────────────────────────────────────
   Surface Signal — stylesheet
   Edit design tokens in :root to retheme the
   entire site without touching anything else.
───────────────────────────────────────────── */

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

/* ── DESIGN TOKENS ── */
:root {
  /* Colours */
  --ink:       #0f0f0e;
  --paper:     #f5f2ec;
  --paper-dim: #e8e4dc;
  --teal:      #1dbf9e;
  --teal-dim:  #0d9478;
  --muted:     #6b6860;
  --border:    rgba(255,255,255,0.08);
  --card-bg:   rgba(255,255,255,0.04);

  /* Typography */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Section backgrounds */
  --bg-primary:   #0f0f0e;
  --bg-secondary: #080807;
  --bg-tertiary:  #0b0b0a;
  --bg-card:      #161614;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,14,0.85);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span { color: var(--teal); }

nav a.cta-nav {
  background: var(--teal);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

nav a.cta-nav:hover { background: var(--teal-dim); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 8rem 3rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-text { padding-right: 4rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.75rem;
}

h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(245,242,236,0.65);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--teal-dim); transform: translateY(-1px); }

.btn-ghost {
  color: rgba(245,242,236,0.55);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,242,236,0.2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--paper); border-color: var(--paper); }

.trial-note {
  font-size: 0.8rem;
  color: rgba(245,242,236,0.35);
  margin-top: 0.85rem;
}

.btn-primary-lg {
  display: block;
  width: 100%;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}

.btn-primary-lg:hover { background: var(--teal-dim); transform: translateY(-1px); }

/* ── DASHBOARD MOCKUP ── */
.hero-visual { position: relative; }

.dashboard-shell {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  animation: floatIn 0.9s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.3s;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.db-titlebar {
  background: #1a1a18;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.db-dot { width: 10px; height: 10px; border-radius: 50%; }
.db-dot:nth-child(1) { background: #ff5f57; }
.db-dot:nth-child(2) { background: #febc2e; }
.db-dot:nth-child(3) { background: #28c840; }

.db-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(245,242,236,0.3);
  letter-spacing: 0.04em;
}

.db-body { padding: 1.25rem; }

.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.db-heading {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--paper);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.metric-label {
  font-size: 0.65rem;
  color: rgba(245,242,236,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.metric-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--paper);
  line-height: 1;
}

.metric-sub {
  font-size: 0.65rem;
  margin-top: 0.2rem;
  color: rgba(245,242,236,0.35);
}

.metric-card.accent-green .metric-value,
.metric-card.accent-green .metric-sub { color: #4ade80; }
.metric-card.accent-green .metric-sub { opacity: 0.7; }

.metric-card.accent-blue .metric-value,
.metric-card.accent-blue .metric-sub  { color: #60a5fa; }
.metric-card.accent-blue .metric-sub  { opacity: 0.7; }

.metric-card.accent-amber .metric-value,
.metric-card.accent-amber .metric-sub { color: #fbbf24; }
.metric-card.accent-amber .metric-sub { opacity: 0.7; }

/* ── ORDER LIST ── */
.order-list { display: flex; flex-direction: column; gap: 0.4rem; }

.order-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  animation: slideInRow 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.order-row:nth-child(1) { animation-delay: 0.8s; }
.order-row:nth-child(2) { animation-delay: 1.0s; }
.order-row:nth-child(3) { animation-delay: 1.2s; }

@keyframes slideInRow {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.order-num    { color: rgba(245,242,236,0.5); font-size: 0.7rem; min-width: 38px; }
.order-name   { flex: 1; color: var(--paper); }
.order-amount { color: rgba(245,242,236,0.6); min-width: 52px; text-align: right; }

.badge {
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-repeat { background: rgba(74,222,128,0.15);  color: #4ade80; }
.badge-new    { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.badge-high   { background: rgba(192,132,252,0.15); color: #c084fc; }
.badge-best   { background: rgba(251,191,36,0.15);  color: #fbbf24; }

/* ── HERO FADE-IN ANIMATIONS ── */
.hero-text > * {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-text .eyebrow      { animation-delay: 0.1s; }
.hero-text h1            { animation-delay: 0.2s; }
.hero-text .hero-sub     { animation-delay: 0.3s; }
.hero-text .hero-actions { animation-delay: 0.4s; }
.hero-text .trial-note   { animation-delay: 0.45s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DIVIDERS ── */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

/* ── CONTRAST STRIP ── */
.contrast-strip {
  background: var(--bg-secondary);
  padding: 5rem 3rem;
  text-align: center;
}

.contrast-strip blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--paper);
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.contrast-strip blockquote em {
  font-style: normal;
  color: var(--teal);
}

/* ── SHARED SECTION STYLES ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.section-body {
  font-size: 1.05rem;
  color: rgba(245,242,236,0.6);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.team-card {
  background: var(--ink);
  padding: 2rem 2rem 2.25rem;
  transition: background 0.25s;
}

.team-card:hover { background: rgba(255,255,255,0.025); }

.team-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.icon-green  { background: rgba(74,222,128,0.1);  }
.icon-blue   { background: rgba(96,165,250,0.1);  }
.icon-amber  { background: rgba(251,191,36,0.1);  }
.icon-purple { background: rgba(192,132,252,0.1); }

.team-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.team-card p {
  font-size: 0.9rem;
  color: rgba(245,242,236,0.5);
  line-height: 1.65;
}

/* ── SHARE SECTION ── */
.share-section {
  background: var(--bg-tertiary);
  padding: 6rem 3rem;
}

.share-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.url-demo {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 1.5rem;
}

.url-label {
  font-size: 0.7rem;
  color: rgba(245,242,236,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.url-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f0f0e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
}

.url-lock { color: var(--teal); font-size: 0.8rem; }
.url-text { font-size: 0.82rem; color: rgba(245,242,236,0.6); font-family: 'Courier New', monospace; }
.url-text strong { color: var(--teal); }

.copy-btn {
  margin-left: auto;
  background: rgba(29,191,158,0.12);
  color: var(--teal);
  border: none;
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.copy-btn:hover { background: rgba(29,191,158,0.2); }

.device-row { display: flex; flex-direction: column; gap: 0.5rem; }

.device-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  font-size: 0.85rem;
  color: rgba(245,242,236,0.6);
}

.device-item svg { flex-shrink: 0; }
.device-status { margin-left: auto; font-size: 0.7rem; color: #4ade80; }

/* ── HOW IT WORKS ── */
.how-section { padding: 6rem 3rem; }
.how-inner   { max-width: 1280px; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.step {
  background: var(--ink);
  padding: 2.5rem 2rem;
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(29,191,158,0.35);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.step p { font-size: 0.9rem; color: rgba(245,242,236,0.5); line-height: 1.65; }

/* ── PRICING ── */
.pricing-section {
  background: var(--bg-secondary);
  padding: 6rem 3rem;
  text-align: center;
}

.pricing-inner { max-width: 520px; margin: 0 auto; }

.price-card {
  background: var(--bg-card);
  border: 1px solid rgba(29,191,158,0.3);
  border-radius: 16px;
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.price-tag {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--paper);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.price-period {
  font-size: 0.85rem;
  color: rgba(245,242,236,0.4);
  margin-bottom: 2rem;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: rgba(245,242,236,0.7);
}

.price-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.price-fine {
  font-size: 0.78rem;
  color: rgba(245,242,236,0.3);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(245,242,236,0.5);
  text-decoration: none;
}

.footer-logo span { color: var(--teal); }

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  font-size: 0.82rem;
  color: rgba(245,242,236,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(245,242,236,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav                 { padding: 1rem 1.5rem; }
  .hero               { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 3rem; }
  .hero-text          { padding-right: 0; }
  .share-inner        { grid-template-columns: 1fr; gap: 3rem; }
  .team-grid          { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: 1fr; }
  .section,
  .how-section        { padding: 4rem 1.5rem; }
  .share-section      { padding: 4rem 1.5rem; }
  .pricing-section    { padding: 4rem 1.5rem; }
  .contrast-strip     { padding: 3.5rem 1.5rem; }
  footer              { flex-direction: column; gap: 1.5rem; padding: 2rem 1.5rem; }
}
