/**
 * Atlas Integration + Security — Light Monochrome Design System
 * Structural rewrite matching designprompts.dev/monochrome reference
 */

/* ============================================
   Design Tokens
   ============================================ */
:root {
  --bg:            #FAFAFA;
  --bg-alt:        #F0F0F0;
  --bg-white:      #FFFFFF;
  --fg:            #0a0a0a;
  --fg-muted:      #666666;
  --fg-dim:        #999999;
  --border:        #E0E0E0;
  --border-strong: #0a0a0a;
  --invert-bg:     #0a0a0a;
  --invert-fg:     #F5F5F5;
  --invert-fg-muted: rgba(245, 245, 245, 0.55);
  --invert-border: #333333;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 100px;
  --space-4xl: 140px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; transition: all 100ms ease; }
svg[aria-hidden] { display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}
section:first-of-type { border-top: none; }

/* ============================================
   Section Labels — "SERVICES ————————"
   ============================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.section-label span {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

/* ============================================
   Section Titles & Subtitles
   ============================================ */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: var(--space-2xl);
}


/* ============================================
   Header / Navigation
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: all 150ms ease;
}
#header.header-scroll {
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  padding: 4px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  text-decoration: none;
}

/* "Get in Touch" CTA link */
.nav-list .contact-link {
  border: 1.5px solid var(--fg);
  padding: 8px 20px;
  transition: all 100ms ease;
}
.nav-list .contact-link:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
.nav-list .contact-link::after {
  display: none;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: all 200ms ease;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 200ms ease;
    z-index: 999;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  .nav-link {
    font-size: 1.125rem;
    letter-spacing: 0.08em;
  }
  .nav-list .contact-link {
    margin-top: 16px;
    padding: 12px 32px;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 100ms ease;
  border-radius: 0;
  text-decoration: none;
}
.btn:hover,
.btn-primary:hover {
  background: transparent;
  color: var(--fg);
}
.btn:active,
.btn-primary:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 100ms ease;
  border-radius: 0;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn-outline:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 180px 0 120px;
  border-top: none;
  background: var(--bg);
  margin-top: 72px; /* header height */
}

.hero-content {
  max-width: 52ch;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw + 1rem, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 12px;
}
.hero-title-thin {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.75em;
  color: var(--fg-muted);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .hero { padding: 220px 0 var(--space-4xl); }
}

/* Decorative rule after headline */
.hero-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--fg);
  margin-top: 32px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-xl);
  margin-top: var(--space-lg);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  .hero { padding: var(--space-4xl) 0 80px; }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn,
  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================
   Services — Flat rows with icon boxes
   ============================================ */
.services {
  background: var(--bg);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: border-color 0.25s ease, padding-left 0.25s ease;
}
.service-item:hover {
  border-left-color: var(--fg);
  padding-left: var(--space-md);
}
.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 56px;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border: 1px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-box svg {
  width: 18px;
  height: 18px;
  color: var(--fg);
}

.service-num {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.service-body {
  flex: 1;
}

.service-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-text {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 56ch;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.service-features span {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}
.service-features span svg {
  display: none; /* hide checkmarks, tags are self-evident */
}


@media (max-width: 768px) {
  .service-item { gap: 16px; padding: 28px 0; }
  .service-meta { width: 44px; }
  .service-icon-box { width: 40px; height: 40px; }
}

/* ============================================
   Industries
   ============================================ */
.industries {
  background: var(--bg-alt);
  padding: 120px 0;
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.industry-card {
  border: 1px solid var(--border);
  background: var(--bg-white);
  overflow: hidden;
  transition: border-color 100ms ease;
}
.industry-card:hover {
  border-color: var(--fg);
}

.industry-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(80%);
  transition: filter 300ms ease;
}
.industry-card:hover .industry-img {
  filter: grayscale(0%);
}

.industry-content {
  padding: 24px;
}

.industry-category {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  display: block;
  margin-bottom: var(--space-sm);
  transition: color 0.2s ease;
}
.industry-card:hover .industry-category {
  color: var(--fg-muted);
}

.industry-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.industry-text {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .industry-grid { grid-template-columns: 1fr; gap: 24px; }
  .industry-img { height: 180px; }
}

/* ============================================
   About
   ============================================ */
.about {
  background: var(--bg);
  padding: 120px 0;
}

.about-container {
  max-width: 62ch;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: var(--space-lg);
}

.about-text {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: var(--space-xl) 0;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--fg);
}
.feature svg {
  width: 12px;
  height: 12px;
  color: var(--fg-dim);
}


/* ============================================
   Partners
   ============================================ */
.partners {
  background: var(--bg-alt);
  padding: 120px 0;
}

.partners-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 48px;
}

