/* ============================================
   FRACTIS — COMING SOON LANDING PAGE
   Design system: Neubrutalist + Terminal
   ============================================ */

/* ---------- RESET & BASE ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

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

:root {
  /* Palette */
  --bg: #F9F7F2;
  --bg-light: #F5F2EC;
  --surface: #FFFFFF;
  --border: #1A1A1B;
  --text: #1A1A1B;
  --text-muted: #5A5A5A;
  --accent: #E2725B;
  --accent-hover: #D05E48;
  --terminal-bg: #0D1520;
  --terminal-green: #32CD32;
  --terminal-dim: #1B7A3A;
  --dot-color: rgba(26, 26, 27, 0.12);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Futura', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Borders */
  --border-w: 3px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 5px 5px 0 var(--border);
  --shadow-lg: 8px 8px 0 var(--border);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- DOT PATTERN UTILITY ---------- */
.dot-pattern {
  background-image: radial-gradient(circle, var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ---------- CURSOR ---------- */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot { display: block; }
  body { cursor: none; }
  a, button, input { cursor: none; }
}

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-mono);
  color: var(--terminal-green);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(57, 255, 115, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-inner {
  height: 100%;
  width: 0;
  background: var(--terminal-green);
  border-radius: 2px;
  animation: load 1.2s ease-out forwards;
}

@keyframes load {
  to { width: 100%; }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(237, 232, 224, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-w) solid var(--border);
  transition: transform 0.4s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terminal-green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text);
  transition: all 0.3s ease;
}

.nav-pill:hover {
  background: var(--border);
  color: var(--bg);
  box-shadow: var(--shadow);
  transform: translate(-2px, -2px);
}

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

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border: var(--border-w) solid var(--border);
  opacity: 0.08;
}

.hero-shape--1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 10%;
  left: -5%;
  animation: float 20s ease-in-out infinite;
}

.hero-shape--2 {
  width: 180px;
  height: 180px;
  top: 20%;
  right: 5%;
  transform: rotate(45deg);
  animation: float 15s ease-in-out infinite reverse;
}

.hero-shape--3 {
  width: 0;
  height: 0;
  border: none;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 180px solid rgba(26, 26, 26, 0.04);
  bottom: 15%;
  left: 10%;
  animation: float 18s ease-in-out infinite;
}

.hero-shape--4 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: 20%;
  right: 10%;
  background: rgba(212, 112, 74, 0.06);
  animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(2deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(1deg); }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--terminal-bg);
  color: var(--terminal-green);
  border: var(--border-w) solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s ease 1.4s forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s ease 1.6s forwards;
}

.hero-title span {
  display: inline-block;
  position: relative;
}

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

