/* ============================================
   TypeRocket Solutions — Landing Page Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #06d6a0;
  --accent-magenta: #a855f7;
  --accent-orange: #f97316;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --gradient-primary: linear-gradient(135deg, #06d6a0, #3b82f6, #a855f7);
  --gradient-hero: linear-gradient(135deg, #06d6a0 0%, #3b82f6 50%, #a855f7 100%);
  --gradient-card: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(168, 85, 247, 0.1));
  --border-color: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(6, 214, 160, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-height: 190px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

::selection {
  background: rgba(6, 214, 160, 0.3);
  color: #fff;
}

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

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

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.required { color: var(--accent-magenta); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 0.85em; }

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

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

/* --- Section Headers --- */
.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav__logo-img {
  height: 180px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.85;
}

.footer__logo-img {
  height: 180px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin-bottom: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  background: var(--gradient-primary) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
}

.nav__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}

.hero__container {
  max-width: 900px;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(6, 214, 160, 0); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title .gradient-text {
  display: inline-block;
  min-height: 1.2em;
}

.cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

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

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.3);
}

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

.btn--ghost:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.05);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn__loading { display: none; }
.btn.loading .btn__text { display: none; }
.btn.loading .btn__loading { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-linecap: round;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Hero Stats */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__icon {
  font-size: 2.5rem;
  display: block;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat__divider {
  width: 1px;
  height: 50px;
  background: var(--border-color);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 4px;
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 214, 160, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech__showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tech__orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  margin: 0 auto;
}

.tech__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: var(--bg-primary);
  z-index: 2;
  box-shadow: 0 0 40px rgba(6, 214, 160, 0.3);
}

.tech__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.15);
  border-radius: 50%;
  animation: orbitSpin 40s linear infinite;
}

.tech__ring--1 {
  width: 260px;
  height: 260px;
  margin-top: -130px;
  margin-left: -130px;
}

.tech__ring--2 {
  width: 400px;
  height: 400px;
  margin-top: -200px;
  margin-left: -200px;
  animation-duration: 60s;
  animation-direction: reverse;
}

@keyframes orbitSpin {
  100% { transform: rotate(360deg); }
}

.tech__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  /* Place items around the circle */
  transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(calc(50% + 80px)) rotate(calc(-360deg / var(--total) * var(--i)));
}

.tech__ring--1 .tech__item {
  transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(130px) rotate(calc(-360deg / var(--total) * var(--i)));
}

.tech__ring--2 .tech__item {
  transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(200px) rotate(calc(-360deg / var(--total) * var(--i)));
}

/* Counter-rotate items so text stays upright */
.tech__ring--1 .tech__item {
  animation: counterSpin 40s linear infinite;
}

.tech__ring--2 .tech__item {
  animation: counterSpin2 60s linear infinite;
}

@keyframes counterSpin {
  100% { transform: rotate(calc(360deg / var(--total) * var(--i) - 360deg)) translateX(130px) rotate(calc(-360deg / var(--total) * var(--i) + 360deg)); }
}

@keyframes counterSpin2 {
  100% { transform: rotate(calc(360deg / var(--total) * var(--i) + 360deg)) translateX(200px) rotate(calc(-360deg / var(--total) * var(--i) - 360deg)); }
}

.tech__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px;
}

.tech__categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech__cat h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.tech__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech__pills span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech__pills span:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.08);
}

/* ============================================
   PROCESS
   ============================================ */
.process__timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-magenta));
  opacity: 0.3;
}

.process__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.process__number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  color: var(--accent-cyan);
  position: relative;
  z-index: 1;
  transition: all var(--transition-normal);
}

.process__step:hover .process__number {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(6, 214, 160, 0.4);
}

.process__content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   WHY US
   ============================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-normal);
}

.why__card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.why__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why__card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   DEMO / SHOWCASE
   ============================================ */
.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.demo__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo__card--metrics {
  padding: 32px;
}

.demo__card--metrics h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

/* Terminal */
.terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27c93f; }

