/* ============================================================
   ALPHA ARK — Design System
   Display: Space Grotesk (geometric, technical)
   Body:    Inter
   Accent:  #FF4433 (extracted from mark)
   ============================================================ */

:root{
  --bg:            #FAF9F6;
  --bg-soft:       #F1EFEA;
  --ink:           #12110F;
  --ink-soft:      #56534C;
  --ink-faint:     #928E85;
  --line:          #E3DFD6;

  --dark:          #100F0D;
  --dark-elev:     #171512;
  --dark-line:     #2C2A25;
  --paper:         #F7F5F0;
  --paper-soft:    #C8C4B9;

  --accent:        #FF4B32;
  --accent-ink:    #B7300F;
  --accent-soft:   #FFE4DB;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --maxw: 1180px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; }

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

/* ---------- Type scale ---------- */
.eyebrow{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 1px;
  background: var(--accent);
  display:inline-block;
}
.section-dark .eyebrow{ color: var(--accent); }
.section-dark .eyebrow::before{ background: var(--accent); }

h1{ font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2{ font-size: clamp(2rem, 3.4vw, 3rem); }
h3{ font-size: clamp(1.25rem, 1.6vw, 1.5rem); }

.lede{
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.section-dark .lede{ color: #B9B5AB; }

.max-prose{ max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover{ background: var(--accent-ink); }

.btn-outline{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover{ border-color: var(--accent); color: var(--accent-ink); }

.section-dark .btn-outline{ border-color: #4A4842; color: var(--paper); }
.section-dark .btn-outline:hover{ border-color: var(--accent); color: var(--accent); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  padding: 10px 4px;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-ghost:hover{ color: var(--accent-ink); border-color: var(--accent); }
.section-dark .btn-ghost{ color: var(--paper); border-color: #4A4842; }
.section-dark .btn-ghost:hover{ color: var(--accent); border-color: var(--accent); }

.btn-sm{ padding: 10px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
section{ position: relative; }
.section-pad{ padding: 108px 0; }
.section-pad-sm{ padding: 72px 0; }
.section-dark{ background: var(--dark); color: var(--paper); }
.section-soft{ background: var(--bg-soft); }

@media (max-width: 720px){
  .section-pad{ padding: 72px 0; }
  .section-pad-sm{ padding: 52px 0; }
}

/* ---------- Nav ---------- */
.nav{
  position: sticky; top:0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 30px; width:auto; }
.brand span{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size: 17px; letter-spacing: -0.01em;
}
.nav-links{ display:flex; align-items:center; gap: 34px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--accent);
}
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-toggle{ display:none; background:none; border:none; padding:8px; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; transition:.25s; }

@media (max-width: 900px){
  .nav-links{
    position: fixed; inset: 64px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 28px 28px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: .25s var(--ease);
    border-top: 1px solid var(--line);
    z-index: 200;
    overflow-y: auto;
  }
  .nav-links.open{ opacity:1; pointer-events:auto; transform: translateY(0); }
  .nav-links a{ width:100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn-primary{ display:none; }
  .nav-links .nav-cta-mobile{ display:block !important; margin-top: 18px; }
  .nav-toggle{ display:block; }
}
.nav-cta-mobile{ display:none; }

/* ---------- Hero ---------- */
.hero{
  background: var(--dark);
  color: var(--paper);
  padding: 76px 0 0;
  overflow: hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items:center;
  padding-bottom: 64px;
}
.hero h1{ color: #fff; margin-bottom: 22px; }
.hero-actions{ display:flex; gap:16px; margin-top: 34px; flex-wrap: wrap; }
.hero-visual{ position:relative; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; margin-bottom: 10px; }
}

/* Workflow diagram */
.flow-svg{ width:100%; height:auto; }
.flow-node-bg{ fill: var(--dark-elev); stroke: var(--dark-line); stroke-width:1; }
.flow-node-label{ fill:#DEDAD0; font-family:'Space Grotesk',sans-serif; font-size:12.5px; font-weight:500; }
.flow-node-sub{ fill:#7C786F; font-family:'Inter',sans-serif; font-size:10.5px; }
.flow-line{ stroke: var(--dark-line); stroke-width:1.4; fill:none; }
.flow-dot{ fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255,75,50,.9)); }
.flow-pulse{ offset-rotate: 0deg; animation: flowmove 3.2s linear infinite; }
.flow-node-icon{ stroke: var(--accent); stroke-width:1.6; fill:none; }

@keyframes flowmove{
  0%{ offset-distance: 0%; opacity:0; }
  6%{ opacity:1; }
  92%{ opacity:1; }
  100%{ offset-distance: 100%; opacity:0; }
}

/* ---------- Problem cards ---------- */
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); margin-top: 56px; }
.problem-card{ background: var(--bg); padding: 34px 28px; }
.problem-icon{ width:38px; height:38px; margin-bottom: 22px; color: var(--accent); }
.problem-card h3{ margin-bottom: 10px; }
.problem-card p{ color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 980px){ .grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-4{ grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: var(--line); border:1px solid var(--line); margin-top:56px; }
.service-card{ background: var(--bg); padding: 36px 30px; display:flex; flex-direction:column; min-height: 240px; transition: background .25s; }
.service-card:hover{ background: var(--bg-soft); }
.service-num{ font-family:'Space Grotesk',sans-serif; color: var(--accent); font-weight:600; font-size:14px; margin-bottom:20px; }
.service-card h3{ margin-bottom: 10px; }
.service-card p{ color: var(--ink-soft); font-size:14.5px; flex-grow:1; }
.service-card .btn-ghost{ margin-top:22px; align-self:flex-start; font-size:14px; }
@media (max-width: 980px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-row{ display:grid; grid-template-columns: repeat(5,1fr); gap: 24px; margin-top: 64px; position:relative; }
.process-row::before{
  content:''; position:absolute; top:19px; left: 10%; right:10%; height:1px; background: var(--dark-line);
}
.process-step{ position:relative; }
.process-num{
  width:40px; height:40px; border-radius:50%; background: var(--dark-elev); border:1px solid var(--dark-line);
  display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:600; color: var(--accent);
  margin-bottom: 22px; position: relative; z-index:1; font-size: 14px;
}
.process-step h3{ color:#fff; font-size: 1.05rem; margin-bottom: 8px; }
.process-step p{ color:#9C988F; font-size:14px; }
@media (max-width: 900px){
  .process-row{ grid-template-columns: 1fr; gap: 30px; }
  .process-row::before{ display:none; }
}

/* ---------- Industries ---------- */
.industry-list{ margin-top: 50px; border-top:1px solid var(--line); }
.industry-row{
  display:grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 30px 0; border-bottom:1px solid var(--line);
  align-items: baseline;
}
.industry-row h3{ font-size:1.3rem; }
.industry-row p{ color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 700px){ .industry-row{ grid-template-columns: 1fr; gap:10px; } }

/* ---------- Principles ---------- */
.principle-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top:56px; }
.principle-grid .num{ font-family:'Space Grotesk',sans-serif; color: var(--accent); font-size: 14px; margin-bottom:16px; font-weight:600;}
@media (max-width: 780px){ .principle-grid{ grid-template-columns: 1fr; gap: 34px; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--dark); color: var(--paper);
  padding: 96px 0; text-align:center;
}
.cta-band h2{ color:#fff; max-width: 18ch; margin: 0 auto 20px; }
.cta-band .lede{ margin: 0 auto 40px; }
.cta-band .hero-actions{ justify-content:center; }
.cta-meta{ margin-top: 26px; color:#8B877D; font-size:14px; }

/* ---------- AlphaGrow ---------- */
.alphagrow-section{
  background: linear-gradient(135deg, #17110E 0%, #100F0D 60%);
  color: var(--paper);
  padding: 108px 0;
  position: relative;
  overflow:hidden;
}
.alphagrow-wordmark{
  font-family:'Space Grotesk',sans-serif; font-weight:700;
  font-size: clamp(2.4rem,6vw,4rem);
  color: #fff; margin-bottom: 6px;
}
.alphagrow-sub{ color: var(--accent); font-weight:600; font-size:1.05rem; margin-bottom: 26px; font-family:'Space Grotesk',sans-serif;}
.alphagrow-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 30px; }
.tag{
  border:1px solid #3A362F; color:#C9C5BB; padding:7px 14px; border-radius: 999px; font-size:13px;
}

/* ---------- About / Founder ---------- */
.founder-wrap{ display:grid; grid-template-columns: 300px 1fr; gap: 56px; margin-top: 56px; align-items:start; }
.founder-photo{
  aspect-ratio: 4/5; background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-m);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.founder-photo .mark{ width:56%; opacity:.9; }
.founder-name{ font-size: 1.6rem; margin-bottom:2px; }
.founder-role{ color: var(--accent-ink); font-weight:600; font-size:14px; margin-bottom:24px; font-family:'Space Grotesk',sans-serif; }
.founder-wrap p + p{ margin-top: 16px; }
.founder-wrap p{ color: var(--ink-soft); }
@media (max-width: 800px){ .founder-wrap{ grid-template-columns: 1fr; } .founder-photo{ max-width: 240px; } }

/* ---------- Approach diagram (credibility) ---------- */
.approach-flow{
  display:flex; align-items:center; justify-content:space-between; margin-top: 60px; flex-wrap:wrap; gap: 18px 0;
}
.approach-node{ text-align:center; flex: 1 1 auto; min-width: 110px; }
.approach-node .dot{ width:12px; height:12px; border-radius:50%; background: var(--accent); margin: 0 auto 14px; }
.approach-node span{ font-family:'Space Grotesk',sans-serif; font-size:13.5px; font-weight:500; color: var(--ink-soft); }
.approach-arrow{ color: var(--ink-faint); flex: 0 0 auto; }
@media (max-width: 800px){ .approach-flow{ flex-direction:column; } .approach-arrow{ transform: rotate(90deg); } }

/* ---------- Forms ---------- */
.form-wrap{ max-width: 720px; margin: 56px auto 0; }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field{ margin-bottom: 22px; }
.field.full{ grid-column: 1/-1; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:8px; }
.field .req{ color: var(--accent); }
.field input, .field select, .field textarea{
  width:100%; padding: 13px 14px; border:1px solid var(--line); border-radius: var(--radius-s);
  font-family:inherit; font-size:15px; background: #fff; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--accent); }
.field textarea{ resize: vertical; min-height: 92px; }
.radio-group{ display:flex; gap:14px; }
.radio-option{
  flex:1; border:1px solid var(--line); border-radius: var(--radius-s); padding: 13px 14px;
  display:flex; align-items:center; gap:10px; cursor:pointer; font-size:14.5px; transition: border-color .2s, background .2s;
}
.radio-option:has(input:checked){ border-color: var(--accent); background: var(--accent-soft); }
.field-error{ color:#C0392B; font-size:12.5px; margin-top:6px; display:none; }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color:#C0392B; }
.field.invalid .field-error{ display:block; }
.form-note{ font-size:13px; color: var(--ink-faint); margin-top: 4px; }
.submit-row{ display:flex; align-items:center; gap:18px; margin-top: 12px; flex-wrap:wrap; }
.form-status{ font-size:14px; padding: 14px 16px; border-radius: var(--radius-s); display:none; margin-bottom:22px; }
.form-status.show{ display:block; }
.form-status.success{ background:#EAF6EC; color:#1E6B33; }
.form-status.error{ background:#FCEAE8; color:#B03A2E; }
.btn-primary[disabled]{ opacity:.6; cursor:progress; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 56px; }
.contact-block + .contact-block{ margin-top: 30px; }
.contact-block .label{ font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-faint); margin-bottom:8px; font-family:'Space Grotesk',sans-serif;}
.contact-block a, .contact-block p{ font-size: 1.05rem; }
.map-frame{ border:1px solid var(--line); border-radius: var(--radius-m); overflow:hidden; height: 100%; min-height: 320px; }
.map-frame iframe{ width:100%; height:100%; border:0; display:block; }
@media (max-width: 800px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- Footer ---------- */
.footer{ background: var(--dark); color:#B9B5AB; padding: 72px 0 30px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 30px; padding-bottom: 50px; border-bottom:1px solid var(--dark-line); }
.footer-brand .brand span{ color:#fff; }
.footer-brand p{ margin-top:16px; font-size:14px; max-width:32ch; color:#8B877D; }
.footer-col h4{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:18px; font-family:'Space Grotesk',sans-serif;}
.footer-col a, .footer-col p{ display:block; font-size:14px; margin-bottom:12px; color:#B9B5AB; transition:color .2s; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 26px; font-size:13px; color:#75716A; flex-wrap:wrap; gap:12px; }
.social-row{ display:flex; gap: 14px; }
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width:56px; height:56px; border-radius:50%; background: var(--accent);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.wa-float:hover{ transform: scale(1.07); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ background: var(--dark); color:#fff; padding: 150px 0 70px; }
.page-hero .eyebrow{ color: var(--accent); }
.page-hero h1{ color:#fff; }
.breadcrumb{ font-size:13px; color:#8B877D; margin-bottom:22px; }
.breadcrumb a:hover{ color: var(--accent); }

/* ---------- Utility ---------- */
.mt-0{ margin-top:0 !important; }
.flex-between{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* Service detail page */
.service-detail{ border-top:1px solid var(--line); padding: 64px 0; }
.service-detail:last-child{ border-bottom:1px solid var(--line); }
.service-detail-grid{ display:grid; grid-template-columns: 340px 1fr; gap: 56px; }
.service-detail-head .service-num{ font-size:15px; }
.use-case-list{ list-style:none; padding:0; margin: 22px 0 0; display:grid; grid-template-columns:1fr 1fr; gap: 10px 20px;}
.use-case-list li{ font-size:14.5px; color: var(--ink-soft); padding-left:18px; position:relative; }
.use-case-list li::before{ content:''; position:absolute; left:0; top:9px; width:6px; height:1.4px; background: var(--accent); }
@media (max-width: 800px){ .service-detail-grid{ grid-template-columns:1fr; } .use-case-list{ grid-template-columns:1fr; } }

/* Steps list (how-to) */
.step-list{ counter-reset: step; margin-top: 40px; }
.step-item{ display:flex; gap:22px; padding: 22px 0; border-bottom: 1px solid var(--dark-line); }
.step-item:last-child{ border-bottom:none; }
.step-item .step-count{
  counter-increment: step; font-family:'Space Grotesk',sans-serif; color: var(--accent); font-weight:600; flex:0 0 30px;
}
.step-item .step-count::before{ content: counter(step, decimal-leading-zero); }
.step-item h4{ color:#fff; font-size:1rem; margin-bottom:4px; }
.step-item p{ color:#9C988F; font-size: 14px; }

/* who/what lists */
.check-list{ list-style:none; padding:0; margin: 24px 0 0; }
.check-list li{ padding: 12px 0; border-bottom:1px solid var(--line); font-size:15px; display:flex; gap:12px; }
.check-list li::before{ content:'—'; color: var(--accent); flex:0 0 auto; }
.section-dark .check-list li{ border-color: var(--dark-line); }
