/* ==========================================================================
   Sold on Social — AI-powered, human-led
   Editorial ink-and-bone system. Three typographic voices:
   mono = the machine · serif italic = the human · sans = neutral
   ========================================================================== */

:root {
  --ink: #0c0c12;
  --ink-2: #12121b;
  --bone: #f2f0eb;
  --bone-2: #e9e5dc;
  --white: #ffffff;
  --text-dark: #191c26;
  --text-muted-dark: #5c6070;
  --text-light: #f0efe9;
  --text-muted-light: #9ba0b2;
  --violet: #8b7cff;
  --violet-deep: #6a54f2;
  --violet-dim: rgba(139, 124, 255, 0.12);
  --violet-glow: rgba(139, 124, 255, 0.35);
  --coral: #ff6b5e;
  --coral-dim: rgba(255, 107, 94, 0.12);
  --coral-glow: rgba(255, 107, 94, 0.3);
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--coral) 100%);
  --border-dark: rgba(255, 255, 255, 0.09);
  --border-bone: #ddd8cc;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(12, 12, 18, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 780px; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; }

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.1rem;
}

h1 em, h2 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

::selection { background: var(--violet); color: var(--white); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(12, 12, 18, 0.96);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.site-nav a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.site-nav a:hover, .site-nav a.active { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: 0.3s;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px var(--violet-glow);
}
.btn-primary:hover { box-shadow: 0 8px 32px var(--violet-glow), 0 4px 20px var(--coral-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); }

.btn-light {
  background: var(--ink);
  color: var(--white);
}
.btn-light:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }

.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 26px; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Eyebrows — the machine voice
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '● ';
  animation: dot-blink 1.6s step-end infinite;
}

.eyebrow-dark { color: var(--violet-deep); }

@keyframes dot-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-light);
}

/* dot-grid texture */
.hero::before, .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero { padding: 120px 0 100px; }
.page-hero { padding: 90px 0 76px; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow-1 {
  width: 560px; height: 560px;
  background: var(--violet-deep);
  top: -200px; right: -80px;
}

.hero-glow-2 {
  width: 480px; height: 480px;
  background: #b8384f;
  bottom: -220px; right: 10%;
}

.hero-inner { position: relative; max-width: 800px; }
.page-hero .container { position: relative; }
.page-hero .hero-sub { margin-left: 0; }

.hero h1, .page-hero h1 { max-width: 800px; }

.hero-sub {
  max-width: 620px;
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--text-muted-light);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-points {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
}

.point {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted-light);
}

.point-icon { color: var(--coral); }

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

.section { padding: 104px 0; position: relative; }

.section-cream { background: var(--bone); color: var(--text-dark); }
.section-dark {
  background: var(--ink-2);
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.section h2 { max-width: 680px; }

.section-lead {
  max-width: 640px;
  font-size: 1.1rem;
  margin-bottom: 42px;
}
.section-cream .section-lead { color: var(--text-muted-dark); }
.section-dark .section-lead { color: var(--text-muted-light); }

/* --------------------------------------------------------------------------
   Balance cards (AI vs Human)
   -------------------------------------------------------------------------- */

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}

.balance-card {
  border-radius: var(--radius);
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border-bone);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.balance-card:hover { transform: translateY(-3px); }

.section-cream .balance-ai { background: linear-gradient(180deg, rgba(139, 124, 255, 0.07), rgba(255, 255, 255, 0)) , var(--white); }
.section-cream .balance-human { background: linear-gradient(180deg, rgba(255, 107, 94, 0.07), rgba(255, 255, 255, 0)), var(--white); }

.section-dark .balance-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  box-shadow: none;
}

.section-dark .balance-ai:hover { border-color: var(--violet-glow); }
.section-dark .balance-human:hover { border-color: var(--coral-glow); }

.balance-ai { border-top: 3px solid var(--violet); }
.balance-human { border-top: 3px solid var(--coral); }

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.chip-ai { background: var(--violet-dim); color: var(--violet-deep); }
.chip-human { background: var(--coral-dim); color: #d94a3d; }

.section-dark .chip-ai { background: rgba(139, 124, 255, 0.18); color: #b3a6ff; }
.section-dark .chip-human { background: rgba(255, 107, 94, 0.16); color: #ff9a90; }

.balance-card ul { list-style: none; margin-top: 18px; }

.balance-card li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 0.97rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.07);
}
.balance-card li:last-child { border-bottom: none; }
.section-dark .balance-card li { border-bottom-color: rgba(255, 255, 255, 0.06); }

.section-cream .balance-card li { color: var(--text-muted-dark); }
.section-dark .balance-card li { color: var(--text-muted-light); }

.balance-ai li::before {
  content: '⚙';
  position: absolute;
  left: 2px;
  color: var(--violet);
}

.balance-human li::before {
  content: '⬢';
  position: absolute;
  left: 2px;
  color: var(--coral);
}

/* --------------------------------------------------------------------------
   Services grid (home)
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 124, 255, 0.4);
  background: rgba(139, 124, 255, 0.05);
}

.service-card:hover::after { opacity: 1; }

.service-icon { font-size: 1.9rem; }

.service-card h3 {
  font-size: 1.32rem;
  margin: 16px 0 8px;
  font-weight: 700;
}

.service-tagline { color: var(--text-muted-light); font-size: 0.97rem; }

.service-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--violet);
  transition: color 0.2s;
}

.service-card:hover .service-link { color: #b3a6ff; }

/* --------------------------------------------------------------------------
   Service detail (services page)
   -------------------------------------------------------------------------- */

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.service-icon-lg { font-size: 2.6rem; }

.service-tagline-lg {
  font-size: 1.05rem;
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
}
.section-cream .service-tagline-lg { color: var(--text-muted-dark); }
.section-dark .service-tagline-lg { color: var(--text-muted-light); }

.best-for {
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: 10px;
  border-left: 3px solid var(--coral);
  font-size: 0.97rem;
}
.section-cream .best-for { background: var(--white); border: 1px solid var(--border-bone); border-left: 3px solid var(--coral); }
.section-dark .best-for { background: rgba(255, 255, 255, 0.05); }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
  counter-reset: step;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border-bone);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out);
}

