/* ==========================================================================
   Click Element Media - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg-main: #050814;
  --color-bg-soft: #0B1020;
  --color-surface: #111827;
  --color-accent-primary: #22D3EE;
  --color-accent-secondary: #A855F7;
  --color-text-main: #F9FAFB;
  --color-text-muted: #9CA3AF;
  --color-border-subtle: #1F2933;
  --color-placeholder: #111827;
  --color-error: #EF4444;
  --color-success: #10B981;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

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

  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-glow-primary: 0 0 30px rgba(34, 211, 238, 0.15);
  --shadow-glow-secondary: 0 0 30px rgba(168, 85, 247, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

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

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

/* Background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(34, 211, 238, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-main) 0%, var(--color-bg-soft) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Subtle noise overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: -1;
}

body.nav-open {
  overflow: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-bg-main);
}

/* --------------------------------------------------------------------------
   Typography Utilities
   -------------------------------------------------------------------------- */
.heading-xl {
  font-size: var(--text-4xl);
  line-height: 1.1;
}

.heading-lg {
  font-size: var(--text-3xl);
  line-height: 1.15;
}

.heading-md {
  font-size: var(--text-2xl);
  line-height: 1.2;
}

.heading-sm {
  font-size: var(--text-xl);
  line-height: 1.3;
}

.heading-xs {
  font-size: var(--text-lg);
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .heading-xl {
    font-size: var(--text-6xl);
  }
  .heading-lg {
    font-size: var(--text-5xl);
  }
  .heading-md {
    font-size: var(--text-3xl);
  }
  .heading-sm {
    font-size: var(--text-2xl);
  }
}

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

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

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

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
}

.overline {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (min-width: 1024px) {
  .lead {
    font-size: var(--text-xl);
  }
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

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

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.section-heading {
  margin-bottom: var(--space-12);
}

@media (min-width: 1024px) {
  .section-heading {
    margin-bottom: var(--space-16);
  }
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

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

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-primary), #06B6D4);
  color: var(--color-bg-main);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-accent-secondary), #9333EA);
  color: var(--color-text-main);
  box-shadow: var(--shadow-glow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border-subtle);
}

.btn-outline:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
}

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

.btn-lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.link-arrow:hover {
  color: var(--color-accent-primary);
  gap: var(--space-3);
}

.link-arrow::after {
  content: '\2192';
  transition: transform var(--duration-fast) var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Pills & Tags
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 9999px;
  color: var(--color-text-muted);
}

.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2);
  background: rgba(34, 211, 238, 0.1);
  color: var(--color-accent-primary);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-bg-main);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: none;
  border-bottom: 1px solid var(--color-border-subtle);
  margin: 0 !important;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  margin-top: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

/* Desktop Navigation */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-text-main);
}

.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-main);
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-8) var(--space-6);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.nav-mobile-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-mobile-link:hover,
.nav-mobile-link.is-active {
  color: var(--color-text-main);
}

.nav-mobile-cta {
  margin-top: var(--space-8);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  background: var(--color-bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 300px;
  margin-top: var(--space-4);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-accent-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-16);
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hero-content {
  max-width: 600px;
}

.hero-supertitle {
  margin-bottom: var(--space-6);
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  margin-bottom: var(--space-8);
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent-secondary);
}

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

.hero-visual {
  position: relative;
}

.hero-visual-wrapper {
  position: relative;
  z-index: 1;
}

/* Show image on mobile, video on desktop */
.hero-video {
  display: none;
}

.hero-image {
  display: block;
}

@media (min-width: 1024px) {
  .hero-video {
    display: block;
  }

  .hero-image {
    display: none;
  }
}

/* Layered background effects */
.hero-visual-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius-xl);
  z-index: -1;
}

.hero-visual-wrapper::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(34, 211, 238, 0.05));
  border-radius: var(--radius-xl);
  z-index: -2;
  filter: blur(20px);
}

.hero-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-label {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.hero-label:nth-child(1) { top: 10%; left: -10%; }
.hero-label:nth-child(2) { top: 30%; right: -15%; }
.hero-label:nth-child(3) { bottom: 30%; left: -5%; }
.hero-label:nth-child(4) { bottom: 10%; right: -10%; }

@media (max-width: 1023px) {
  .hero-labels {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 211, 238, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

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

.card-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-accent-primary);
  border-radius: 50%;
}

/* Feature Card */
.card-feature {
  padding: var(--space-8);
}

.card-feature .card-icon {
  width: 56px;
  height: 56px;
}

/* Metric Card */
.card-metric {
  text-align: center;
  padding: var(--space-8);
}

.card-metric-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.card-metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.card-metric-tag {
  margin-top: var(--space-4);
}

/* Principle Card */
.card-principle {
  border-left: 3px solid var(--color-accent-primary);
}

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

/* Insight Card */
.card-insight {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-insight-label {
  margin-bottom: var(--space-3);
}

.card-insight-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card-insight-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   Image Placeholders
   -------------------------------------------------------------------------- */
.image-placeholder {
  position: relative;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.image-placeholder::before {
  content: attr(data-label);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-4);
}

.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.02), rgba(168, 85, 247, 0.02));
  pointer-events: none;
}