.partner-tab {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  cursor: pointer;
  padding: 4px 0;
  border: none;
  background: none;
  transition: all 100ms ease;
}
.partner-tab:hover {
  color: var(--fg);
}
.partner-tab.active {
  color: var(--fg);
  text-decoration: none;
}

.partner-grid {
  display: block;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  min-height: 80px;
}
.partner-logo img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.6) brightness(0.5);
  opacity: 0.55;
  transition: all 200ms ease;
}
.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .partner-logos { grid-template-columns: repeat(3, 1fr); gap: 16px 24px; }
  .partner-logo { padding: 14px 10px; min-height: 64px; }
  .partner-logo img { max-height: 32px; max-width: 100px; }
}
@media (max-width: 480px) {
  .partner-logos { grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
}


/* ============================================
   Process — Numbered boxes
   ============================================ */
.process {
  background: var(--bg);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-num-box {
  width: 56px;
  height: 56px;
  border: 1px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}

.step-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.step-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 26ch;
}


@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .step-text { max-width: 320px; }
}

/* ============================================
   CTA — Inverted dark block
   ============================================ */
.cta {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-top: none;
  padding: var(--space-4xl) 0;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--invert-fg);
  margin-bottom: var(--space-lg);
}


.cta-text {
  font-size: 1rem;
  color: var(--invert-fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--invert-fg);
  border: 2px solid var(--invert-fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 100ms ease;
  border-radius: 0;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--invert-fg);
  color: var(--invert-bg);
}
.cta-btn:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

.cta-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--invert-fg);
  color: var(--invert-bg);
  border: 2px solid var(--invert-fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 100ms ease;
  border-radius: 0;
  text-decoration: none;
}
.cta-btn-alt:hover {
  background: transparent;
  color: var(--invert-fg);
}
.cta-btn-alt:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}


@media (max-width: 768px) {
  .cta { padding: var(--space-3xl) 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-btn, .cta-btn-alt { width: 100%; justify-content: center; }
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand {}
.footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 30ch;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: all 100ms ease;
}
.footer-social-icon svg {
  width: 14px;
  height: 14px;
}
.footer-social-icon:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.footer-social-icon:hover svg {
  transform: scale(1.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color 100ms ease;
}
.footer-col li a:hover { color: var(--fg); }

/* Footer bottom / copyright */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--fg-dim);
}
.footer-license {
  font-size: 0.75rem;
  color: var(--fg-dim);
}


@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: all 150ms ease;
  z-index: 100;
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-2px);
}

/* ============================================
   Page Headers (Contact, Support, Terms, Privacy)
   ============================================ */
.page-header {
  padding: 160px 0 80px;
  margin-top: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 480px;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
  padding: 80px 0 120px;
  border-top: none;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}
.contact-subheading {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--fg);
}
.contact-icon svg {
  width: 14px;
  height: 14px;
}
.contact-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.contact-text p,
.contact-text a {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.input-group {
  margin-bottom: 20px;
}
.input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 100ms ease;
  border-radius: 0;
}
.form-input:focus,
.form-textarea:focus {
  border-bottom-color: var(--fg);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--fg-dim);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 100ms ease;
  border-radius: 0;
  margin-top: 12px;
}
.form-submit:hover {
  background: transparent;
  color: var(--fg);
}
.form-submit:active {
  transform: translateY(1px);
  transition-duration: 50ms;
}

