/* ========================================
   CraftHub360 WWW — Warm Craft Theme
   ======================================== */

:root {
  /* Base palette — warm light */
  --color-bg: #FAF7F2;
  --color-bg-raised: #F2EDE5;
  --color-bg-card: #FFFFFF;
  --color-surface: #F0EBE3;
  --color-border: #E0D8CC;
  --color-border-light: #D4CCBF;

  /* Text */
  --color-text: #2C2418;
  --color-text-muted: #6B5E4F;
  --color-text-faint: #9B8E7E;

  /* Accent — earthy sage green */
  --color-accent: #4A7C6F;
  --color-accent-light: #5E9485;
  --color-accent-glow: rgba(74, 124, 111, 0.1);
  --color-accent-glow-strong: rgba(74, 124, 111, 0.2);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --content-width: 1200px;
  --content-narrow: 800px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.section__header {
  margin-bottom: 4rem;
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--color-accent-glow-strong);
}

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

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

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ========================================
   NAV
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
}

.nav__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
}

.nav__logo-mark {
  color: var(--color-accent);
  font-size: 1.4rem;
}

.nav__logo-accent {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav__cta:hover {
  background: var(--color-accent);
  color: #fff;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--color-bg);
  padding: 2rem;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav__mobile a:hover {
  color: var(--color-accent);
}

.nav__mobile .nav__cta {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 2rem;
  margin-top: 1rem;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-toggle {
  z-index: 100;
}

@media (max-width: 768px) {
  .nav__links, .nav > .nav__inner > .nav__cta {
    display: none;
  }
  .nav__mobile-toggle {
    display: flex;
  }
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px + 4rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite alternate;
}

@keyframes gridPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.5; }
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  background: var(--color-bg-raised);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero__metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero__metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__metric-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ========================================
   FEATURES
   ======================================== */

.features {
  padding: var(--section-padding) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 2rem;
  align-items: start;
}

.feature-card--wide .feature-card__icon {
  grid-row: span 2;
}

.feature-card--wide .feature-card__tags {
  grid-column: 2 / -1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-accent);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-card__tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--color-surface);
  color: var(--color-text-faint);
  border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--wide {
    grid-column: span 2;
    display: block;
  }
}

