/* ===========================================================
   Alveek — automation studio for small businesses
   Design system: tokens, type, components, motion, responsive
   =========================================================== */

:root {
  --brand: #f0402f;
  --brand-dark: #d5321f;
  --brand-soft: #fff1ef;
  --brand-tint: rgba(240, 64, 47, .08);
  --ink: #1a1d23;
  --body: #565b66;
  --muted: #6b7280;
  --line: #e8e9ed;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --dark: #16181d;
  --dark-soft: #21242c;

  --radius: 18px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow-sm: 0 4px 14px -8px rgba(20, 23, 30, .22);
  --shadow: 0 20px 44px -24px rgba(20, 23, 30, .30);
  --shadow-brand: 0 14px 30px -14px rgba(240, 64, 47, .55);

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --sp: clamp(64px, 9vw, 116px);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding: var(--sp) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #c5c8d0; }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; font-weight: 600; color: var(--brand); margin: 0 0 1.1em;
}
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 66px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; }
.section-head p { color: var(--body); margin: 0; }
.lead { font-size: 1.06rem; }

/* ---------- motion: scroll reveal ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--brand); color: #fff; font-weight: 500; font-size: .98rem;
  padding: .85em 1.6em; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(240, 64, 47, .6); }
.btn--lg { font-size: 1.06rem; padding: 1em 2em; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-weight: 500; color: var(--ink); font-size: .96rem; transition: color .15s ease; }
.nav__links a:hover { color: var(--brand); }
.nav__links .btn { display: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px; z-index: 0;
  background: radial-gradient(60% 55% at 50% 0%, rgba(240, 64, 47, .10), transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; margin: .1em auto .38em; max-width: 14ch; color: var(--ink);
}
.hero__title .accent { color: var(--brand); }
.hero__sub { max-width: 600px; margin: 0 auto 2em; font-size: 1.08rem; }
.hero__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- trusted marquee ---------- */
.trusted { margin-top: clamp(48px, 7vw, 78px); }
.trusted__label { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: var(--muted); margin: 0 0 1.8em; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(44px, 6vw, 82px); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 700; font-size: 1.2rem; color: #a2a8b2; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- why-it-works cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe1e6; }
.wcard__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 20px; }
.wcard__ico svg { width: 26px; height: 26px; }
.wcard__stat { font-size: 2.5rem; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: -0.02em; margin-bottom: .32em; }
.wcard h3 { font-size: 1.2rem; margin-bottom: .4em; }
.wcard p { font-size: .95rem; margin: 0; }