/* Form validation states */
.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-bottom-color: #c0392b;
}
.form-error {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}
.input-group.has-error .form-error {
  display: block;
}
.input-group.has-error .form-input,
.input-group.has-error .form-textarea {
  border-bottom-color: #c0392b;
}

/* Form submission feedback */
.form-status {
  margin-top: var(--space-md);
  padding: 14px 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  display: none;
}
.form-status.success {
  display: block;
  border-color: var(--fg);
  color: var(--fg);
}
.form-status.error {
  display: block;
  border-color: #c0392b;
  color: #c0392b;
}

@media (max-width: 768px) {
  .contact-container { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   Support Page
   ============================================ */
.support-section {
  padding: 80px 0;
  border-top: none;
}
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.support-card {
  border: 1px solid var(--border);
  padding: 32px;
  background: var(--bg-white);
}
.support-card:hover {
  border-color: var(--fg);
}
.support-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.support-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

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

/* ============================================
   Legal Pages (Terms, Privacy)
   ============================================ */
.legal-content {
  padding: 60px 0 120px;
  border-top: none;
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
}
.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   SMS Support Page
   ============================================ */
.sms-support-section {
  padding: 80px 0 120px;
  border-top: none;
}

.sms-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.sms-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}

.sms-subheading {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 40px;
}

.receive-section {
  margin-top: 8px;
}

.receive-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.receive-title svg {
  width: 14px;
  height: 14px;
  color: var(--fg-dim);
}

.receive-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.receive-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.receive-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--fg);
}
.receive-icon svg {
  width: 14px;
  height: 14px;
}

.receive-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.receive-content p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* SMS Action Card */
.sms-action-container {
  border: 1px solid var(--border);
  padding: 40px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sms-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.sms-badge svg {
  width: 14px;
  height: 14px;
}

.sms-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 24px;
}

.sms-keyword {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.sms-keyword strong {
  color: var(--fg);
  font-weight: 600;
}

.sms-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 28px;
}

.btn-sms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--fg);
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 100ms ease;
  border-radius: 0;
  text-decoration: none;
  margin-bottom: 32px;
}
.btn-sms:hover {
  background: transparent;
  color: var(--fg);
}

.compliance-box {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: left;
  width: 100%;
}

.compliance-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.compliance-title svg {
  width: 12px;
  height: 12px;
  color: var(--fg-dim);
}

