/* KHUDU.NET — tech-forward brand site */
:root {
  --bg-deep: #05080f;
  --bg: #0a0f1a;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.72);
  --border: rgba(0, 212, 255, 0.12);
  --border-strong: rgba(0, 212, 255, 0.28);
  --text: #e8edf5;
  --text-muted: #8b9cb3;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.15);
  --accent-glow: rgba(0, 212, 255, 0.35);
  --green: #22c55e;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1200px, calc(100% - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background effects */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.4) 2px,
    rgba(0, 0, 0, 0.4) 4px
  );
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1.1rem !important;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 48px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-accent {
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
}

.hero-lead {
  max-width: 540px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-terminal {
  margin-top: 3rem;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #374151;
}

.terminal-bar span:nth-child(1) { background: #ef4444; }
.terminal-bar span:nth-child(2) { background: #eab308; }
.terminal-bar span:nth-child(3) { background: #22c55e; }

.terminal-bar code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.t-prompt { color: var(--accent); }
.t-ok { color: var(--green); }
.t-dim { color: #4b5563; }
.t-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Sections */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 560px;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Partners */
.partners {
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.03), transparent);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  list-style: none;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.partner-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: rgba(17, 24, 39, 0.95);
}

.partner-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.3s, transform 0.3s;
}

.partner-card:hover .partner-logo {
  opacity: 1;
  transform: scale(1.05);
}

.partner-logo--aws {
  height: 32px;
  max-width: 72px;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin-inline: auto;
  }
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.service-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.service-tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

/* KhuduBot product — brand: navy #0a4d7c, cyan #3ed6d0 */
.product {
  --bot-navy: #0a4d7c;
  --bot-cyan: #3ed6d0;
  --bot-cyan-dim: rgba(62, 214, 208, 0.14);
  --bot-cyan-glow: rgba(62, 214, 208, 0.35);
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent, var(--bot-cyan-dim), transparent);
  border-block: 1px solid rgba(62, 214, 208, 0.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--bot-cyan);
}

.product .product-tag,
.product .feature-num {
  color: var(--bot-cyan);
}

.product .product-lead strong {
  color: var(--bot-cyan);
}

.product .btn-bot {
  background: var(--bot-cyan);
  border-color: var(--bot-cyan);
  color: var(--bot-navy);
  box-shadow: 0 0 32px var(--bot-cyan-glow);
}

.product .btn-bot:hover {
  box-shadow: 0 0 48px var(--bot-cyan-glow);
}

.product-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .product-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.product-tag {
  margin-bottom: 0.5rem;
}

.product-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.product-features li:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.product-features strong {
  display: block;
  margin-bottom: 0.25rem;
}

.product-features span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Chat mockup */
.chat-mock {
  border: 1px solid rgba(62, 214, 208, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--bot-cyan-dim);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 77, 124, 0.12);
}

.chat-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.chat-status {
  display: block;
  font-size: 0.75rem;
  color: var(--green);
  font-family: var(--font-mono);
}

.product .chat-status {
  color: var(--bot-navy);
  font-weight: 600;
}

.product .chat-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  background: var(--green);
  border-radius: 50%;
  vertical-align: middle;
}

.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.msg {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.msg-in {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.msg-out {
  align-self: flex-end;
  background: rgba(62, 214, 208, 0.12);
  border: 1px solid rgba(62, 214, 208, 0.35);
  color: var(--text);
}

.msg-out.typing {
  color: var(--text-muted);
}

.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.product .typing-dots span {
  background: var(--bot-cyan);
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-channels {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.channel {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.channel.active {
  color: var(--bot-cyan);
  border-color: rgba(62, 214, 208, 0.4);
  background: var(--bot-cyan-dim);
}

.product .channel.active {
  color: var(--bot-cyan);
}

/* KhuduBot integration diagram */
.integration-wrap {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.integration-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.integration-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.integration-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.integration-diagram {
  --node-w: clamp(6.25rem, 22vw, 7.25rem);
  --node-h: clamp(5.25rem, 18vw, 6rem);
  --hub-w: clamp(7rem, 26vw, 8.5rem);
  position: relative;
  display: grid;
  width: 100%;
  max-width: 32.5rem;
  aspect-ratio: 10 / 9;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas:
    ". top ."
    "left hub right"
    "bl . br";
  align-items: center;
  justify-items: center;
  gap: clamp(0.5rem, 2.5vw, 1rem) clamp(0.35rem, 2vw, 0.75rem);
}

.integration-lines {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.integration-line {
  stroke: rgba(62, 214, 208, 0.75);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.integration-hub {
  grid-area: hub;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: var(--hub-w);
  height: calc(var(--hub-w) * 0.78);
  padding: 0.65rem 0.5rem;
  box-sizing: border-box;
  text-align: center;
  background: #ffffff;
  border: 2px solid var(--bot-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px var(--bot-cyan-glow);
}

.integration-hub-logo {
  width: 88%;
  max-width: 5.5rem;
  height: auto;
  object-fit: contain;
}

.integration-nodes {
  display: contents;
  list-style: none;
}

.integration-node {
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: var(--node-w);
  height: var(--node-h);
  padding: 0.5rem 0.4rem;
  box-sizing: border-box;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.integration-node:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 18px var(--bot-cyan-dim);
}

.integration-wrap .integration-header .section-tag {
  color: var(--bot-cyan);
}

.product .integration-node-icon {
  color: var(--bot-cyan);
}

.integration-node-icon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
}

.integration-node strong {
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  line-height: 1.2;
}

.integration-node > span:last-child {
  color: var(--text-muted);
  font-size: clamp(0.62rem, 2vw, 0.68rem);
  line-height: 1.25;
}

.integration-node--top {
  grid-area: top;
}

.integration-node--left {
  grid-area: left;
  justify-self: end;
}

.integration-node--right {
  grid-area: right;
  justify-self: start;
}

.integration-node--bl {
  grid-area: bl;
  justify-self: end;
}

.integration-node--br {
  grid-area: br;
  justify-self: start;
}

/* Why */
.why {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.why-item {
  padding: 2rem;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.why-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.why-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.why-leadership {
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.why-leadership .why-num {
  display: block;
  margin-bottom: 0.75rem;
}

.why-leadership h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.why-leadership p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.why-leadership strong {
  color: var(--accent);
  font-weight: 600;
}

.why-vision {
  max-width: 640px;
  margin-inline: auto;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Contact */
.contact {
  padding: 6rem 0 8rem;
}

.contact-inner {
  max-width: 560px;
  margin-inline: auto;
}

.contact-inner .section-header {
  margin-bottom: 2.5rem;
}

.contact-form {
  padding: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-row label span {
  color: var(--accent);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row select {
  cursor: pointer;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row--checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-form .btn {
  width: 100%;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-success {
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid var(--green);
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.08);
}

.form-success strong {
  display: block;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-alt {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-alt a {
  color: var(--accent);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-content {
  max-width: 680px;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0.75rem 0 0.5rem;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--accent);
}

.legal-footer-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-back {
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-footer .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    background: rgba(5, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-stats .stat-divider {
    display: none;
  }

  .stat {
    flex: 1 1 40%;
  }
}