.image-placeholder:hover {
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

/* Aspect ratios */
.aspect-square {
  aspect-ratio: 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-hero {
  aspect-ratio: 4 / 5;
}

@media (min-width: 1024px) {
  .aspect-hero {
    aspect-ratio: 3 / 4;
  }
}

.aspect-wide {
  aspect-ratio: 21 / 9;
}

/* Content images and videos */
img.aspect-hero,
img.aspect-wide,
img.aspect-square,
video.aspect-hero,
video.aspect-wide,
video.aspect-square {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.error-visual img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* Card icons */
.card-icon {
  font-size: 48px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  transition: all var(--duration-normal) var(--ease-out);
}

.card-feature:hover .card-icon {
  color: var(--color-accent-secondary);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Two-Column Sections
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.two-col-offset {
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col-offset {
    grid-template-columns: 5fr 7fr;
  }
}

.accent-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent-primary), var(--color-accent-secondary));
  border-radius: 2px;
  align-self: stretch;
}

.belief-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.belief-item {
  font-size: var(--text-lg);
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-border-subtle);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.belief-item:hover {
  border-left-color: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   Methodology / Stepper
   -------------------------------------------------------------------------- */
.stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stepper {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.step {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    transform: translateY(-50%);
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
  color: var(--color-bg-main);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Legal Content (Privacy Policy, Terms)
   -------------------------------------------------------------------------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content .legal-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text-main);
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-main);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.legal-content ul {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.legal-content strong {
  color: var(--color-text-main);
  font-weight: 500;
}

.legal-content a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.legal-content a:hover {
  color: var(--color-accent-secondary);
}

/* --------------------------------------------------------------------------
   CTA Strip
   -------------------------------------------------------------------------- */
.cta-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-8) 0;
}

.cta-strip-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-strip-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Service Sections
   -------------------------------------------------------------------------- */
.service-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-header {
  margin-bottom: var(--space-8);
}

.service-title {
  margin-bottom: var(--space-4);
}

.service-intro {
  color: var(--color-text-muted);
  max-width: 600px;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .service-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.service-list-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-list li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text-muted);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

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

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-main);
}

.field-label .required {
  color: var(--color-accent-primary);
  margin-left: var(--space-1);
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-main);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
}

.field-input:hover,
.field-textarea:hover,
.field-select:hover {
  border-color: var(--color-text-muted);
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

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

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

/* Error states */
.field-input.is-error,
.field-textarea.is-error,
.field-select.is-error {
  border-color: var(--color-error);
}

.field-error {
  font-size: var(--text-sm);
  color: var(--color-error);
}

/* Success message */
.form-success {
  padding: var(--space-6);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

/* Sidebar expectations */
.expectations {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.expectations-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.expectations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.expectations-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
}

.expectations-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-page {
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + var(--space-16));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content {
  max-width: 500px;
}

.error-title {
  margin-bottom: var(--space-4);
}

.error-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.error-visual {
  max-width: 300px;
  margin: 0 auto var(--space-8);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-up.is-visible {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-left.is-visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-right.is-visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal-scale.is-visible {
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) var(--ease-out);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
  z-index: 1001;
  transition: width 50ms linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Page-specific Adjustments
   -------------------------------------------------------------------------- */
main {
  padding-top: var(--header-height);
}

.page-home main {
  padding-top: 0;
}

/* Intro sections for inner pages */
.page-intro {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

@media (min-width: 1024px) {
  .page-intro {
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
  }
}

.page-intro-content {
  max-width: 800px;
}

.page-intro-title {
  margin-bottom: var(--space-6);
}

.page-intro-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent-secondary);
}

/* --------------------------------------------------------------------------
   Utility Spacing
   -------------------------------------------------------------------------- */
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }

/* --------------------------------------------------------------------------
   Contact Direct Page
   -------------------------------------------------------------------------- */
.contact-direct-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .contact-direct-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-16);
  }
}

.direct-contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.direct-contact-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: var(--space-2);
}

.direct-contact-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.direct-email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.direct-email-link:hover {
  color: var(--color-text-main);
}

.direct-email-link svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .nav-mobile {
    display: none !important;
  }

  body::before,
  body::after {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  main {
    padding-top: 0 !important;
  }
}
