/* =========================================================================
   Sitely — modern static marketing site
   Sleek monochrome base (black / graphite / silver / white) with a cool
   indigo→cyan accent. Single stylesheet, no build step. Safe on S3.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0e0e10;
  --ink-2: #3f3f46;
  --muted: #6b6d76;
  --line: #e4e4e7;

  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --dark: #0a0a0b;
  --dark-2: #141416;

  /* Cool accent — the pop of color */
  --accent: #6366f1;                       /* indigo */
  --accent-2: #22d3ee;                     /* cyan */
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #3b82f6 52%, #22d3ee 100%);
  /* Light tint of the accent for text/shine on dark backgrounds */
  --shine: linear-gradient(120deg, #c7d2fe 0%, #a5b4fc 45%, #7dd3fc 100%);

  /* Brushed silver — kept for the hero CTA + logo, for a sleek metallic touch */
  --metal: linear-gradient(135deg, #ffffff 0%, #d7d8dc 40%, #a6a8ae 62%, #cfd0d4 78%, #85878d 100%);

  --brand: #0e0e10;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .06), 0 4px 16px rgba(9, 9, 11, .05);
  --shadow-md: 0 12px 34px rgba(9, 9, 11, .12);
  --shadow-glow: 0 12px 40px rgba(99, 102, 241, .30);

  --container: 1140px;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", var(--font-sans);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

/* Accent-gradient primary (on light surfaces) */
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(99, 102, 241, .42); }

/* On the dark hero, the primary CTA is a polished silver pill (sleek metallic accent) */
.hero .btn-primary {
  background: var(--metal); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 10px 30px rgba(0, 0, 0, .45);
}
.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 44px rgba(199, 210, 254, .28);
}

