/* ============================================
   Amatly Çozgüt — Landing Styles
   ============================================ */

:root {
  --bg: #0a0a0d;
  --bg-2: #0f0f14;
  --surface: #14141b;
  --surface-2: #1a1a23;
  --line: #23232e;
  --line-2: #2e2e3b;
  --text: #ededf2;
  --text-dim: #9a9aa8;
  --text-mute: #6e6e7c;
  --accent: #BB1F1F;
  --accent-hot: #e63333;
  --accent-glow: rgba(187, 31, 31, 0.45);

  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

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

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0.6;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(187, 31, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 31, 31, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  animation: gridDrift 25s linear infinite;
}

@keyframes gridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.bg-glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: glowFloat 18s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  opacity: 0.3;
  animation: glowFloat 22s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 100px) scale(1.15); }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 14px var(--accent-glow));
  transform: scale(1.03);
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 13px;
  padding: 10px 18px;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 20, 27, 0.6);
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

.nav-mobile {
  position: fixed;
  top: 78px;
  left: 16px;
  right: 16px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  z-index: 99;
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile a {
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  transition: background 0.25s var(--ease);
}

.nav-mobile a:not(.btn):hover {
  background: var(--surface);
}

.nav-mobile .btn {
  margin-top: 8px;
  justify-content: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
  user-select: none;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px -4px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px var(--accent-glow);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

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

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(20, 20, 27, 0.5);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-tagline .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 1000px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero-title .word.in {
  animation: wordIn 0.9s var(--ease-out) forwards;
}

@keyframes wordIn {
  to { transform: translateY(0); opacity: 1; }
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.55;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  max-width: 760px;
}

.stat {
  position: relative;
  padding-right: 12px;
}

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}

.hero-rings {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.ring-rotate {
  transform-origin: 300px 300px;
  animation: rotate linear infinite;
}

.ring-rotate.slow { animation-duration: 60s; }
.ring-rotate.medium { animation-duration: 30s; }
.ring-rotate.fast { animation-duration: 12s; }
.ring-rotate.reverse { animation-direction: reverse; }

@keyframes rotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.pulse-circle {
  animation: pulseRing 3s ease-in-out infinite;
  transform-origin: 300px 300px;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 0.4; }
}

.core-dot {
  filter: drop-shadow(0 0 12px var(--accent));
  animation: pulse 2s ease-in-out infinite;
  transform-origin: 300px 300px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.3em;
}

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

.scroll-bead {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 16px;
  background: var(--accent);
  animation: scrollBead 2s var(--ease) infinite;
}

@keyframes scrollBead {
  0% { top: -16px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 50px; opacity: 0; }
}

/* ============================================
   TICKER
   ============================================ */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--text);
  animation: tickerMove 30s linear infinite;
  width: max-content;
}