.compliance-text {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.compliance-links {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 12px;
}
.compliance-links a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* How It Works (Support Page) */
.how-it-works {
  background: var(--bg-alt);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.process-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.process-number {
  width: 56px;
  height: 56px;
  border: 1px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}

.process-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 240px;
}

@media (max-width: 768px) {
  .sms-container { grid-template-columns: 1fr; gap: 48px; }
  .sms-action-container { padding: 32px 24px; }
  .sms-number { font-size: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-desc { max-width: 320px; }
}

/* ============================================
   Custom Animations — Editorial Monochrome
   ============================================ */

/* --- Hero entrance: staggered text reveal --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 64px; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content {
  animation: fadeIn 0.4s ease both;
}

.hero-title {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-title::after {
  width: 0;
  animation: lineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.hero-title-thin {
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-subtitle {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.hero-cta {
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

/* --- Section label line draw-in --- */
.section-label::after {
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-aos].aos-animate .section-label::after,
.section-label.aos-animate::after {
  transform: scaleX(1);
}

/* --- Service items: stagger slide-in from left --- */
.service-item {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item.aos-animate {
  opacity: 1;
  transform: translateX(0);
}
.service-item:nth-child(1) { transition-delay: 0s; }
.service-item:nth-child(2) { transition-delay: 0.08s; }
.service-item:nth-child(3) { transition-delay: 0.16s; }
.service-item:nth-child(4) { transition-delay: 0.24s; }
.service-item:nth-child(5) { transition-delay: 0.32s; }

/* --- Service icon box: border draw on hover --- */
.service-icon-box {
  position: relative;
  transition: background 0.2s ease;
}
.service-item:hover .service-icon-box {
  background: var(--fg);
}
.service-item:hover .service-icon-box svg {
  color: var(--bg);
  transition: color 0.2s ease;
}

/* --- Industry cards: hover reveal (no lift — cards are not clickable) --- */
.industry-card {
  transition: border-color 0.2s ease;
}

/* Industry image desaturate reveal on hover */
.industry-img {
  transition: filter 0.4s ease;
}
.industry-card:hover .industry-img {
  filter: grayscale(0%);
}

/* --- Partner logos: fade on filter --- */
.partner-logo {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Partner tab underline transition --- */
.partner-tab {
  position: relative;
}
.partner-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--fg);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.partner-tab.active::after {
  width: 100%;
}
.partner-tab.active {
  text-decoration: none;
}

/* --- Process steps: stagger + number box border draw --- */
@keyframes borderDraw {
  from { clip-path: inset(0 100% 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.step-num-box {
  transition: background 0.2s ease, color 0.2s ease;
}
.step-item:hover .step-num-box {
  background: var(--fg);
  color: var(--bg);
}

/* --- CTA: text reveal --- */
.cta-title {
  opacity: 0;
  transform: translateY(24px);
}
.cta-title.aos-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Button hover: slide fill --- */
.btn, .btn-primary, .btn-outline, .cta-btn, .cta-btn-alt, .btn-sms, .form-submit {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before, .btn-primary::before, .cta-btn::before, .btn-sms::before, .form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.btn:hover::before, .btn-primary:hover::before, .cta-btn:hover::before, .btn-sms:hover::before, .form-submit:hover::before {
  left: 0;
}

/* --- Contact form: input focus line animation --- */
.form-input, .form-textarea {
  background-image: linear-gradient(var(--fg), var(--fg));
  background-size: 0% 1px;
  background-position: bottom left;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-bottom-color 0.2s ease;
}
.form-input:focus, .form-textarea:focus {
  background-size: 100% 1px;
  border-bottom-color: transparent;
}

/* --- About features: stagger --- */
.about-features .feature {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.about-container.aos-animate .feature {
  opacity: 1;
  transform: translateX(0);
}
.about-container.aos-animate .feature:nth-child(1) { transition-delay: 0.05s; }
.about-container.aos-animate .feature:nth-child(2) { transition-delay: 0.12s; }
.about-container.aos-animate .feature:nth-child(3) { transition-delay: 0.19s; }
.about-container.aos-animate .feature:nth-child(4) { transition-delay: 0.26s; }

/* --- Smooth page load --- */
body {
  animation: fadeIn 0.3s ease;
}

/* ============================================
   AOS Overrides — refined timing
   ============================================ */
[data-aos] {
  transition-duration: 500ms !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}
[data-aos="fade-up"] {
  transform: translateY(24px);
}

/* ============================================
   Overdrive — Scroll-Driven Animations
   ============================================ */

/* Page scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1001;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  @keyframes scrollProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  .scroll-progress {
    animation: scrollProgress linear;
    animation-timeline: scroll();
  }

  /* Hero decorative line grows further on scroll */
  @keyframes heroLineExpand {
    0%   { width: 64px; opacity: 1; }
    100% { width: 120px; opacity: 0.4; }
  }
  .hero-title::after {
    animation: lineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
               heroLineExpand linear;
    animation-timeline: auto, scroll();
    animation-range: normal, 0vh 40vh;
  }
}

/* ============================================
   Overdrive — View Transitions (Partner Tabs)
   ============================================ */
::view-transition-old(partner-grid),
::view-transition-new(partner-grid) {
  animation-duration: 0.2s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(partner-grid) {
  animation-name: fadeOut;
}
::view-transition-new(partner-grid) {
  animation-name: fadeIn;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Give partner grid a view-transition name */
.partner-grid .partner-logos {
  view-transition-name: partner-grid;
}

/* ============================================
   Overdrive — Cursor-Reactive Hero
   ============================================ */
.hero-title,
.hero-title-thin {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  .hero-title, .hero-title-thin { will-change: auto; }
}

/* ============================================
   Focus Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  z-index: 1002;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

