/* MoodCloud — Premium Corporate Theme */

:root {
  --bg-deep: #030712;
  --bg-elevated: #0a0f1e;
  --bg-glass: rgba(15, 23, 42, 0.55);
  --border-glass: rgba(148, 163, 184, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --blue-electric: #3b82f6;
  --purple-neon: #8b5cf6;
  --cyan-bright: #06b6d4;
  --gradient-premium: linear-gradient(135deg, var(--blue-electric), var(--purple-neon), var(--cyan-bright));
  --gradient-subtle: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent 60%);
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --nav-height: 4.5rem;
  --container: min(1200px, 92vw);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.container { width: var(--container); margin-inline: auto; }

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

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

/* ——— Background ——— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.page-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(6, 182, 212, 0.1), transparent);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}

.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary {
  background: var(--gradient-premium);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ——— Navbar ——— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.navbar.is-scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.navbar__logo-img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5));
}

.navbar__nav {
  display: flex;
  gap: 2rem;
}

.navbar__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-premium);
  transition: width 0.3s var(--ease-out);
}

.navbar__link:hover,
.navbar__link.is-active { color: var(--text-primary); }

.navbar__link.is-active::after,
.navbar__link:hover::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle .icon { width: 1.5rem; height: 1.5rem; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-deep) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  animation: pulse 2s ease infinite;
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Logo stage — 3D holographic */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.logo-stage {
  position: relative;
  width: min(380px, 90vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  opacity: 0;
  animation: logoCinematic 1.4s var(--ease-out) 0.2s forwards;
}

@keyframes logoCinematic {
  0% {
    opacity: 0;
    transform: scale(0.6) rotateX(25deg) translateY(40px);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateX(0) translateY(0);
  }
}

.logo-stage.is-loaded {
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-12px) rotateX(3deg) rotateY(-3deg); }
}

.logo-stage__rings {
  position: absolute;
  inset: -10%;
  transform-style: preserve-3d;
}

.logo-stage__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  animation: ringRotate 12s linear infinite;
}

.logo-stage__ring:nth-child(2) {
  inset: 8%;
  border-color: rgba(139, 92, 246, 0.25);
  animation-duration: 18s;
  animation-direction: reverse;
}

.logo-stage__ring:nth-child(3) {
  inset: 16%;
  border-color: rgba(6, 182, 212, 0.2);
  animation-duration: 24s;
}

@keyframes ringRotate {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

.logo-stage__glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 65%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}

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

.logo-stage__holo {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(6, 182, 212, 0.3), transparent, rgba(139, 92, 246, 0.3), transparent);
  animation: holoSpin 8s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.6;
}

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

.logo-stage__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.5)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.3));
  transition: filter 0.3s;
  will-change: transform;
}

.logo-stage__reflection {
  position: absolute;
  bottom: -15%;
  left: 10%;
  right: 10%;
  height: 30%;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.15), transparent);
  transform: scaleY(-0.4) perspective(200px) rotateX(60deg);
  filter: blur(8px);
  opacity: 0.5;
  z-index: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--cyan-bright), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.section-header__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ——— Service cards ——— */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--blue-electric)), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.tilt-card__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tilt-card:hover .tilt-card__shine { opacity: 1; }

.service-card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--card-accent, var(--cyan-bright));
  margin-bottom: 1.25rem;
}

.service-card__icon .icon { width: 1.5rem; height: 1.5rem; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.service-card__features .icon {
  width: 1rem;
  height: 1rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-bright);
  transition: gap 0.2s;
}

.service-card__link:hover { gap: 0.6rem; }

/* ——— Technology ——— */
.tech-orbit {
  display: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tech-card {
  padding: 1.75rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
}

.tech-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cyan-bright);
  margin-bottom: 1rem;
}

.tech-card__icon .icon { width: 100%; height: 100%; }

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ——— Advantages ——— */
.advantages__counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.counter-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.counter-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.counter-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.advantage-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

.advantage-card__icon {
  color: var(--purple-neon);
  margin-bottom: 1rem;
}

.advantage-card__icon .icon { width: 1.75rem; height: 1.75rem; }

.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ——— AI Section ——— */
.ai-section {
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.ai-section__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.ai-section__glow {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  transform: translateY(-50%);
  filter: blur(60px);
  pointer-events: none;
}

.ai-section__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ai-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

.ai-section__text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.ai-section__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.ai-section__list .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.ai-section .btn { margin-top: 1.5rem; }

/* AI Brain visual */
.ai-brain {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.ai-brain__core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--gradient-premium);
  filter: blur(2px);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.ai-brain__ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  animation: ringRotate 10s linear infinite;
}

.ai-brain__ring--2 { inset: 20%; animation-duration: 15s; animation-direction: reverse; border-color: rgba(139, 92, 246, 0.3); }
.ai-brain__ring--3 { inset: 5%; animation-duration: 20s; border-color: rgba(59, 130, 246, 0.2); }

.ai-brain__node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cyan-bright);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: rotate(calc(var(--n) * 30deg)) translateY(-140px);
  box-shadow: 0 0 12px var(--cyan-bright);
  animation: nodeBlink 2s ease infinite;
  animation-delay: calc(var(--n) * 0.15s);
}

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

.ai-brain__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  animation: brainPulse 2.5s ease-out infinite;
}

@keyframes brainPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ——— CTA ——— */
.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08));
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

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

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ——— Page hero ——— */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
}

.page-hero--compact { padding-bottom: 2rem; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0.75rem 0 1rem;
}

.page-hero__desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* ——— Use cases ——— */
.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.use-case-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.use-case-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.use-case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ——— Contact ——— */
.contact-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info__list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info__list .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.contact-info__list a {
  color: var(--cyan-bright);
  transition: opacity 0.2s;
}

.contact-info__list a:hover { opacity: 0.8; }

.contact-info__card {
  margin-top: 2rem;
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group label span { color: var(--cyan-bright); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f87171;
}

.form-error {
  display: block;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-footer { margin-top: 0.5rem; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-success {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
}

.form-success .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cyan-bright);
  flex-shrink: 0;
}

.form-success[hidden] { display: none !important; }

/* ——— Footer ——— */
.footer {
  position: relative;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 2rem;
}

.footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient-premium);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer__logo-link img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer__social-link:hover {
  color: var(--cyan-bright);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.footer__social-link .icon { width: 1.1rem; height: 1.1rem; }

.footer__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__links a,
.footer__contact a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__links a:hover,
.footer__contact a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— Scroll reveal ——— */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

[data-reveal-delay="60"] { transition-delay: 60ms; }
[data-reveal-delay="70"] { transition-delay: 70ms; }
[data-reveal-delay="80"] { transition-delay: 80ms; }
[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="150"] { transition-delay: 150ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }

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

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .hero__layout,
  .ai-section__layout,
  .contact-section__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .hero__stats { margin-inline: auto; }
  .hero__stats { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__visual { order: -1; }
  .logo-stage { width: min(280px, 70vw); }

  .services__grid,
  .advantages__grid,
  .tech-grid,
  .use-cases__grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-card__actions { justify-content: center; }
}

@media (max-width: 768px) {
  .navbar__nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    background: rgba(3, 7, 18, 0.98);
    border-bottom: 1px solid var(--border-glass);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
    pointer-events: none;
  }

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

  .navbar__toggle { display: block; }
  .navbar__actions .btn--primary { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .advantages__counters { grid-template-columns: 1fr; }
}

@media (min-width: 1920px) {
  :root { --container: min(1400px, 88vw); }
  .hero__title { font-size: 4rem; }
}
