/* =========================================================
   AI Revenue Leak Agent — marketing site
   Clean, modern, responsive. No frameworks.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-dark: #0b1020;
  --bg-dark-2: #0f1530;
  --ink: #0b1020;
  --ink-2: #1a2240;
  --muted: #5a6478;
  --muted-2: #8a93a8;
  --line: #e6e8ef;
  --line-dark: rgba(255, 255, 255, 0.12);

  --brand: #4f46e5;          /* indigo */
  --brand-2: #06b6d4;        /* cyan */
  --brand-3: #22d3ee;
  --accent: #14e2a4;         /* mint */
  --danger: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 6px rgba(11, 16, 32, 0.06);
  --shadow: 0 12px 30px rgba(11, 16, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 16, 32, 0.16);

  --container: 1140px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  --t-fast: 160ms ease;
  --t-med: 280ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--brand); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-2); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(79, 70, 229, 0.22), transparent 60%),
    var(--bg-dark);
  color: #e8ecf6;
}
.section-dark h2,
.section-dark h3,
.section-dark p { color: inherit; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--brand-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-med), background var(--t-med), color var(--t-med);
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.45);
  color: #fff;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.section-dark .btn-ghost {
  color: #e8ecf6;
  border-color: var(--line-dark);
}
.section-dark .btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.brand-text strong { font-weight: 700; }
.brand-suffix {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}
/* Hide the literal "IKR" text label next to the badge on very small screens
   (the badge itself already reads IKR). */
@media (max-width: 380px) {
  .brand-text strong { display: none; }
  .brand-suffix { margin-left: 0; }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { padding: 10px 18px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 14px 24px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 10px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(79, 70, 229, 0.18), transparent 60%);
  z-index: -1;
}
.hero-inner { max-width: 880px; }
.hero-title { margin-bottom: 18px; }
.grad {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.hero-meta .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(20, 226, 164, 0.18);
}

/* ---------- Stats ---------- */
.stats {
  padding: 0 0 clamp(40px, 6vw, 60px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(180deg, #fff, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.stat {
  text-align: center;
  padding: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Cards (Services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.08);
}
.card h3 { margin-bottom: 8px; }
.card-lead { color: var(--muted); margin-bottom: 18px; }
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 3px),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-mask: none;
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 10px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.card-cta { margin-top: auto; }

.card-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
  box-shadow: 0 18px 50px rgba(79, 70, 229, 0.18);
}
.badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

/* ---------- What we build ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.work-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(79, 70, 229, 0.08);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.work-card h3 { margin-bottom: 6px; }
.work-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.02rem; }
.about-copy .btn { margin-top: 8px; }

.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-card-row { display: grid; gap: 14px; margin-bottom: 22px; }
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.kv:last-child { border-bottom: none; padding-bottom: 0; }
.kv span { color: var(--muted); font-size: 0.9rem; }
.kv strong { color: var(--ink); text-align: right; }

.about-card blockquote {
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  border-radius: var(--radius);
  font-family: var(--font-display);
}
.about-card blockquote p { color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.about-card blockquote cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { color: #fff; }
.contact-lead { color: rgba(232, 236, 246, 0.78); font-size: 1.05rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e8ecf6;
  font-size: 1rem;
}
.contact-list a { color: #e8ecf6; }
.contact-list a:hover { color: var(--brand-3); }
.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-3);
  border: 1px solid var(--line-dark);
}

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  backdrop-filter: blur(6px);
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(232, 236, 246, 0.8);
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(232, 236, 246, 0.4); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-3);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { color: var(--ink); background: #fff; }

/* Honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn.is-loading,
.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-note {
  margin: 6px 0 0;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(20, 226, 164, 0.12);
  color: #b6f3dc;
  border: 1px solid rgba(20, 226, 164, 0.28);
}
.form-note.is-success {
  background: rgba(20, 226, 164, 0.12);
  color: #b6f3dc;
  border-color: rgba(20, 226, 164, 0.28);
}
.form-note.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #ffd2d2;
  border-color: rgba(239, 68, 68, 0.32);
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand strong { display: block; font-family: var(--font-display); }
.footer-brand span { color: var(--muted); font-size: 0.9rem; }
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-copy { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.is-open { display: block; }

  .cards { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 18px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}