.ticker-track .sep {
  color: var(--accent);
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   COMMON SECTION
   ============================================ */

section {
  position: relative;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tag-num {
  color: var(--accent);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

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

.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 140px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(187, 31, 31, 0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-anim {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.svc-svg {
  width: 180px;
  height: 180px;
}

/* Cybersecurity animation */
.shield-body {
  transform-origin: 100px 100px;
  animation: shieldPulse 3s ease-in-out infinite;
}

.shield-check {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawCheck 2.5s var(--ease) infinite;
}

.shield-ring {
  transform-origin: 100px 100px;
  animation: rotate 25s linear infinite;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 18px var(--accent-glow)); }
}

@keyframes drawCheck {
  0% { stroke-dashoffset: 80; }
  40% { stroke-dashoffset: 0; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Video animation */
.lens-inner {
  transform-origin: 75px 100px;
  animation: lensZoom 2s ease-in-out infinite;
}

@keyframes lensZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.6); }
}

.lens-outer {
  transform-origin: 75px 100px;
  animation: lensRing 4s ease-in-out infinite;
}

@keyframes lensRing {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
}

.rec-dot {
  animation: recBlink 1.2s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.scan-field {
  transform-origin: 75px 100px;
  animation: scanSweep 4s ease-in-out infinite;
}

@keyframes scanSweep {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

/* Fire animation */
.flame-outer {
  transform-origin: 100px 130px;
  animation: flameFlicker 1.8s ease-in-out infinite;
}

.flame-inner {
  transform-origin: 100px 135px;
  animation: flameFlicker 1.2s ease-in-out infinite reverse;
}

@keyframes flameFlicker {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  25% { transform: scaleY(1.06) scaleX(0.96); }
  50% { transform: scaleY(0.97) scaleX(1.04); }
  75% { transform: scaleY(1.04) scaleX(0.98); }
}

.flame-spark {
  animation: sparkPulse 2s ease-in-out infinite;
  transform-origin: 100px 130px;
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

.sensor-ring {
  transform-origin: 100px 100px;
  animation: rotate 30s linear infinite;
}

/* Dev animation */
.code-lines line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: codeDraw 4s ease-in-out infinite;
}

.code-lines line:nth-child(1) { animation-delay: 0s; }
.code-lines line:nth-child(2) { animation-delay: 0.3s; }
.code-lines line:nth-child(3) { animation-delay: 0.6s; }
.code-lines line:nth-child(4) { animation-delay: 0.9s; }
.code-lines line:nth-child(5) { animation-delay: 1.2s; }

@keyframes codeDraw {
  0% { stroke-dashoffset: 100; }
  30%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

.cursor-blink {
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.phone-pop {
  animation: phonePop 3s ease-in-out infinite;
  transform-origin: 140px 135px;
}

@keyframes phonePop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ============================================
   APPROACH
   ============================================ */

.approach {
  padding: 120px 0;
}

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

.approach-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

.approach-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  background: var(--surface-2);
}

.approach-card:hover::before {
  width: 100%;
}

.approach-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(187, 31, 31, 0.1);
  border-radius: 14px;
  margin-bottom: 24px;
}

.approach-icon svg {
  width: 28px;
  height: 28px;
}

.approach-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.approach-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  padding: 120px 0;
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px 24px 32px 0;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.step-num::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px var(--accent);
}

.step-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.step-line {
  position: absolute;
  bottom: auto;
  top: 60px;
  left: 0;
  right: -12px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 30%, transparent);
  opacity: 0.3;
  pointer-events: none;
}

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

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

.cta-band {
  padding: 40px 0 100px;
}

.cta-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.5;
  animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(-30px, 20px); }
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-text p {
  color: var(--text-dim);
}

.cta-card .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 100px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field {
  position: relative;
  margin-bottom: 24px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 22px 0 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: vertical;
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px;
  padding-right: 28px;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

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

.field label {
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--text-mute);
  font-size: 16px;
  pointer-events: none;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), font-size 0.3s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:valid + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:valid + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-22px);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field input:placeholder-shown:not(:focus) + label,
.field textarea:placeholder-shown:not(:focus) + label {
  /* keep default */
}

.field-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line,
.field select:focus ~ .field-line {
  transform: scaleX(1);
}

/* Default placeholders trick: set placeholder=" " via JS or HTML */
.field input,
.field textarea {
  /* Use space placeholder via attribute selector workaround */
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form-submit.sending .submit-text::after {
  content: '...';
  animation: dots 1s infinite;
}

@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: var(--accent-hot);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0;
}

.info-block {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  transition: border-color 0.3s var(--ease);
}

.info-block:hover {
  border-color: var(--accent);
}

.info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.info-value {
  font-size: 18px;
  color: var(--text);
  display: inline-block;
  position: relative;
}

.link-anim {
  background: linear-gradient(currentColor, currentColor) no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}

.link-anim:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.info-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.social svg {
  width: 18px;
  height: 18px;
}

.social:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}

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

.footer {
  background: linear-gradient(180deg, transparent 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  padding: 80px 0 30px;
  margin-top: 40px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-mute);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.to-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.to-top:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(187, 31, 31, 0.1);
}

.to-top:hover svg {
  transform: translateY(-2px);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .hero-visual {
    width: 600px;
    height: 600px;
    right: -180px;
    opacity: 0.5;
  }
}

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

  .nav-burger {
    display: flex;
  }

  .hero {
    padding: 110px 24px 60px;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .services-grid,
  .approach-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .container {
    padding: 0 24px;
  }

  .services,
  .approach,
  .process {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo img {
    height: 32px;
  }

  .hero {
    padding: 100px 20px 50px;
  }

  .hero-tagline {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 52px);
    margin-bottom: 22px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    margin-bottom: 56px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    padding-top: 28px;
    gap: 24px 12px;
  }

  .scroll-hint {
    display: none;
  }

  .services-grid,
  .approach-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 28px;
    min-height: auto;
  }

  .service-anim {
    height: 160px;
  }

  .svc-svg {
    width: 140px;
    height: 140px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .cta-card {
    padding: 28px;
  }

  .cta-card .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .form-submit {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 60px 0 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-logo {
    height: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .container {
    padding: 0 20px;
  }

  .ticker-track {
    font-size: 12px;
    gap: 30px;
  }

  .section-title {
    font-size: clamp(28px, 8vw, 38px);
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-title .word {
    transform: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