.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand-mark { display: inline-flex; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav > a:not(.btn) { font-weight: 500; color: var(--ink-2); font-size: .96rem; transition: color .15s ease; }
.nav > a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 96px 0 120px; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -2;
  background:
    radial-gradient(closest-side at 22% 28%, rgba(99, 102, 241, .40), transparent 70%),
    radial-gradient(closest-side at 74% 20%, rgba(34, 211, 238, .28), transparent 70%),
    radial-gradient(closest-side at 52% 62%, rgba(59, 130, 246, .30), transparent 70%);
  filter: blur(26px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero-inner { max-width: 800px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin: .5rem 0 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(255, 255, 255, .78); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

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

.eyebrow { display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.eyebrow-ink { color: var(--accent); }

/* ---------- Value strip ---------- */
.value-strip { background: var(--dark-2); color: #fff; padding: 26px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.value { display: flex; flex-direction: column; }
.value strong { font-family: var(--font-head); font-size: 1.4rem; background: var(--shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value span { color: rgba(255, 255, 255, .62); font-size: .92rem; }

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: .6rem 0 .8rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9cbf0; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; color: #fff; background: var(--accent-grad);
  box-shadow: 0 6px 16px rgba(99, 102, 241, .30), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.card-icon svg { width: 24px; height: 24px; }

.card-cta { background: var(--dark); color: #fff; border: none; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.card-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(120% 100% at 85% 15%, rgba(99, 102, 241, .55), transparent 60%);
}
.card-cta > * { position: relative; z-index: 1; }
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(255, 255, 255, .78); }
.card-cta:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(99, 102, 241, .35); }
.card-cta-arrow { position: absolute; top: 22px; right: 22px; font-size: 1.4rem; color: #7dd3fc; transition: transform .2s ease; }
.card-cta:hover .card-cta-arrow { transform: translateX(4px); }

/* ---------- Process steps (styles retained, section optional) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--accent-grad);
  margin-bottom: 14px; box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Industries pills ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.pill {
  padding: .7rem 1.25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); font-size: .98rem;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.pill:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: .6rem 0 .9rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-2); font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; background: var(--accent-grad);
}

/* Mock browser illustration */
.why-card { position: relative; }
.why-card-glow { position: absolute; inset: 10% 5%; background: var(--accent-grad); filter: blur(60px); opacity: .38; border-radius: 50%; z-index: 0; }
.mock-window { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.mock-bar span:nth-child(1) { background: #6366f1; }
.mock-bar span:nth-child(2) { background: #3b82f6; }
.mock-bar span:nth-child(3) { background: #22d3ee; }
.mock-body { padding: 26px; display: grid; gap: 14px; }
.mock-line { height: 12px; border-radius: 6px; background: var(--line); }
.mock-line-lg { height: 26px; width: 70%; background: var(--accent-grad); opacity: .92; }
.mock-line-sm { width: 45%; }
.mock-btn { height: 34px; width: 130px; border-radius: 999px; background: var(--accent-grad); margin-top: 4px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.mock-tile { height: 64px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); }

/* ---------- Intake form ---------- */
.form-section { background: var(--bg-alt); }
.form-wrap { max-width: 760px; }
.intake-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-md);
}
.intake-form fieldset { border: none; padding: 0; margin: 0 0 30px; }
.intake-form legend { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: 18px; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; color: var(--ink); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.field textarea { resize: vertical; min-height: 84px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .96rem; color: var(--ink-2); cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-footer { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-status { font-weight: 600; font-size: .96rem; margin: 0; }
.form-status.success { color: #15803d; }
.form-status.error { color: #dc2626; }
.form-status.loading { color: var(--muted); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 60px 0 30px; }
.site-footer .brand { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a:hover, .footer-email:hover { color: #fff; }
.footer-contact p { margin-bottom: .5rem; }
.footer-email { font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: .88rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }

/* ---------- Work showcase ---------- */
.showcase-section { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.showcase-section .section-head h2 { color: #fff; }
.showcase-section .section-lead { color: rgba(255, 255, 255, .68); }
.showcase-section .eyebrow-ink { color: #a5b4fc; }
.showcase-glow {
  position: absolute; top: 6%; left: 50%; width: 72%; height: 360px; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .30), transparent 72%); filter: blur(30px); pointer-events: none;
}
.showcase { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }

.showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.showcase-tab {
  font-family: var(--font-sans); font-weight: 600; font-size: .92rem; color: rgba(255, 255, 255, .74);
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.showcase-tab:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.showcase-tab.is-active { color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: 0 8px 24px rgba(99, 102, 241, .40); }

.showcase-viewport { position: relative; }
.showcase-window { overflow: hidden; border-radius: var(--radius-lg); }
.showcase-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; padding: 4px; }

.browser {
  display: block; border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.browser:hover { transform: translateY(-3px); box-shadow: 0 36px 80px rgba(0, 0, 0, .6); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.browser-bar .dot:nth-child(1) { background: #6366f1; }
.browser-bar .dot:nth-child(2) { background: #3b82f6; }
.browser-bar .dot:nth-child(3) { background: #22d3ee; }
.browser-url { margin-left: 8px; font-size: .85rem; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-open { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.browser-screen { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.site-embed { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; }
.browser-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 11, .30); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.browser-overlay span { background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem; padding: .6rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-md); }
.browser:hover .browser-overlay { opacity: 1; }

.slide-caption { text-align: center; margin-top: 20px; }
.slide-caption h3 { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.slide-caption p { color: rgba(255, 255, 255, .68); max-width: 520px; margin: 0 auto; }

.showcase-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: none;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background .2s ease, transform .2s ease;
}
.showcase-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.showcase-prev { left: -10px; }
.showcase-next { right: -10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s ease; z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: flex; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section { padding: 68px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .intake-form { padding: 26px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Showcase: small screens ---------- */
@media (max-width: 640px) {
  .showcase-tabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
    margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px;
  }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tab { flex: none; }
  .browser-url { display: none; }
  .browser-open { margin-left: auto; }
  .showcase-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .showcase-prev { left: -2px; }
  .showcase-next { right: -2px; }
  .slide-caption { margin-top: 16px; }
  .slide-caption h3 { font-size: 1.06rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