.hero-title .accent-word::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
  opacity: 0.2;
  border-radius: 3px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s ease 1.8s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.9s ease 2s forwards;
}

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

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: var(--accent);
  color: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--border);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: transparent;
  color: var(--text);
  border: var(--border-w) solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--bg);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--border);
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: revealUp 0.8s ease 2.5s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

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

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: 100px 32px;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- PREVIEW SECTION ---------- */
.preview {
  background: var(--bg-light);
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.preview-visual {
  position: relative;
}

.preview-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.preview-card-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.preview-card-dot--red { background: #E84855; }
.preview-card-dot--yellow { background: #F2C94C; }
.preview-card-dot--green { background: var(--terminal-green); }

.preview-card-body {
  padding: 0;
}

.preview-card-body img {
  width: 100%;
  display: block;
}

.preview-floating-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--terminal-bg);
  color: var(--terminal-green);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: var(--border-w) solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

/* ---------- SCREENS CAROUSEL ---------- */
.screens-carousel {
  position: relative;
}

.screens-track {
  position: relative;
}

.screen-slide {
  display: none;
  animation: fadeSlide 0.5s ease;
}

.screen-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.screens-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.screen-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.screen-dot:hover {
  background: var(--text-muted);
}

/* ---------- FEATURES SECTION ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--terminal-bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  box-shadow: 3px 3px 0 var(--border);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--terminal-green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- TERMINAL SECTION ---------- */
.terminal-section {
  background: var(--terminal-bg);
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
  position: relative;
  overflow: hidden;
}

.terminal-section .section-label {
  color: rgba(57, 255, 115, 0.5);
}

.terminal-section .section-label::before {
  background: var(--terminal-green);
}

.terminal-section .section-title {
  color: #fff;
}

.terminal-section .section-desc {
  color: rgba(255, 255, 255, 0.5);
}

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.terminal-window {
  background: #0D1520;
  border: var(--border-w) solid rgba(57, 255, 115, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  padding: 14px 20px;
  border-bottom: 2px solid rgba(57, 255, 115, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(57, 255, 115, 0.15);
  border: 1px solid rgba(57, 255, 115, 0.3);
}

.terminal-body {
  padding: 28px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--terminal-green);
  min-height: 250px;
}

.terminal-line {
  opacity: 0;
  transform: translateX(-10px);
}

.terminal-line.typed {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease;
}

.terminal-line .dim {
  color: var(--terminal-dim);
}

.terminal-line .white {
  color: rgba(255, 255, 255, 0.85);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--terminal-green);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

.terminal-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 115, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 115, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---------- ROBOT SECTION ---------- */
.robot-section {
  position: relative;
  overflow: hidden;
}

.robot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.robot-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.robot-img-wrapper {
  width: 380px;
  height: 380px;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: robotFloat 4s ease-in-out infinite;
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.robot-img-wrapper img {
  width: 65%; /* dézoom */
  display: block;
  position: relative;
  transform-origin: center;
  filter: drop-shadow(0 10px 25px rgba(57, 255, 115, 0.1));
}

.robot-orbit {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 2px dashed rgba(26, 26, 26, 0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.robot-orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 12s linear infinite;
}

@keyframes orbit {
  to { 
    transform: translate(-50%, -50%) rotate(360deg);
    offset-distance: 100%;
  }
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 120px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.email-input {
  flex: 1;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: var(--border-w) solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.email-input:focus {
  box-shadow: var(--shadow-lg);
  transform: translate(-2px, -2px);
  border-color: var(--accent);
}

.email-notice {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 32px;
  border-top: var(--border-w) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

/* ---------- MARQUEE ---------- */
.marquee-strip {
  padding: 16px 0;
  background: var(--border);
  border-top: var(--border-w) solid var(--border);
  border-bottom: var(--border-w) solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 232, 224, 0.6);
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.marquee-item .sep {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .preview-grid,
  .terminal-grid,
  .robot-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .terminal-grid .section-text { order: 1; }
  .terminal-grid .terminal-window-wrapper { order: 2; }

  .robot-grid .section-text { order: 1; }
  .robot-grid .robot-visual { order: 2; }

  .section { padding: 80px 24px; }

  .navbar { padding: 14px 20px; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 20px 40px; }
  
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.4rem);
    margin-bottom: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .section { padding: 56px 20px; }
  
  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 12px;
  }
  
  .section-desc {
    font-size: 0.95rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature-card {
    padding: 16px;
    border-radius: var(--radius);
  }
  
  .feature-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  
  .feature-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .feature-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .feature-card p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .preview-floating-badge {
    top: -12px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    padding: 8px 14px;
    white-space: nowrap;
  }
  
  .preview-card-body img {
    max-height: 420px;
    object-fit: cover;
    object-position: top;
  }

  .terminal-body {
    min-height: 160px;
    padding: 20px 16px;
    font-size: 0.75rem;
  }

  .robot-img-wrapper {
    width: 260px;
    height: 260px;
  }

  .robot-img-wrapper img {
    width: 65%;
    height: auto;
  }

  .robot-orbit {
    width: 300px;
    height: 300px;
  }

  .cta-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .email-form {
    flex-direction: column;
  }

  .email-form .btn-primary {
    justify-content: center;
    padding: 16px;
  }
  
  .email-input {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

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

  .footer-right { 
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-pill {
    font-size: 0.65rem;
    padding: 6px 14px;
  }

  .cursor-dot { display: none !important; }
}

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

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
