/* ============================================================
   IAgorA — Smart automation consultancy
   Dark · minimal · high-tech · green signal accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* color */
  --bg:            #070a12;
  --bg-2:          #0b1120;
  --surface:       rgba(255, 255, 255, 0.025);
  --surface-2:     rgba(255, 255, 255, 0.05);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #eef2f8;
  --text-mid:      #aab4c5;
  --text-dim:      #6b7689;
  --accent:        #20cbe6;
  --accent-2:      #f5841f;
  --accent-soft:   rgba(32, 203, 230, 0.12);
  --accent-glow:   rgba(32, 203, 230, 0.28);

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(32, 203, 230, 0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 12%, rgba(245, 132, 31, 0.07), transparent 60%);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

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

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 20px 0 0;
}
.section-head p {
  color: var(--text-mid);
  font-size: clamp(17px, 1.6vw, 20px);
  margin-top: 20px;
  max-width: 600px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent);
  color: #04140d;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.08); }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
header.scrolled { border-color: var(--border); background: rgba(7, 10, 18, 0.9); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-mid);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 3px 10px rgba(32,203,230,0.4)); }
.foot-mark { width: 44px; height: 44px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-word .ia { color: var(--accent); }
.logo-word .a2 { color: var(--accent-2); }

/* lang toggle */
.lang {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  background: var(--surface);
}
.lang button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang button.active { color: #04140d; background: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(70px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.03em;
  margin: 26px 0 0;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), #7fe9f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: var(--text-mid);
  font-size: clamp(18px, 1.8vw, 21px);
  margin: 26px 0 0;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-meta .m-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-meta .m-lab { font-size: 14px; color: var(--text-dim); margin-top: 2px; }

/* hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.orbit {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit .halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(32,203,230,0.30), rgba(245,132,31,0.12) 55%, transparent 72%);
  filter: blur(8px);
  z-index: 0;
}
.hero-badge {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 86%;
  filter: drop-shadow(0 24px 60px rgba(32,203,230,0.45));
}
.bw-word { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -1px; }
.bw-tag { font-family: var(--font-display); font-weight: 500; font-size: 7px; letter-spacing: 1.1px; fill: #7fb9c9; }
.node {
  position: absolute;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 15px;
  background: rgba(11,17,32,0.92);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.node svg { width: 24px; height: 24px; }
.node.n1 { top: -5%; left: 50%; transform: translateX(-50%); color: var(--accent); }
.node.n2 { top: 24%; right: -6%; color: var(--accent-2); }
.node.n3 { bottom: 2%; right: 10%; color: var(--accent); }
.node.n4 { bottom: 2%; left: 10%; color: var(--accent-2); }
.node.n5 { top: 24%; left: -6%; color: var(--accent); }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floatyX { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -9px); } }
@keyframes haloPulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .orbit .halo { animation: haloPulse 5s ease-in-out infinite; }
  .node.n1 { animation: floatyX 5.5s ease-in-out infinite; }
  .node.n2 { animation: floaty 6s ease-in-out infinite 0.4s; }
  .node.n3 { animation: floaty 5.2s ease-in-out infinite 0.8s; }
  .node.n4 { animation: floaty 6.4s ease-in-out infinite 0.2s; }
  .node.n5 { animation: floaty 5.8s ease-in-out infinite 0.6s; }
}

/* ============================================================
   TRUST / CLIENTS STRIP
   ============================================================ */
.trust { border-block: 1px solid var(--border); padding: 30px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-display); }
.trust-logos { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.trust-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dim);
  opacity: 0.75;
  letter-spacing: 0.01em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 60px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 32px 36px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32,203,230,0.4);
  background: var(--surface-2);
}
.svc-ico {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 26px;
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 21px; margin-bottom: 11px; }
.svc-card p { color: var(--text-mid); font-size: 15.5px; line-height: 1.62; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-2); border-block: 1px solid var(--border); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.step { position: relative; padding-top: 30px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.step.is-on::before { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 20px; margin: 16px 0 10px; }
.step p { color: var(--text-mid); font-size: 15px; }

/* ============================================================
   WHY / DIFFERENTIATORS
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  margin-top: 56px;
}
.why-list { display: flex; flex-direction: column; gap: 8px; }
.why-item {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; }
.why-check {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 2px;
}
.why-check svg { width: 16px; height: 16px; }
.why-item h3 { font-size: 19px; margin-bottom: 6px; }
.why-item p { color: var(--text-mid); font-size: 15.5px; }
.why-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.why-visual image-slot { width: 100%; height: 100%; min-height: 440px; }

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 56px;
}
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.shot image-slot { width: 100%; height: 100%; }
.shot.tall { grid-row: span 2; }
.shot.wide { grid-column: span 2; }

/* ============================================================
   CTA / QUOTE
   ============================================================ */
.quote { position: relative; }
.quote-card {
  background:
    radial-gradient(700px 400px at 80% -20%, rgba(32,203,230,0.12), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.quote-card h2 { font-size: clamp(30px, 3.6vw, 46px); }
.quote-card .lede { color: var(--text-mid); font-size: 18px; margin-top: 18px; max-width: 420px; }
.quote-contacts { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.qc-item { display: flex; align-items: center; gap: 14px; color: var(--text-mid); font-size: 15.5px; }
.qc-item .qc-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); flex: none; }
.qc-item .qc-ico svg { width: 18px; height: 18px; }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; color: var(--text-dim); font-family: var(--font-display); letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color 0.18s ease, background 0.18s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(32,203,230,0.05);
}
.field textarea { resize: vertical; min-height: 96px; }
.form .btn-primary { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-dim); text-align: center; }
.form-ok {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(32,203,230,0.35);
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}
.form-ok.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--border); padding: 70px 0 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand p { color: var(--text-mid); font-size: 15px; margin-top: 18px; max-width: 280px; }
.foot-tagline { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; color: var(--accent-2); }
.foot-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--text-mid); font-size: 15px; padding: 6px 0; transition: color 0.18s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 14px;
}
.foot-social { display: flex; gap: 12px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-mid); transition: all 0.18s ease; }
.foot-social a:hover { color: var(--accent); border-color: rgba(32,203,230,0.4); }
.foot-social svg { width: 17px; height: 17px; }

/* reveal on scroll — hidden state only applies once JS opts in (.js-reveal) */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { width: min(360px, 80%); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .quote-card { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}
