/* Control Z Tech — site styles */

:root {
  --bg-deep: #0a0e14;
  --bg-elevated: #111820;
  --bg-card: #151d28;
  --border: rgba(124, 196, 255, 0.12);
  --text: #e8eef5;
  --text-muted: #8b9aad;
  --accent: #5eb8ff;
  --accent-soft: rgba(94, 184, 255, 0.15);
  --accent-glow: rgba(94, 184, 255, 0.35);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 4rem;
  --max: 72rem;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  z-index: 999;
  border-radius: 4px;
}
.skip-link:focus {
  top: var(--space);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.logo-text {
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: var(--bg-deep) !important;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.1rem;
  margin: 0 auto;
  background: var(--text);
}

.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-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  padding: 1rem var(--space) 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--accent);
  margin: 0 0 1rem;
  max-width: 52rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(94, 184, 255, 0.35);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 1.0625rem;
}

/* Mission */

.mission {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.pillar-icon {
  display: block;
  color: var(--accent);
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Services */

.services {
  border-top: 1px solid var(--border);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.service-card li + li {
  margin-top: 0.4rem;
}

/* How we work */

.how {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 100%);
  border-top: 1px solid var(--border);
}

.how-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .how-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.how-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 42ch;
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-list li {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

/* Signature */

.signature {
  border-top: 1px solid var(--border);
}

.signature-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.signature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.signature-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 50ch;
}

.signature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .signature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.signature-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
}

.signature-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.signature-panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.signature-panel li + li {
  margin-top: 0.45rem;
}

.signature-outcome {
  border-color: rgba(94, 184, 255, 0.35);
  background: linear-gradient(145deg, var(--accent-soft) 0%, var(--bg-card) 45%);
}

/* One-liner quote */

.one-liner {
  margin: 0;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.one-liner p {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 52ch;
}

.one-liner strong {
  color: var(--text);
  font-weight: 600;
}

/* Clients */

.clients {
  border-bottom: 1px solid var(--border);
}

.client-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .client-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.client-tags li {
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */

.contact {
  padding-bottom: clamp(4rem, 10vw, 5.5rem);
}

.contact-inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-inner > p:first-of-type {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.contact-muted {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.95;
}

.contact-muted a {
  color: var(--accent);
}

.contact-email {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-phone {
  margin: -1.25rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-phone a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-phone a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  margin-top: 0.5rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form .btn {
  align-self: flex-start;
}

/* Footer */

.site-footer {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}
