/* ============ Tokens ============ */
:root {
  --bg: #fffaf3;
  --bg-soft: #fff3e4;
  --bg-card: #ffffff;
  --ink: #221c3a;
  --border: #221c3a;
  --border-soft: rgba(34, 28, 58, 0.12);
  --text: #221c3a;
  --text-dim: #5c5674;
  --indigo: #5b5bd6;
  --coral: #ff6b5e;
  --sunny: #ffc94d;
  --mint: #17c3a2;
  --indigo-soft: #ecebfd;
  --coral-soft: #ffe9e6;
  --sunny-soft: #fff3d6;
  --mint-soft: #dcf7f0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow-pop: 5px 5px 0 var(--ink);
  --shadow-pop-sm: 3px 3px 0 var(--ink);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  max-width: 18ch;
}
h1 em {
  font-style: italic;
  color: var(--indigo);
  background: linear-gradient(transparent 66%, var(--sunny) 66%, var(--sunny) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  max-width: 26ch;
}
h3 { font-size: 1.2rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sunny);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-pop-sm);
  transform: rotate(-1.5deg);
}

.section-sub {
  color: var(--text-dim);
  max-width: 62ch;
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.brand-mark { color: var(--ink); }
.brand-dot { color: var(--indigo); }

.brand-icon {
  border-radius: 9px;
  margin-right: 2px;
  transition: transform 0.2s;
}
.brand:hover .brand-icon { transform: rotate(-6deg) scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--indigo); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-pop-sm);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
}

.btn-small {
  padding: 8px 18px;
  background: var(--indigo);
  color: #fff !important;
}

.btn-large { padding: 16px 36px; font-size: 1.05rem; margin-top: 28px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 90px 0 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 201, 77, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(91, 91, 214, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 45% 80%, rgba(255, 107, 94, 0.28) 0%, transparent 45%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 58ch;
  margin: 24px 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Mock analytics portal */
.browser {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--sunny-soft);
  border-bottom: 2px solid var(--ink);
}
.browser-bar .dot-r, .browser-bar .dot-y, .browser-bar .dot-g {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.dot-r { background: var(--coral); }
.dot-y { background: var(--sunny); }
.dot-g { background: var(--mint); }
.browser-url {
  margin-left: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #fff;
  border: 1.5px solid var(--border-soft);
  border-radius: 6px;
  padding: 3px 12px;
}

.browser-body { padding: 18px; }

.kpi-row { display: flex; gap: 12px; }
.kpi {
  flex: 1;
  background: var(--indigo-soft);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
}
.kpi:nth-child(2) { background: var(--mint-soft); }
.kpi:nth-child(3) { background: var(--coral-soft); }
.kpi-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 700; }
.kpi-value { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.kpi-warn { color: var(--coral); }

.mini-chart { margin-top: 16px; }
.chart-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}
.bar-row b { color: var(--ink); font-weight: 700; text-align: right; }
.bar {
  height: 10px;
  background: var(--bg-soft);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: 99px;
}
.bar-row:nth-of-type(2) .bar i { background: var(--indigo); }
.bar-row:nth-of-type(3) .bar i { background: var(--coral); }

.ai-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  background: var(--sunny-soft);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.ai-pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
  border: 1.5px solid var(--ink);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 94, 0); }
}

