/* ═══════════════════════════════════════════════════════
   AutoNoma — style.css (v2)
   Handcrafted. Editorial. Premium.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #08080A;
  --bg-surface: #111113;
  --bg-elevated: #19191D;
  --border: #1C1C22;
  --border-hover: #2E2E38;
  --text: #E8E8EC;
  --text-mid: #A0A0AB;
  --text-muted: #6B6B76;
  --text-dim: #3E3E47;
  --accent: #8B5CF6;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-alt: #06B6D4;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1120px;
  --section-pad: clamp(100px, 14vh, 180px);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}


/* ── Grain ── */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px 512px;
}


/* ── Typography ── */
em,
.italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-title em {
  color: var(--text-mid);
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  outline: none;
  border: none;
}

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

.btn-primary:hover {
  background: #7C4FE0;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
}

.btn-full {
  width: 100%;
}


/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 60px);
  height: 64px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: #7C4FE0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--text);
}

.mobile-cta {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 12px 28px;
  border-radius: 8px;
}


/* ── Floating CTA ── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.1);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta:hover {
  background: #7C4FE0;
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
}

.hero-video-placeholder canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0.5) 55%, rgba(8, 8, 10, 0.85) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-headline-italic {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
}

.hero-tagline {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-down 2.2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}


/* ═══════════════════════════════════════
   TECH MARQUEE
   ═══════════════════════════════════════ */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}

.marquee-label {
  position: absolute;
  left: clamp(24px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
  background: var(--bg);
  padding-right: 24px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  padding: 0 8px;
  transition: color 0.2s;
}

.marquee-dot {
  color: var(--border);
  padding: 0 8px;
  font-size: 10px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}


/* ═══════════════════════════════════════
   STATEMENT
   ═══════════════════════════════════════ */
.statement {
  padding: var(--section-pad) 0;
  text-align: center;
}

.statement-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 48px;
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.statement-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

.statement-sub em {
  color: var(--text-mid);
}


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
  padding: var(--section-pad) 0;
}

/* Featured service block */
.service-featured {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
    var(--bg-surface);
}

.service-featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.service-featured-content {
  max-width: 600px;
}

.service-featured-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.service-featured-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.service-featured-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
}

.sf-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.sf-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Pipeline diagram */
.service-featured-visual {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.pipeline-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  min-width: 100px;
  transition: all 0.3s;
  flex-shrink: 0;
}

.pipeline-node--active {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
}

.pipeline-node:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pn-icon {
  font-size: 20px;
}

.pn-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
}

.pipeline-connector {
  width: 32px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}


/* Service rows (list) */
.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.01);
}

.service-row-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  flex-shrink: 0;
  padding-top: 3px;
}

.service-row-content {
  flex: 1;
}

.service-row-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.service-row-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

.service-row-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 5px;
}


/* ═══════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════ */
.process {
  padding: var(--section-pad) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.process-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.process-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.process-step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.process-step-time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ═══════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════ */
.results {
  padding: var(--section-pad) 0;
}

.results-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.results-left {
  padding-top: 12px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.result-item {
  padding: 36px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.result-item:first-child {
  border-radius: 12px 0 0 0;
}

.result-item:nth-child(2) {
  border-radius: 0 12px 0 0;
}

.result-item:nth-child(3) {
  border-radius: 0 0 0 12px;
}

.result-item:last-child {
  border-radius: 0 0 12px 0;
}

.result-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.result-suffix {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--text-mid);
}

.result-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}


/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact {
  padding: var(--section-pad) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.contact-headline em {
  color: var(--text-mid);
}

.contact-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-detail-value {
  font-size: 15px;
  color: var(--text-mid);
  transition: color 0.2s;
}

.contact-detail-value:hover {
  color: var(--text);
}


/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy,
.footer-domain {
  font-size: 12px;
  color: var(--text-dim);
}


/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-line::after {
    animation: none;
  }

  .hero-label-dot {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .results-inner {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-step-line {
    display: none;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-featured-stats {
    flex-wrap: wrap;
  }

  .pipeline-diagram {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .floating-cta span {
    display: none;
  }

  .floating-cta {
    padding: 14px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .service-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .service-row-num {
    display: none;
  }

  .service-row-tag {
    margin-top: -4px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-item {
    border-radius: 0 !important;
  }

  .result-item:first-child {
    border-radius: 12px 12px 0 0 !important;
  }

  .result-item:last-child {
    border-radius: 0 0 12px 12px !important;
  }
}