@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: span 1;
  }
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--color-bg-raised);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.step {
  position: relative;
  padding: 0 1.5rem;
}

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.step__connector {
  position: absolute;
  top: 28px;
  right: 0;
  width: calc(100% - 3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0.3;
  left: 3.5rem;
}

.step:last-child .step__connector {
  display: none;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.step__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 0;
  }
  .step__connector {
    display: none;
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ========================================
   CASE STUDIES
   ======================================== */

.case-studies {
  padding: var(--section-padding) 0;
}

.cases {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.case {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem;
  overflow: hidden;
  transition: border-color 0.4s;
}

.case:hover {
  border-color: var(--color-border-light);
}

.case__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.case--pbbc .case__accent {
  background: linear-gradient(90deg, #D4849A, #C9985A);
}

.case--tfyk .case__accent {
  background: linear-gradient(90deg, #1B365D, #D4943A);
}

.case--raw .case__accent {
  background: linear-gradient(90deg, #D4A843, #1A1A1A);
}

.case:nth-child(even) {
  direction: rtl;
}

.case:nth-child(even) > * {
  direction: ltr;
}

.case__meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.case__industry, .case__location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.case__location::before {
  content: '·';
  margin-right: 1rem;
}

.case__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.case--pbbc .case__name { color: #B5687E; }
.case--tfyk .case__name { color: #1B365D; }
.case--raw .case__name { color: #2C2418; }

.case__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-faint);
  margin-bottom: 1.2rem;
}

.case__description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.case__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.case__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.case__feature svg {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.7;
  width: 8px;
  height: 8px;
}

.case__palette {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.case__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid var(--color-border-light);
  transition: transform 0.2s;
}

.case__swatch:hover {
  transform: scale(1.2);
}

/* Case Visual / Browser Mockup */

.case__visual {
  display: flex;
  justify-content: center;
}

.case__mockup {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.case__browser {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.case__browser-dots {
  display: flex;
  gap: 5px;
}

.case__browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.case__browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  background: var(--color-bg);
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  flex: 1;
}

/* PBBC Screen */
.case__screen--pbbc {
  background: #FDF6F0;
  padding: 1.5rem;
  min-height: 240px;
}

.case__screen--pbbc .case__screen-hero {
  text-align: center;
  padding: 1.2rem 0;
}

.case__screen--pbbc .case__screen-badge {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.3rem;
}

.case__screen--pbbc .case__screen-h1 {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #5C3D2E;
  line-height: 1.3;
}

.case__screen--pbbc .case__screen-sub {
  display: block;
  font-size: 0.7rem;
  color: #D4849A;
  margin-top: 0.3rem;
}

.case__screen-cards {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case__screen-card {
  flex: 1;
  background: white;
  border: 1px solid #F2D5DD;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.6rem;
  color: #5C3D2E;
  text-align: center;
  font-family: var(--font-body);
}

/* TFYK Screen */
.case__screen--tfyk {
  background: #FAF6F0;
  padding: 1.5rem;
  min-height: 240px;
}

.case__screen--tfyk .case__screen-hero {
  text-align: center;
  padding: 1.2rem 0;
}

.case__screen--tfyk .case__screen-h1 {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1B365D;
  line-height: 1.2;
}

.case__screen--tfyk .case__screen-sub {
  display: block;
  font-size: 0.7rem;
  color: #B5544B;
  margin-top: 0.5rem;
}

.case__screen-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case__screen-stat {
  flex: 1;
  background: white;
  border: 1px solid #E8E0D8;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.6rem;
  color: #1B365D;
  text-align: center;
  font-family: var(--font-body);
}

.case__screen-stat strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

/* RAW Screen */
.case__screen--raw {
  background: #1A1A1A;
  padding: 1.5rem;
  min-height: 240px;
}

.case__screen--raw .case__screen-hero {
  text-align: center;
  padding: 0.8rem 0;
}

.case__screen--raw .case__screen-h1 {
  display: block;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  color: #E8E8E8;
  letter-spacing: 0.3em;
}

.case__screen--raw .case__screen-sub {
  display: block;
  font-size: 0.65rem;
  color: #FF3D00;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.2rem;
}

.case__screen-grid {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.case__screen-product {
  flex: 1;
  text-align: center;
}

.case__screen-img {
  width: 100%;
  aspect-ratio: 1;
  background: #2A2A2A;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  border: 1px solid #333;
}

.case__screen-product span {
  font-size: 0.55rem;
  color: #888;
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .case:nth-child(even) {
    direction: ltr;
  }
  .case__visual {
    order: -1;
  }
}

/* ========================================
   TRUST SECTION
   ======================================== */

.trust {
  padding: var(--section-padding) 0;
  background: var(--color-bg-raised);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust__item {
  text-align: center;
  padding: 1.5rem;
}

.trust__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
}

.trust__item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.trust__item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .trust__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CTA
   ======================================== */

.cta {
  padding: var(--section-padding) 0;
}

.cta__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  border-radius: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta__desc {
  position: relative;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta__actions {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__form {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.cta__form-row {
  display: flex;
  gap: 0.5rem;
}

.cta__input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

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

.cta__form-note {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-top: 0.6rem;
}

.cta__form-success {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 0.8rem;
}

.cta__form-error {
  font-size: 0.85rem;
  color: #B5544B;
  margin-top: 0.6rem;
}

@media (max-width: 500px) {
  .cta__form-row {
    flex-direction: column;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--color-text-faint);
  margin-top: 0.8rem;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* Accessibility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.external-icon {
  display: inline-block;
  vertical-align: -0.1em;
  opacity: 0.5;
  margin-left: 0.3em;
  overflow: visible;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
  }
  .footer__links {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.48s; }

/* ========================================
   NOISE OVERLAY
   ======================================== */

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