.process-step:hover { transform: translateY(-3px); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.process-step h3 { font-size: 1.18rem; margin-bottom: 8px; font-weight: 700; }
.process-step p { font-size: 0.93rem; color: var(--text-muted-dark); }

/* --------------------------------------------------------------------------
   Promises
   -------------------------------------------------------------------------- */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}

.promise {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s;
}

.promise:hover { border-color: var(--violet-glow); }

.promise h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }

.promise h3::before {
  content: '→ ';
  color: var(--coral);
}

.promise p { color: var(--text-muted-light); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  background: var(--grad);
  color: var(--white);
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.cta-inner { position: relative; }
.cta-inner h2 { margin: 0 auto 14px; max-width: 720px; }
.cta-inner h2 em {
  -webkit-text-fill-color: currentColor;
  background: none;
  font-style: italic;
}

.cta-inner p {
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0.94;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.prose {
  font-size: 1.07rem;
  color: var(--text-muted-dark);
  margin-bottom: 22px;
}

.container.narrow h2 { margin-top: 48px; }
.container.narrow h2:first-child { margin-top: 0; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.value {
  background: var(--white);
  border: 1px solid var(--border-bone);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out);
}

.value:hover { transform: translateY(-3px); }

.value h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 700; }
.value p { font-size: 0.94rem; color: var(--text-muted-dark); }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-bone);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 22px; }

.form-field label, .form-field legend {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 8px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border-bone);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--bone);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

fieldset.form-field { border: none; }

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.93rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-dark);
  cursor: pointer;
}

.checkbox-row input { accent-color: var(--violet-deep); }

.form-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--text-muted-dark);
}

.form-success {
  background: var(--white);
  border: 1px solid var(--border-bone);
  border-radius: var(--radius);
  padding: 52px 42px;
  text-align: center;
  box-shadow: var(--shadow);
}

.form-success h2 { margin-bottom: 12px; }
.form-success p { color: var(--text-muted-dark); margin-bottom: 28px; }

.form-error {
  background: var(--coral-dim);
  border: 1px solid var(--coral-glow);
  color: #c0392b;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Dev outbox
   -------------------------------------------------------------------------- */

.outbox-card {
  background: var(--white);
  border: 1px solid var(--border-bone);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.outbox-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.outbox-meta span { color: var(--text-muted-dark); font-family: var(--font-mono); font-size: 0.8rem; }

.outbox-card p { font-size: 0.93rem; color: var(--text-muted-dark); }

.outbox-message {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bone-2);
  color: var(--text-dark) !important;
}

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

.site-footer {
  background: var(--ink);
  color: var(--text-muted-light);
  padding: 68px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { margin-top: 14px; font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--violet);
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-note { font-size: 0.9rem; margin-top: 6px; }

.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Scroll reveal — staggered
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger grids automatically */
.services-grid > .reveal:nth-child(2),
.process-grid > .reveal:nth-child(2),
.promise-grid > .reveal:nth-child(2),
.values-grid > .reveal:nth-child(2),
.balance-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }

.services-grid > .reveal:nth-child(3),
.process-grid > .reveal:nth-child(3),
.promise-grid > .reveal:nth-child(3),
.values-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }

.services-grid > .reveal:nth-child(4),
.process-grid > .reveal:nth-child(4),
.values-grid > .reveal:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow::before { animation: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 860px) {
  .balance-grid, .services-grid, .values-grid, .form-row { grid-template-columns: 1fr; }
  .process-grid, .promise-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink);
    padding: 26px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border-dark);
  }

  .site-nav.open { display: flex; }
}

@media (max-width: 560px) {
  .process-grid, .promise-grid { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 64px; }
  .section { padding: 72px 0; }
  .contact-form { padding: 28px 20px; }
  .hero-points { gap: 16px; }
}
