/* ============================================================
   Alex Web Design - styles
   Brand: charcoal #111827, blue #2563EB, grey #E5E7EB, white
   Fonts: Plus Jakarta Sans (headings), Inter (body)
   ============================================================ */

:root {
  color-scheme: light;
  --charcoal: #111827;
  --ink: #0B0F1A;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #EFF4FF;
  --grey-100: #F9FAFB;
  --grey-200: #E5E7EB;
  --grey-300: #D1D5DB;
  --grey-500: #6B7280;
  --grey-700: #374151;
  --white: #FFFFFF;

  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.08);
  --shadow-md: 0 10px 30px -12px rgba(17,24,39,.18);
  --shadow-lg: 0 30px 60px -24px rgba(17,24,39,.30);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
a, button, summary, .btn, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(37,99,235,.18); }

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--charcoal);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }

.accent { color: var(--blue); }

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

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; min-height: 48px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
}
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.6); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--charcoal); border-color: var(--grey-200); }
.btn-ghost:hover { color: var(--charcoal); border-color: var(--grey-300); background: var(--grey-100); transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: inline-block; padding: 8px 12px; color: var(--grey-700);
  font-weight: 500; font-size: .98rem; border-radius: 8px;
}
.nav-menu a:not(.btn):hover { color: var(--charcoal); background: var(--grey-100); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--grey-200);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--charcoal); margin: 0 auto; transition: transform .2s var(--ease), opacity .2s var(--ease); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { margin-bottom: 18px; }

/* typing headline */
.hero-h1 .type-line { display: block; min-height: 1.15em; color: var(--charcoal); }
.hero-h1 .type-fixed { display: block; }
.hero-h1 .caret {
  display: inline-block; width: 4px; height: .82em; margin-left: 6px;
  background: var(--blue); border-radius: 2px; vertical-align: -0.06em;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead { font-size: 1.15rem; color: var(--grey-700); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-trust { font-size: .95rem; color: var(--grey-500); }
.hero-trust { font-weight: 500; }

/* browser mock */
.hero-visual { perspective: 1400px; }
.browser {
  background: #fff; border: 1px solid var(--grey-200); border-radius: 16px; max-width: 100%;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .4s var(--ease);
}
.hero-visual:hover .browser { transform: rotateY(0) rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--grey-100); border-bottom: 1px solid var(--grey-200); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--grey-300); }
.browser-url { margin-left: 12px; font-size: .78rem; color: var(--grey-500); background: #fff; border: 1px solid var(--grey-200); padding: 4px 12px; border-radius: 999px; }
.browser-body { padding: 22px; background: linear-gradient(180deg,#fff, #fbfcfe); }
.mock-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mock-logo { width: 64px; height: 16px; border-radius: 5px; background: var(--charcoal); }
.mock-links { width: 130px; height: 10px; border-radius: 5px; background: var(--grey-200); }
.mock-hero { padding: 6px 0 18px; }
.mock-h { width: 80%; height: 22px; border-radius: 6px; background: var(--charcoal); margin-bottom: 12px; }
.mock-p { width: 95%; height: 10px; border-radius: 5px; background: var(--grey-200); margin-bottom: 8px; }
.mock-p.short { width: 70%; }
.mock-btn {
  display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 700;
  color: #fff; background: var(--blue); padding: 8px 16px; border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.mock-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.mock-card { height: 56px; border-radius: 10px; background: var(--grey-100); border: 1px solid var(--grey-200); }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); background: var(--grey-100); }
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; padding: 20px 22px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--grey-700); }
.trust-item .ic { color: var(--blue); width: 18px; height: 18px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--grey-100); }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-sub { color: var(--grey-700); font-size: 1.08rem; margin-top: 14px; }

/* ---------- cards ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card-lead { color: var(--grey-700); font-weight: 500; margin-bottom: 18px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--grey-700); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563EB' d='m9 16.2-3.5-3.5L4 14.2 9 19l11-11-1.5-1.5z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- work ---------- */
.work-card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-shot { display: block; border-bottom: 1px solid var(--grey-200); }
.work-shot img { width: 100%; height: auto; }
.work-meta { padding: 22px 24px 26px; }
.work-meta h3 { margin-bottom: 4px; }
.work-meta p { color: var(--grey-500); margin-bottom: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.link-arrow .ic { transition: transform .15s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--charcoal); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--grey-700); }

/* ---------- pricing ---------- */
.price-panel {
  display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.price-main { background: var(--charcoal); color: #fff; padding: 40px; text-align: center; }
.price-from { color: var(--grey-300); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.price-big { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 4rem; line-height: 1; margin: 8px 0; }
.price-note { color: var(--grey-300); }
.price-plus { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.price-detail { padding: 40px; }
.price-lead { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; }
.price-detail .ticks { margin-bottom: 22px; }
.founding { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .95rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--grey-700); margin: 0; }

/* ---------- contact ---------- */
.section-contact { background: var(--grey-100); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.contact-copy { min-width: 0; }
.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--grey-200);
  border-radius: 999px; padding: 13px 20px; color: var(--charcoal); font-weight: 600; min-height: 48px;
  box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.contact-pill:hover { color: var(--charcoal); border-color: var(--blue); transform: translateY(-1px); }
.contact-pill .ic { color: var(--blue); }

.contact-form-wrap { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--charcoal); }
.field .opt { color: var(--grey-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px; font: inherit; color: var(--charcoal);
  background: var(--grey-100); border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #DC2626; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.is-success { color: #047857; }
.form-status.is-error { color: #DC2626; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--grey-300); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark svg { display: block; border-radius: 12px; }
.footer-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-tag { color: var(--grey-500); font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--grey-300); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { color: var(--grey-500); font-size: .88rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .price-panel { grid-template-columns: 1fr 1.3fr; }
  .price-main { display: flex; flex-direction: column; justify-content: center; text-align: left; }
}

@media (min-width: 960px) {
  .hero { padding: 84px 0 64px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .section { padding: 92px 0; }
}

/* mobile nav */
@media (max-width: 859px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--grey-200);
    padding: 14px 22px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .browser { transform: none; }
}
