/* ═══════════════════════════════════════════
   LAYOUT.CSS — App shell, grid, global reset
═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--color-bg-base);
  color: var(--color-text-base);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ── Global Tactical Background Grid (GeoICON Signature) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid-lines) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-lines) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Global fixed vignette glow (GeoICON signature) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(188, 82, 238, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-blue);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--duration-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── Container ── */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}

.content-section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* Alternate section background */
.alternate-bg {
  background: var(--color-bg-subtle);
  position: relative;
}
.alternate-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 131, 143, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 131, 143, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-base);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Images ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Lists ── */
ul, ol {
  list-style: none;
}

/* ── Code ── */
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(0, 131, 143, 0.12);
  color: var(--color-blue-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ── Hero Section Layout ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,131,143,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(188,82,238,0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}

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

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

.hero-kicker {
  display: flex;
}

.hero-headline {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-base);
}

.hero-subheadline {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-blue-light);
  line-height: 1.4;
}

.hero-body {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Metrics Strip */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(0, 131, 143, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  min-width: 70px;
}

.metric-value {
  font-size: var(--text-subheading);
  font-weight: 700;
  color: var(--color-blue-light);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  text-align: center;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Hero Right — Mockup */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mockup {
  width: 100%;
  max-width: 580px;
  background: var(--color-bg-raised);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg), var(--glow-brand);
  overflow: hidden;
  animation: float-mockup 6s ease-in-out infinite;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--color-border-subtle);
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }

.chrome-url {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-dim);
  margin-left: var(--space-2);
}

.mockup-screen {
  position: relative;
  overflow: hidden;
}
.mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
}
