/* ADS Infoway — Web, Mobile & Enterprise Software Development
   Calm, disciplined, human design system.
   Geist typography, JetBrains Mono accents, balanced editorial composition. */

:root {
  --bg: #07090D;
  --surface: #0E1218;
  --surface-hover: #131822;
  --ink: #F1EFE5;
  --muted: #959AA5;
  --line: rgba(241, 239, 229, 0.09);
  --line-strong: rgba(241, 239, 229, 0.16);
  --blue: #0781F6;
  --blue-glow: rgba(7, 129, 246, 0.15);
  --grad: linear-gradient(92deg, #4FA8FF 0%, #0781F6 60%, #0661C8 100%);
  --err: #FF7A7A;
  --max: 1200px;
  --gut: 36px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(7, 129, 246, 0.35); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.acc { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 0; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.hdr.scrolled { background: rgba(7, 9, 13, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(7, 129, 246, 0.25)); }
.nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(241, 239, 229, 0.03); }
.nav a { font-size: 14px; color: var(--muted); padding: 7px 16px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: rgba(241, 239, 229, 0.06); }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.start { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font: 400 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: border-color 0.2s, background 0.2s; }
.start:hover { border-color: rgba(7, 129, 246, 0.7); background: rgba(7, 129, 246, 0.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2BD576; box-shadow: 0 0 8px #2BD576; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mobile-menu { margin: 12px var(--gut) 0; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 15, 21, 0.98); display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 16px; border-radius: 10px; font-size: 16px; }
.mobile-menu a:hover { background: rgba(241, 239, 229, 0.05); }
.mobile-menu a:last-child { margin-top: 4px; background: var(--ink); color: var(--bg); text-align: center; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: transform 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s; }
.btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn-main { background: var(--ink); color: #0A0C10; }
.btn-main:hover { transform: translateY(-1px); background: #FFFFFF; }
.btn-main:disabled { opacity: 0.6; transform: none; cursor: progress; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(241, 239, 229, 0.35); background: rgba(241, 239, 229, 0.04); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: 100%; }
.hero-title { font-weight: 500; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -0.03em; max-width: 820px; }
.hero-accent { display: inline-block; white-space: nowrap; }
.hero-desc { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.65; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Section System ---------- */
.s { padding: 100px 0; border-top: 1px solid var(--line); }
.s-head { margin-bottom: 48px; }
.s-eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 12px; }
h2 { font-weight: 500; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -0.03em; }
.s-intro { font-size: 16px; color: var(--muted); margin-top: 12px; max-width: 600px; line-height: 1.6; }

/* ---------- Capabilities (Consistent 2-Column Grid) ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(241, 239, 229, 0.015);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cap-card:hover {
  border-color: rgba(7, 129, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.cap-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); }
.cap-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cap-card .cap-tech { margin-top: 18px; font: 400 12px var(--mono); color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- About Section ---------- */
.about-split { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.about-narrative { padding-right: 12px; }
.about-narrative h2 { margin-bottom: 24px; }
.about-narrative h2 .acc { font-weight: 500; }
.about-narrative p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.about-narrative p:last-child { margin-bottom: 0; }
.about-narrative b { color: var(--ink); font-weight: 500; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-box {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(241, 239, 229, 0.02);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.stat-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-box:hover { border-color: var(--line-strong); }
.stat-box:hover::before { opacity: 1; }
.stat-box strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Process Section ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step-counter; }
.step-item {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(241, 239, 229, 0.015);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.step-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.step-n { font: 600 13px var(--mono); color: var(--blue); letter-spacing: 0.06em; margin-bottom: 16px; }
.step-item h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Contact Section ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #0a0e15 100%); }
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.c-direct { display: grid; gap: 24px; align-content: start; }
.c-direct h2 { margin-bottom: 4px; }
.c-direct > p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 380px; }
.c-meta { display: grid; gap: 20px; margin-top: 8px; }
.c-meta-item { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.c-meta-item .c-label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.c-meta-item a, .c-meta-item span { font-size: 17px; color: var(--ink); }
.c-meta-item a:hover { color: var(--blue); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: rgba(241, 239, 229, 0.03); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 129, 246, 0.1); }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23959AA5' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.field select option { background: #11141A; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.field-error { font-size: 12px; color: var(--err); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.form-status { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.form-status.err { color: var(--err); }
.form-done { grid-column: 1 / -1; padding: 12px 0; }
.form-done h3 { font-size: 22px; font-weight: 500; }
.form-done p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 40px 0; }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); }
.ftr .logo img { height: 34px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr nav a:hover { color: var(--ink); }

/* ---------- Scroll Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.65s, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .s { padding: 80px 0; }
  .about-split, .contact-split { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  .hero { padding: 120px 0 48px; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 16px; margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .cap-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