/* Systems ticker */
.ticker-wrap { margin-top: 72px; padding-bottom: 40px; }
.ticker-title {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px;
}
.ticker-track span:nth-child(4n+1) { background: var(--indigo-soft); }
.ticker-track span:nth-child(4n+2) { background: var(--coral-soft); }
.ticker-track span:nth-child(4n+3) { background: var(--sunny-soft); }
.ticker-track span:nth-child(4n+4) { background: var(--mint-soft); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Stats ============ */
.stats {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--indigo);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.stat { text-align: left; }
.stat-number, .stat-plus {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--sunny);
}
.stat-label {
  display: block;
  color: #e6e6ff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

/* ============ Problem / Solution ============ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.problem-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.problem-list li {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.15s;
}
.problem-list li:hover { transform: rotate(-0.6deg); }
.problem-list li:nth-child(1) { background: var(--coral-soft); }
.problem-list li:nth-child(2) { background: var(--sunny-soft); }
.problem-list li:nth-child(3) { background: var(--mint-soft); }
.problem-list li:nth-child(4) { background: var(--indigo-soft); }
.problem-list b { color: var(--ink); display: block; margin-bottom: 2px; }

/* ============ Platform pillars ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 52px;
}

.pillar {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-pop);
}
.pillar:first-child { background: var(--indigo-soft); }
.pillar:last-child { background: var(--mint-soft); }
.pillar-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--indigo);
  border: 1.5px solid var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pillar:last-child .pillar-num { background: var(--mint); }
.pillar h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.pillar p { color: var(--text-dim); }
.pillar ul { margin-top: 18px; list-style: none; }
.pillar li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.pillar li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 800;
}

/* AI chat demo */
.ai-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 30px;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-pop);
}
.ai-demo-copy h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.ai-demo-copy p { color: var(--text-dim); font-size: 0.98rem; }

.chat { display: grid; gap: 12px; }
.chat-msg {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 92%;
  border: 2px solid var(--ink);
}
.chat-user {
  background: var(--sunny-soft);
  justify-self: end;
  color: var(--ink);
  font-style: italic;
  border-bottom-right-radius: 4px;
}
.chat-ai {
  background: var(--indigo-soft);
  color: var(--ink);
  justify-self: start;
  border-bottom-left-radius: 4px;
}

/* Architecture flow */
.arch { margin-top: 30px; }
.arch-title { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 26px; }

.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.arch-node {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-pop-sm);
}
.arch-node-accent { background: var(--sunny); }
.arch-step {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: 8px;
}
.arch-node-accent .arch-step { color: var(--ink); }
.arch-node p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; }
.arch-node-accent p { color: var(--ink); }
.arch-arrow {
  align-self: center;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  flex: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 2px dashed var(--border-soft);
}
.tech-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: 12px;
}
.tech-col span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 7px;
}

/* ============ Service cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translate(-3px, -3px) rotate(-0.4deg); box-shadow: 7px 7px 0 var(--ink); }

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.card:nth-child(6n+1) .card-icon { background: var(--indigo-soft); }
.card:nth-child(6n+2) .card-icon { background: var(--coral-soft); }
.card:nth-child(6n+3) .card-icon { background: var(--sunny-soft); }
.card:nth-child(6n+4) .card-icon { background: var(--mint-soft); }
.card:nth-child(6n+5) .card-icon { background: var(--coral-soft); }
.card:nth-child(6n+6) .card-icon { background: var(--indigo-soft); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.card ul {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}
.card li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* ============ Sectors ============ */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 52px;
}

