/* ─────────────────────────────────────────────
   Brand Provenance — style.css
   brandprovenance.com · Girling Design
   ───────────────────────────────────────────── */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:          #0c0c0e;
  --bg-2:        #111115;
  --bg-3:        #16161b;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.13);
  --text-primary:   #f0ede8;
  --text-secondary: #c2bdb6;   /* lifted for contrast */
  --text-muted:     #6e6860;
  --accent:      #c8b49a;      /* warm sand — text accents, italic highlights */
  --cta:         #F15A29;      /* orange — buttons only */
  --cta-hover:   #d94e22;
  --accent-glow: rgba(200,180,154,0.12);
  --radius:      2px;
  --radius-lg:   8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(12,12,14,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: block;
  height: 72px;
  width: auto;
}
.nav-cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-2);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: color 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -0.8s;
  pointer-events: none;
}
.nav-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  /* Background image — swap src for your final asset */
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Dark overlay — keeps text legible over the image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(12,12,14,0.72) 0%,
      rgba(12,12,14,0.60) 50%,
      rgba(12,12,14,0.90) 85%,
      rgba(12,12,14,1.00) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above the overlay */
.hero .container {
  position: relative;
  z-index: 1;
}

/* Ambient glow blob — moved to ::after, sits above overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241,90,41,0.06) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

/* Decorative horizontal rule */
.hero-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-rule::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--text-primary);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cta);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

/* ─── SECTION SHARED ─── */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--text-muted);
}

/* ─── PROBLEM ─── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.problem-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.problem-heading em {
  font-style: italic;
  color: var(--accent);
}
.problem-body { padding-top: 8px; }
.problem-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.problem-body p:last-child { margin-bottom: 0; }

.problem-points {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}
/* Glow sweep on top edge */
.problem-points::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.problem-point {
  padding: 32px 28px;
  background: var(--bg-2);
}
.problem-point-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.problem-point p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── WHAT IS IT ─── */
.what-section {
  position: relative;
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay for what-section */
.what-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(12,12,14,0.94)  0%,
      rgba(12,12,14,0.84) 40%,
      rgba(12,12,14,0.90) 80%,
      rgba(12,12,14,0.97) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Ensure what-section content sits above overlay */
.what-section .container {
  position: relative;
  z-index: 1;
}
.what-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}
.what-sidebar {
  position: sticky;
  top: 120px;
}
.what-sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
}
.what-sidebar-heading em { font-style: italic; color: var(--accent); }
.what-sidebar p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

.what-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}
/* Glow sweep on top edge */
.what-cards::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -1.6s;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.what-card {
  background: var(--bg-3);
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.what-card:last-child { border-bottom: none; }
.what-card:hover { background: var(--bg-2); }
.what-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,180,154,0.3);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.what-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 14px;
}
.what-card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── IN PRACTICE ─── */
.example-intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.example-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.example-heading em { font-style: italic; color: var(--accent); }
.example-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}
.example-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -2s;
  pointer-events: none;
  z-index: 2;
}
.example-col {
  padding: 36px;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.example-col--after { background: var(--bg-3); }
.example-col-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.example-col--after .example-col-label { color: var(--accent); }

.example-output {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
}
.example-output p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
.example-output--pass { border-color: rgba(200,180,154,0.25); }
.example-output--pass p { color: var(--text-primary); }

.example-issues {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.example-issues li {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.example-issues li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: rgba(220,100,80,0.7);
  font-weight: 500;
}
.example-issues--pass li { color: var(--text-secondary); }
.example-issues--pass li::before {
  content: '✓';
  color: var(--accent);
  opacity: 0.8;
}

.example-note {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 720px;
  border-left: 1px solid var(--border-2);
  padding-left: 24px;
}

/* ─── CONTROLS: TONE + VISUAL ─── */
.controls-intro {
  max-width: 640px;
  margin-bottom: 56px;
}
.controls-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.controls-heading em { font-style: italic; color: var(--accent); }
.controls-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

.coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}
.coordinate-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -1.2s;
  pointer-events: none;
  z-index: 2;
}
.coordinate-card {
  background: var(--bg-2);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.coordinate-card--b { background: var(--bg-3); }

.coordinate-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.coordinate-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.coord-channel {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.coord-sep {
  font-size: 0.72rem;
  color: var(--border-2);
}
.coord-mode {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.coord-mode--warm { color: var(--cta); opacity: 0.9; }

/* ─── DIAL SYSTEM ─── */
.dial-set {
  display: grid;
  grid-template-columns: max-content 1fr 36px;
  row-gap: 12px;
  column-gap: 12px;
  align-items: center;
}
/* Wide variant for longer parameter names (visual section) */
.dial-set--wide {
  grid-template-columns: minmax(110px, max-content) 1fr 36px;
}

.dial-name {
  font-family: 'Courier New', monospace;
  font-size: 0.67rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dial-track {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 1px;
}
/* Centre tick mark */
.dial-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.1);
  transform: translateX(-50%);
}
.dial-fill {
  position: absolute;
  height: 100%;
  background: var(--accent);
  opacity: 0.45;
  border-radius: 1px;
}
.dial-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.dial-value {
  font-family: 'Courier New', monospace;
  font-size: 0.67rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: right;
}

.coordinate-output {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.coordinate-output p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}
.how-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.how-heading em { font-style: italic; color: var(--accent); }

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -3.5s;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.how-step {
  background: var(--bg-2);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
}
.how-step-num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
  grid-row: 1 / 3;
}
.how-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  grid-column: 2;
}
.how-step p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  grid-column: 2;
}

