/* ══════════════════════════════════════════════════════════════════
   AndrawisTech — style.css
   Bold Agency: heavy type, sharp geometry, fire orange, dark-first.
   ══════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Light mode (default) */
  --bg:           #ffffff;
  --surface:      #f5f5f5;
  --surface-2:    #ebebeb;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(255, 59, 0, 0.35);
  --text:         #0a0a0f;
  --text-muted:   rgba(0, 0, 0, 0.50);
  --text-faint:   rgba(0, 0, 0, 0.30);
  --accent:       #ff3b00;
  --accent-glow:  rgba(255, 59, 0, 0.10);
  --accent-hover: #e03200;
  --accent-border: rgba(255, 59, 0, 0.20);

  /* Typography */
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:     0.75rem;
  --text-sm:     0.875rem;
  --text-base:   1rem;
  --text-lg:     1.125rem;
  --text-xl:     1.25rem;
  --text-2xl:    1.5rem;
  --text-3xl:    1.875rem;
  --text-4xl:    2.25rem;
  --text-5xl:    3rem;
  --text-6xl:    3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii — sharp by default, full only for pills */
  --radius-sm:   0px;
  --radius:      0px;
  --radius-lg:   0px;
  --radius-xl:   0px;
  --radius-full: 9999px;

  /* Shadows — minimal */
  --shadow-sm:     none;
  --shadow:        none;
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.08);
  --shadow-accent: none;
  --shadow-card:   none;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition:      250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1160px;
  --nav-height:    68px;
}

/* Dark mode overrides */
[data-theme="dark"] {
  --bg:           #0a0a0f;
  --surface:      #111118;
  --surface-2:    #18181f;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 59, 0, 0.4);
  --text:         #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.45);
  --text-faint:   rgba(255, 255, 255, 0.20);
  --accent:       #ff3b00;
  --accent-glow:  rgba(255, 59, 0, 0.15);
  --accent-hover: #ff5522;
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.5);
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

img, svg { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: var(--font);
}

/* ─── Utility ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.gradient-text {
  color: var(--accent);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-6);
  border-radius: 0;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--primary:active {
  opacity: 0.9;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─── Section Helpers ────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 48ch;
  font-weight: 400;
  line-height: 1.65;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: var(--bg);
  border-color: var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.7; }

.logo-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link--active {
  color: var(--accent) !important;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* In light mode (default): show moon to switch to dark */
.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  order: 1;
  margin-left: auto;
}

.hamburger-bar {
  display: block;
  height: 2px;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,59,0,0.12) 0%, transparent 68%);
  pointer-events: none;
}

[data-theme="dark"] .hero-glow {
  background: radial-gradient(circle, rgba(255,59,0,0.15) 0%, transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-24) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* ── Hero text column ── */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Keep .hero-badge for backwards compat — same style */
.hero-badge {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.badge-dot { display: none; }

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, var(--text-6xl));
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-2);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Hero visual column ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard panel */
.hero-panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  animation: panel-float 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-panel {
  border-color: rgba(255,255,255,0.1);
}

