/* styles.css — Custom Solutions
   Dark, ElevenLabs-inspired design system. */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e11;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;

  --accent-1: #7c5cff; /* violet */
  --accent-2: #22d3ee; /* cyan   */
  --grad: linear-gradient(100deg, var(--accent-1), var(--accent-2));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

/* ---------- Ambient background ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.orb-1 {
  width: 620px; height: 620px;
  top: -240px; left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
}
.orb-2 {
  width: 520px; height: 520px;
  top: 380px; right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 65%);
}

main, .footer { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #0a0a0b;
  background: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.35);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-hover); box-shadow: none; }
.btn-block { width: 100%; padding: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.6);
}
.brand-name span { color: var(--text-dim); }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin-bottom: 26px;
}
.lede {
  max-width: 640px;
  margin: 0 auto 38px;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 46px;
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hero-trust .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.6;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-sub { color: var(--text-dim); margin: 0; font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.14));
  border: 1px solid var(--border);
  color: #d6ccff;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.step p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.why-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.why-copy .btn { margin-top: 28px; }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-list li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.why-list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-list p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.contact-direct { margin-top: 22px; color: var(--text-dim); }
.contact-direct a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}
.contact-direct a:hover { border-color: var(--accent-2); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.form-note {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 1em;
  text-align: center;
}
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.footer-tag { color: var(--text-dim); margin: 0; flex: 1; }
.footer-mail { color: var(--text); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.footer-mail:hover { border-color: var(--accent-2); }
.footer-legal {
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 84px 0 72px; }
  .section { padding: 72px 0; }
  .cards, .why-list, .field-row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