.how-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ─── BUTTONS: SECONDARY + GHOST ─── */
.btn-secondary {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,180,154,0.4);
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: color 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-2);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-ghost:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ─── WHO IT'S FOR ─── */
.who-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-bottom: 60px;
}
.who-heading em { font-style: italic; color: var(--accent); }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}
/* Glow sweep on top edge */
.who-grid::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -3.2s;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.who-card {
  background: var(--bg-2);
  padding: 36px 32px;
  transition: background 0.25s;
}
.who-card:hover { background: var(--bg-3); }
.who-icon {
  font-size: 1.4rem;
  margin-bottom: 18px;
  opacity: 0.7;
}
.who-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.who-card p {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── SIGNUP SECTION ─── */
.signup-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  /* Background image — swap for your final asset */
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay — heavier than hero so the form stays fully legible */
.signup-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(12,12,14,0.92)  0%,
      rgba(12,12,14,0.80) 40%,
      rgba(12,12,14,0.88) 80%,
      rgba(12,12,14,0.96) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Ensure signup content sits above overlay */
.signup-section .container {
  position: relative;
  z-index: 1;
}
.signup-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.signup-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.signup-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.signup-heading em { font-style: italic; color: var(--accent); }
.signup-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
}

/* MailerLite embed zone */
.mailerlite-embed {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.mailerlite-embed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--cta) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -2.4s;
  pointer-events: none;
}
/* Drop your MailerLite embed code inside .mailerlite-embed */
.mailerlite-placeholder {
  text-align: center;
  padding: 20px 0;
}
.mailerlite-placeholder p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border: 1px dashed var(--border-2);
  padding: 28px;
  border-radius: var(--radius);
}
.signup-privacy {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── FOUNDER NOTE ─── */
.founder-section { padding: 80px 0; }
.founder-card {
  max-width: 700px;
  border-left: 1px solid var(--accent);
  padding-left: 40px;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.founder-sig {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ─── MID-PAGE CTA ─── */
.mid-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 1;
  /* Background image — swap for your final asset, same dimensions as hero */
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Dark overlay — fully opaque at top (merging with page), lighter toward bottom */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(12,12,14,1.00)  0%,
      rgba(12,12,14,0.88) 30%,
      rgba(12,12,14,0.72) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* Ensure footer content sits above the overlay */
footer .container {
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  opacity: 0.85;
  margin-bottom: 14px;
  margin-left: 0;
}
.footer-left-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  padding-left: 0;
  flex-shrink: 0;
}
.footer-brand-line {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.footer-right-block {
  text-align: right;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-standard {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-legal {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-secondary); }

/* ─── FOOTER SOCIAL LINKS ─── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.footer-social-link:hover { opacity: 1; }

/* ─── FOOTER DEVELOPER ENQUIRY ─── */
.footer-dev-enquiry {
  margin-top: 40px;
  padding-top: 28px;
  position: relative;
  max-width: 560px;
}
/* Animated glow rule replacing the static border-top */
.footer-dev-enquiry::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  animation-delay: -4s;
  pointer-events: none;
}
.footer-dev-enquiry-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-dev-enquiry p {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}
.footer-dev-enquiry a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-dev-enquiry a:hover { color: var(--accent); }

/* ─── GLOW SWEEP ANIMATION ─── */
/*
  A slow left-to-right highlight that travels along the top edge of elements.
  Applied via ::before pseudo on containers, or directly on border elements.
*/
@keyframes glow-sweep {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* Shared glow-line mixin — applied as top border highlight */
.glow-line {
  position: relative;
}
.glow-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    var(--accent) 50%,
    transparent 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glow-sweep 5s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* ─── SCROLL INDICATOR ─── */
@keyframes indicator-pulse {
  0%, 100% { opacity: 0.15; transform: translateX(-50%) scale(0.92); }
  50%       { opacity: 0.7;  transform: translateX(-50%) scale(1); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0c0e;
  animation: indicator-pulse 2.6s ease-in-out infinite;
  z-index: 10;
  transition: opacity 0.2s, transform 0.2s;
}
.scroll-indicator:hover {
  opacity: 1 !important;
  animation-play-state: paused;
  transform: translateX(-50%) scale(1.08);
}
.scroll-indicator svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Sections that contain a scroll indicator need relative positioning */
section {
  position: relative;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .problem-points { grid-template-columns: 1fr; }
  .what-inner { grid-template-columns: 1fr; gap: 48px; }
  .what-sidebar { position: static; }
  .example-grid { grid-template-columns: 1fr; }
  .coordinate-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .who-grid { grid-template-columns: 1fr; }
  .footer-right-block { text-align: left; align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .problem-points { grid-template-columns: 1fr; }
  .what-card { padding: 28px 24px; }
  .mailerlite-embed { padding: 28px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-right-block { text-align: left; }
  .nav-logo { height: 48px; }
}