@keyframes panel-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.window-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* Intentional exception: macOS-style traffic light dots are always circular */
.wc {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.wc--red    { background: #ff5f57; }
.wc--yellow { background: #ffbd2e; }
.wc--green  { background: #28c940; }

.panel-header-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #22c55e;
}

/* Intentional: glow pulse on live status indicator */
.live-dot-ring {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.85); }
}

.panel-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Metrics row */
.scan-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.scan-metric {
  background: var(--surface);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.scan-metric-value {
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.scan-metric-value--warn { color: #f97316; }
.scan-metric-value--ok   { color: #22c55e; }

.scan-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Severity row */
.severity-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.sev {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 0;
}

.sev--critical {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}

.sev--high {
  background: rgba(249,115,22,0.1);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.2);
}

.sev--medium {
  background: rgba(234,179,8,0.1);
  color: #ca8a04;
  border: 1px solid rgba(234,179,8,0.2);
}

/* Scan progress */
.scan-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scan-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scan-progress-track {
  height: 3px;
  background: var(--surface-2);
  border: none;
  overflow: hidden;
}

.scan-progress-fill {
  height: 100%;
  width: 73%;
  background: var(--accent);
  animation: progress-grow 2s ease-out forwards;
}

@keyframes progress-grow {
  from { width: 0%; }
  to   { width: 73%; }
}

/* Scan log */
.scan-log {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

.log-entry {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-size: 11px;
}

.log-ts {
  color: var(--text-faint);
  flex-shrink: 0;
}

.log-msg {
  color: var(--text-muted);
}

.log-entry--active .log-msg {
  color: var(--accent);
}

.log-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   PRODUCTS / SERVICES
   ══════════════════════════════════════════════════════════════════ */
.services {
  padding: var(--space-32) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-left-color var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}

.service-card:hover {
  border-left-color: var(--accent);
}

.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-icon-diamond {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}

.card-title {
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
}

.card-tags li {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border: 1px solid var(--accent-border);
}

/* Featured product card (AttackMesh, DevTrials) */
.service-card--featured {
  grid-column: 1 / -1;
  border-top: 3px solid var(--accent);
  border-left: none;
}

.service-card--featured:hover {
  border-left-color: transparent;
}

.featured-card-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  height: 100%;
}

.featured-card-body {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.featured-card-body .card-icon-wrap {
  margin-top: 4px;
  flex-shrink: 0;
}

.featured-card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.featured-card-eyebrow {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.product-badge {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.product-badge--live {
  background: rgba(34,197,94,0.08);
  color: #16a34a;
  border-color: rgba(34,197,94,0.2);
}

[data-theme="dark"] .product-badge--live {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.2);
}

.featured-card-text .card-desc {
  max-width: 72ch;
}

.featured-card-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════════════ */
.about {
  padding: var(--space-32) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-20);
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-graphic {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphic-ring {
  position: absolute;
  border-radius: 0;
  border: 1px solid var(--border);
  animation: ring-pulse 3s ease-in-out infinite;
  transform: rotate(45deg);
}

.graphic-ring--1 { width: 100%; height: 100%; border-color: var(--border); animation-delay: 0s; }
.graphic-ring--2 { width: 72%; height: 72%; border-color: rgba(255,59,0,0.18); animation-delay: 0.5s; }
.graphic-ring--3 { width: 44%; height: 44%; border-color: rgba(255,59,0,0.35); animation-delay: 1s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 0.6; transform: rotate(45deg) scale(1); }
  50%       { opacity: 1;   transform: rotate(45deg) scale(1.04); }
}

.graphic-core {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: rotate(45deg);
}

.graphic-core svg {
  transform: rotate(-45deg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-content .section-title {
  margin-bottom: 0;
}

.about-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.pillar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pillar svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--space-32) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.contact-item:hover .contact-item-icon {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.contact-item-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.contact-item-value:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  border: 1px solid var(--border);
  background: var(--bg);
}

.coming-soon-icon {
  color: var(--accent);
  opacity: 0.8;
}

.coming-soon-title {
  font-size: var(--text-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.coming-soon-text {
  color: var(--text-muted);
  max-width: 320px;
  margin: 0;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.7rem var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 400;
  transition: border-color var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-input:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #16a34a;
  font-size: var(--text-sm);
  font-weight: 600;
  animation: fade-in-up 0.3s ease;
}

[data-theme="dark"] .form-success {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.2);
  color: #4ade80;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-logo {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   HOME — SERVICES TEASER
   ══════════════════════════════════════════════════════════════════ */
.home-services {
  padding: var(--space-32) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.home-service-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg);
  transition: border-left-color var(--transition);
  border-left: 3px solid transparent;
}

.home-service-item:hover {
  border-left-color: var(--accent);
}

.home-service-item .card-icon-wrap {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
}

.home-service-title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.home-service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════
   HOME — CTA SECTION
   ══════════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-32) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Always dark regardless of theme */
.cta-inner {
  background: #0a0a0f;
  padding: var(--space-16) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  border: 1px solid rgba(255,255,255,0.07);
}

.cta-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.cta-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
  max-width: 44ch;
  font-weight: 400;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* White button variant for dark CTA block */
.btn--white {
  background: #ffffff;
  color: #0a0a0f;
  font-weight: 800;
}

.btn--white:hover {
  background: #f0f0f0;
}

.btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-left: 0;
  padding-right: 0;
}

.btn--outline-white:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT — HOW WE WORK SECTION
   ══════════════════════════════════════════════════════════════════ */
.about-process {
  padding: var(--space-32) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
}

.process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  font-size: var(--text-xs);
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.process-title {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.process-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════════════════════════════ */
.team-page-hero {
  padding: var(--space-32) 0 var(--space-20);
  padding-top: calc(var(--nav-height) + var(--space-20));
  border-bottom: 1px solid var(--border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-16);
}

.team-card {
  background: var(--bg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-left-color var(--transition);
  border-left: 3px solid transparent;
}

.team-card:hover {
  border-left-color: var(--accent);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: var(--text-lg);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.team-role {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.team-links {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

.team-link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.team-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Individual profile page ── */
.profile-hero {
  padding: var(--space-32) 0 var(--space-20);
  padding-top: calc(var(--nav-height) + var(--space-20));
  border-bottom: 1px solid var(--border);
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.0;
  margin-bottom: var(--space-2);
}

.profile-role {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.profile-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.profile-link {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.profile-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.profile-content {
  padding: var(--space-20) 0;
}

.profile-bio {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 68ch;
}

.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.profile-skill {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
}

/* ══════════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════════ */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
}

.not-found-inner {
  text-align: center;
  max-width: 520px;
}

.not-found-code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.0;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.not-found-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.not-found-desc {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* ══════════════════════════════════════════════════════════════════
   PAGE HERO (shared by inner pages)
   ══════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: var(--space-32) 0 var(--space-20);
  padding-top: calc(var(--nav-height) + var(--space-20));
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.page-hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.page-hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-visual {
    order: -1;
  }

  .hero-panel {
    max-width: 380px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-visual { order: -1; }

  .about-graphic {
    width: 200px;
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid       { grid-template-columns: repeat(2, 1fr); }
  .cta-inner          {
    flex-direction: column;
    padding: var(--space-12) var(--space-8);
    text-align: center;
  }
  .cta-subtitle { max-width: none; }
}

@media (max-width: 640px) {
  :root { --nav-height: 60px; }

  .container { padding: 0 var(--space-5); }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    margin-left: 0;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  .theme-toggle { order: 2; }

  .hero-content { padding: var(--space-16) 0; }

  .hero-stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .featured-card-body { flex-direction: column; }
  .featured-card-actions .btn { flex: 1; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

  .section-title { font-size: var(--text-3xl); }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .services { padding: var(--space-20) 0; }
  .about    { padding: var(--space-20) 0; }
  .contact  { padding: var(--space-20) 0; }
  .home-services  { padding: var(--space-20) 0; }
  .cta-section    { padding: var(--space-20) 0; }
  .about-process  { padding: var(--space-20) 0; }
  .section-header { margin-bottom: var(--space-10); }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .stat-number { font-size: var(--text-xl); }
}

/* ─── Reveal animations ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