.sector {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-pop);
}
.sector h3 {
  font-family: var(--serif);
  margin-bottom: 12px;
  font-size: 1.45rem;
}
.sector:nth-child(1) h3 { color: var(--indigo); }
.sector:nth-child(2) h3 { color: var(--coral); }
.sector:nth-child(3) h3 { color: var(--mint); }
.sector:nth-child(4) h3 { color: #d99a00; }
.sector p { color: var(--text-dim); font-size: 0.98rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ============ Work ============ */
.work-list {
  margin-top: 52px;
  display: grid;
  gap: 26px;
}

.work-item {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow-pop-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-item:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }

.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--indigo);
  border: 1.5px solid var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.work-item:nth-child(2) .work-tag { background: var(--coral); }
.work-item:nth-child(3) .work-tag { background: var(--mint); }
.work-item:nth-child(4) .work-tag { background: #d99a00; }
.work-item:nth-child(5) .work-tag { background: var(--coral); }
.work-item:nth-child(6) .work-tag { background: var(--indigo); }

.work-item h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 12px; }
.work-item p { color: var(--text-dim); max-width: 78ch; }

/* ============ Security ============ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.security-item {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-pop-sm);
}
.security-item h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--indigo); }
.security-item:nth-child(2) h4 { color: var(--coral); }
.security-item:nth-child(3) h4 { color: var(--mint); }
.security-item:nth-child(4) h4 { color: #d99a00; }
.security-item:nth-child(5) h4 { color: var(--coral); }
.security-item:nth-child(6) h4 { color: var(--indigo); }
.security-item p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ Approach ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.step {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-pop-sm);
}
.step:nth-child(1) { background: var(--indigo-soft); }
.step:nth-child(2) { background: var(--coral-soft); }
.step:nth-child(3) { background: var(--sunny-soft); }
.step:nth-child(4) { background: var(--mint-soft); }

.step-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ Why us ============ */
.why { margin-top: 70px; }
.why-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 30px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why-item {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-pop-sm);
}
.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--sunny);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 14px;
}
.why-item:nth-child(2) .why-num { background: var(--coral); color: #fff; }
.why-item:nth-child(3) .why-num { background: var(--mint); color: #fff; }
.why-item h4 { margin-bottom: 8px; }
.why-item p { color: var(--text-dim); font-size: 0.92rem; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-email { margin-top: 24px; color: var(--text-dim); }
.contact-email a { color: var(--indigo); text-decoration: none; font-weight: 700; }
.contact-email a:hover { text-decoration: underline; }

.contact-form {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-pop);
}
.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--indigo); }
.contact-form button { justify-self: start; cursor: pointer; }

.form-success {
  background: var(--mint-soft);
  border: 2px solid var(--mint);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 0.92rem;
}

/* ============ Footer ============ */
.footer {
  border-top: 2px solid var(--ink);
  padding: 48px 0;
  background: var(--sunny-soft);
}
.footer-inner { text-align: center; }
.brand-footer { justify-content: center; }
.footer-logo {
  height: 84px;
  width: auto;
  border-radius: 14px;
  mix-blend-mode: multiply;
}
.footer p { color: var(--text-dim); font-size: 0.92rem; margin-top: 12px; }
.footer-copy { font-size: 0.8rem; opacity: 0.75; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .ai-pulse { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .problem-grid, .pillar-grid, .ai-demo, .contact-grid { grid-template-columns: 1fr; }
  .security-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 12px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    width: 100%;
    border-radius: 12px;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: var(--indigo-soft);
    color: var(--indigo);
  }

  /* In the dropdown, render the CTA like a regular menu item */
  .nav-links .btn-small {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--text-dim) !important;
    font-size: 0.95rem;
  }
  .nav-links .btn-small:hover,
  .nav-links .btn-small:active {
    background: var(--indigo-soft);
    color: var(--indigo) !important;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .card-grid, .sector-grid, .steps, .security-grid, .why-grid, .tech-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 0; }
  .hero-grid { gap: 40px; }
  .hero-sub { font-size: 1.05rem; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); align-self: center; }
  .bar-row { grid-template-columns: 84px 1fr 36px; }
  .browser { transform: none; box-shadow: 5px 5px 0 var(--ink); }
  .kpi-row { flex-wrap: wrap; }
  .kpi { min-width: 40%; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .ticker-wrap { margin-top: 48px; }
  .stats-grid { gap: 18px; padding-top: 34px; padding-bottom: 34px; }
  .stat-number, .stat-plus { font-size: 2.1rem; }
  .pillar, .ai-demo, .work-item { padding: 26px 22px; }
  .sector { padding: 26px 22px; }
  .contact-form { padding: 26px 20px; }
  .problem-grid { gap: 36px; }
  .ai-demo { gap: 28px; }
  .chat-msg { max-width: 100%; }
  .footer-logo { height: 64px; }
}