/* ---------- story (dark) ---------- */
.story .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.story h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.story h2 .accent { color: var(--brand); }
.story p { color: #b7bbc4; font-size: 1.04rem; }
.story__panel { background: var(--dark-soft); border: 1px solid #2c303a; border-radius: var(--radius); padding: 32px; }
.story__quote { font-size: 1.14rem; color: #eef0f3; font-weight: 500; line-height: 1.55; margin: 0 0 20px; }
.story__by { display: flex; align-items: center; gap: 12px; color: #9aa0ab; font-size: .92rem; }
.story__by .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }

/* ---------- capabilities grid (6) ---------- */
.grid2x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe1e6; }
.cap__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 18px; }
.cap__ico svg { width: 24px; height: 24px; }
.cap h3 { font-size: 1.08rem; margin-bottom: .35em; }
.cap p { font-size: .92rem; margin: 0; }

/* ---------- how it works (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 18px; box-shadow: var(--shadow-brand); }
.step h3 { font-size: 1.14rem; margin-bottom: .4em; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- featured case ---------- */
.casefeat {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 60px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow);
}
.casefeat__tag { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 20px; margin-bottom: 18px; }
.casefeat h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.casefeat p { font-size: .98rem; }
.casefeat__link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.casefeat__link:hover { gap: 10px; transition: gap .18s ease; }
/* before/after mini visual */
.ba { display: grid; gap: 14px; }
.ba__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.ba__box { border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; }
.ba__box--before { background: var(--bg-alt); border: 1px dashed #cfd2d8; }
.ba__box--after { background: var(--brand-soft); border: 1px solid #f6cfca; }
.ba__box .k { display: block; font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.ba__box--after .k { color: var(--brand); }
.ba__box .l { font-size: .78rem; color: var(--muted); }
.ba__arrow { color: var(--brand); font-size: 1.3rem; font-weight: 700; }
.ba__note { text-align: center; font-size: .86rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item.open { border-bottom-color: transparent; }
.faq__q {
  width: 100%; text-align: left; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px; padding: 20px 16px;
  font-size: 1.04rem; font-weight: 500; color: var(--ink); font-family: inherit;
  border: 0; border-left: 3px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.faq__item.open .faq__q { background: #fff; border-left-color: var(--brand); color: var(--brand); }
.section--alt .faq__item.open .faq__q { background: #fff; }
.faq__q .plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink); transform: translate(-50%, -50%); transition: opacity .2s ease, background .2s ease; }
.faq__q .plus::before { width: 15px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 15px; }
.faq__item.open .plus::before, .faq__item.open .plus::after { background: var(--brand); }
.faq__item.open .plus::after { opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq__a p { margin: 0; padding: 4px 4px 22px 47px; font-size: .96rem; }
.faq__item.open .faq__a p { margin: 6px 0 18px; padding: 18px 22px; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- closing CTA band ---------- */
.ctaband { background: var(--dark); border-radius: clamp(20px, 3vw, 30px); padding: clamp(40px, 6vw, 68px) clamp(28px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.ctaband::before { content: ""; position: absolute; inset: auto 0 -40% 0; height: 300px; background: radial-gradient(50% 60% at 50% 100%, rgba(240, 64, 47, .28), transparent 70%); }
.ctaband > * { position: relative; z-index: 1; }
.ctaband h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 18ch; margin-inline: auto; }
.ctaband p { color: #b7bbc4; max-width: 46ch; margin: 0 auto 1.8em; }

/* ---------- about page ---------- */
.about-hero .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 64px); align-items: center; }
.about-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
.about-hero h1 em { color: var(--brand); font-style: normal; }
.about-hero blockquote { margin: 0; color: var(--body); font-size: 1rem; border-left: 3px solid var(--brand); padding-left: 18px; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.highlights { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 64px); }
.highlights h2 { font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.highlight__stat { margin-bottom: 34px; }
.highlight__stat .big { color: var(--brand); font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 700; margin: 0 0 .1em; }
.highlight__stat strong { color: var(--ink); display: block; margin-bottom: .3em; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; box-shadow: var(--shadow-sm); }
.mv__card h3 { color: var(--brand); font-size: 1.5rem; font-weight: 600; }

/* ---------- contact ---------- */
.contact .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.contact h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.contact__mail { color: var(--brand); font-weight: 600; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg-alt); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 15px 16px; transition: border-color .15s ease, background .15s ease; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brand); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; padding: 1em; }
.form__status { font-size: .92rem; margin: 4px 0 0; min-height: 1.2em; }
.form__status.ok { color: #17914a; }
.form__status.err { color: var(--brand); }

/* ---------- case studies page ---------- */
.cs-hero { text-align: center; padding-top: clamp(48px, 7vw, 88px); }
.cs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.cs-list { display: grid; gap: 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #b7bbc4; padding: clamp(48px, 6vw, 68px) 0 30px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer__logo { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__tag { max-width: 340px; font-size: .92rem; margin-top: 16px; color: #8b909b; }
.footer__links { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__links a { color: #b7bbc4; font-size: .94rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #2c303a; margin-top: 34px; padding-top: 22px; font-size: .85rem; color: #7c818b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .site-header.open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--pad) 20px; box-shadow: var(--shadow-sm);
  }
  .site-header.open .nav__links a { padding: 11px 0; width: 100%; }
  .site-header.open .nav__links .btn { display: inline-flex; margin-top: 10px; width: 100%; justify-content: center; }
  .grid3, .grid2x3, .steps { grid-template-columns: 1fr; }
  .story .split, .casefeat, .about-hero .split, .highlights, .mv, .contact .split { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid2x3 { grid-template-columns: 1fr 1fr; }
}