.terminal__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal__body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  flex: 1;
  overflow: hidden;
  min-height: 280px;
}

.terminal__line {
  opacity: 0;
  animation: terminalFadeIn 0.3s forwards;
}

.terminal__line.visible {
  opacity: 1;
}

.terminal__prompt {
  color: var(--accent-cyan);
  margin-right: 8px;
}

.terminal__line .success { color: var(--accent-green); }
.terminal__line .info { color: var(--accent-blue); }
.terminal__line .warning { color: var(--accent-orange); }
.terminal__line .muted { color: var(--text-muted); }

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

/* Metrics */
.metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.metric__fill {
  height: 100%;
  width: 0;
  background: var(--color);
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric__fill.animated {
  width: calc(var(--target-width) * 1%);
}

.metric__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-top: 6px;
}

.metric__info span:first-child { color: var(--text-secondary); }
.metric__value { font-weight: 600; font-family: var(--font-mono); }

/* ============================================
   QUOTE FORM
   ============================================ */
.quote {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 214, 160, 0.02) 100%);
}

.quote__form {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__group > label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

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

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1);
}

.form__group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
}

.form__group.error input,
.form__group.error select,
.form__group.error textarea {
  border-color: #ef4444;
}

.form__group.error .form__error {
  display: block;
}

/* Radio Buttons */
.form__radios {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  transition: all var(--transition-fast);
  min-width: 0;
}

.form__radio:hover {
  border-color: rgba(6, 214, 160, 0.3);
  background: rgba(6, 214, 160, 0.03);
}

.form__radio input {
  display: none;
}

.form__radio-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.form__radio input:checked ~ span:last-child {
  color: var(--text-primary);
}

.form__radio:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.06);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.1);
}

.form__radio input:checked + .form__radio-custom {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 214, 160, 0.3);
}

.form__radio input:checked + .form__radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(6, 214, 160, 0.5);
}

/* Submit */
.quote__form .btn--large {
  width: 100%;
  justify-content: center;
}

/* Success State */
.quote__success {
  display: none;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 60px 32px;
}

.quote__success.visible {
  display: block;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success__icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.quote__success h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.quote__success p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent-cyan);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer__contact svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__made {
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech__showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tech__orbit {
    max-width: 380px;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.3rem;
    padding: 12px 24px;
  }

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

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat__divider {
    width: 50px;
    height: 1px;
  }

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

  .quote__form {
    padding: 32px 20px;
  }

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

  .process__timeline::before {
    left: 32px;
  }

  .process__number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .process__step {
    gap: 20px;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .tech__orbit {
    max-width: 320px;
  }

  .tech__ring--2 {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
  }

  .tech__ring--2 .tech__item {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(160px) rotate(calc(-360deg / var(--total) * var(--i)));
  }

  @keyframes counterSpin2 {
    100% { transform: rotate(calc(360deg / var(--total) * var(--i) + 360deg)) translateX(160px) rotate(calc(-360deg / var(--total) * var(--i) - 360deg)); }
  }

  .form__radios {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .tech__orbit {
    max-width: 280px;
  }

  .tech__ring--1 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
  }

  .tech__ring--1 .tech__item {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(100px) rotate(calc(-360deg / var(--total) * var(--i)));
  }

  @keyframes counterSpin {
    100% { transform: rotate(calc(360deg / var(--total) * var(--i) - 360deg)) translateX(100px) rotate(calc(-360deg / var(--total) * var(--i) + 360deg)); }
  }

  .tech__ring--2 {
    width: 280px;
    height: 280px;
    margin-top: -140px;
    margin-left: -140px;
  }

  .tech__ring--2 .tech__item {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(140px) rotate(calc(-360deg / var(--total) * var(--i)));
  }

  @keyframes counterSpin2 {
    100% { transform: rotate(calc(360deg / var(--total) * var(--i) + 360deg)) translateX(140px) rotate(calc(-360deg / var(--total) * var(--i) - 360deg)); }
  }
}
