@import url('./assets/fonts.css');

:root {
  /* Colors */
  --bg-main: #030712;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-glow: rgba(6, 182, 212, 0.3);

  /* Typography */
  --font-display: 'Geologica', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.8125rem);
  --text-4xl: clamp(2.25rem, 1.7rem + 2.75vw, 3.625rem);
  --text-5xl: clamp(3rem, 2.2rem + 4vw, 5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6vw, 7rem);

  /* Spacing & Layout */
  --container-width: 1280px;
  --section-py: clamp(4rem, 8vw, 8rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Borders & Shadows */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
  --border-light: 1px solid rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 40px -10px var(--accent-glow);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

button, input, textarea, select {
  font: inherit;
}

/* ------------------- UTILITIES ------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding-block: var(--section-py);
  position: relative;
}

/* minmax(0,1fr) so tracks never grow past the container on long words (no horizontal overflow) */
.grid-cols-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.grid-cols-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.grid-cols-4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

@media (min-width: 560px) {
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------- COMPONENTS ------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  box-shadow: 0 10px 20px -10px rgba(6, 182, 212, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.7);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: 1.5rem;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 1rem;
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-primary);
}

.logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

.header-actions {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions { display: block; }
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile dropdown menu */
.mobile-nav { display: none; }

@media (max-width: 1023px) {
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem clamp(1rem, 5vw, 2rem) 1.5rem;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  }

  .header.nav-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header.nav-open {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mobile-nav-link {
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition-fast);
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    color: var(--text-primary);
  }

  .mobile-nav-cta {
    margin-top: 1.25rem;
    width: 100%;
  }
}

/* Hero Section — pinned scroll-reveal intro */
.hero {
  position: relative;
  height: 185vh;            /* scroll runway: clean video → text reveal */
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Full-screen animated logo reveal — the clean first impression */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  background: var(--bg-main);
  /* clean & vivid at the top (reveal 0), dimmed once the text appears (reveal 1) */
  opacity: calc(1 - 0.62 * var(--reveal, 0));
  transform: scale(calc(1 - 0.05 * var(--reveal, 0)));
  filter: brightness(1.16) saturate(1.06);
  transition: transform 0.12s linear, opacity 0.12s linear;
}

/* Scrim fades IN as the text reveals — keeps the first screen pure video */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(3, 7, 18, 0.5) 0%, rgba(3, 7, 18, 0.2) 35%, rgba(3, 7, 18, 0.78) 100%);
  opacity: var(--reveal, 0);
  pointer-events: none;
}

/* Content layer — hidden until the user scrolls */
.hero-inner {
  position: relative;
  z-index: 2;
  opacity: var(--reveal, 0);
  transform: translateY(calc((1 - var(--reveal, 0)) * 36px));
  pointer-events: none;
}

/* Scroll hint, visible only on the clean first screen */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: calc(1 - var(--reveal, 0) * 2.2);
  transition: opacity 0.2s linear;
}

.scroll-cue svg { animation: cue-bounce 1.8s ease-in-out infinite; }

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 1023px) {
  /* Mobile: video is a STICKY background, the text scrolls OVER it (so the text
     overlays the video, like on desktop), but content of any height never clips. */
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; min-height: 0; display: block; padding: 0; overflow: visible; }

  /* sticky video; oversized so the centered logo is large on a portrait screen */
  .hero-bg { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 0; overflow: hidden; }
  .hero-video { opacity: 1; transform: none; left: -42%; right: auto; width: 184%; max-width: none; }
  .hero-video-scrim { opacity: 1; background: linear-gradient(to bottom, rgba(3, 7, 18, 0) 55%, rgba(3, 7, 18, 0.4) 100%); }

  /* content overlaps the sticky video: transparent first screen (clean video),
     then a dimmed dark sheet behind the text as it scrolls up over the video */
  .hero-inner {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: -100svh;
    padding-top: 100svh;
    background: linear-gradient(to bottom,
      rgba(3, 7, 18, 0) 0,
      rgba(3, 7, 18, 0) calc(100svh - 130px),
      rgba(3, 7, 18, 0.82) calc(100svh + 8px),
      rgba(3, 7, 18, 0.92) 100%);
  }

  /* slightly compact content */
  .badge { margin-bottom: 1rem; }
  .hero-title { margin-bottom: 1rem; }
  .hero-subtitle { margin-bottom: 1.25rem; }
  .hero-actions { gap: 0.75rem; }
  .metrics-bar { margin-top: 1.5rem; }
  .metric-value { font-size: var(--text-3xl); }

  /* scroll hint at the bottom of the first (clean video) screen */
  .scroll-cue { display: flex; top: calc(100svh - 3rem); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-sticky { position: static; height: auto; min-height: 100vh; }
  .hero-inner { opacity: 1; transform: none; pointer-events: auto; }
  .hero-video-scrim { opacity: 1; }
  .scroll-cue { display: none; }
}

.hero-gradient {
  position: absolute;
  top: -10%;
  left: 5%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(3, 7, 18, 0) 70%);
  filter: blur(70px);
}

.hero-gradient-2 {
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(3, 7, 18, 0) 70%);
  filter: blur(70px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(150, 200, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 200, 255, 0.07) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 92%);
}

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

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

.hero-text {
  max-width: 40rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: var(--text-6xl);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 3D Visual Element - High Tech Reactor */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.orb-container {
  position: relative;
  width: min(100%, 550px);
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}

/* Outer smooth gradient ring */
.orb-ring-1 {
  inset: 5%;
  border-width: 2px;
  border-color: rgba(6, 182, 212, 0.1);
  border-top-color: var(--accent-cyan);
  border-bottom-color: var(--accent-blue);
  animation: spin 16s linear infinite;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.1), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Reverse dashed ring */
.orb-ring-2 {
  inset: 18%;
  border-width: 1px;
  border-color: rgba(59, 130, 246, 0.3);
  border-style: dashed;
  animation: spin 24s linear infinite reverse;
}

/* Inner dotted precision ring */
.orb-ring-3 {
  inset: 30%;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.05);
  border-style: dotted;
  animation: spin 30s linear infinite;
}

/* Orbiting dot ring */
.orb-ring-4 {
  inset: 42%;
  border-width: 1px;
  border-color: rgba(16, 185, 129, 0.1);
  border-top-color: var(--accent-green);
  animation: spin 8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.orb-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--accent-green);
}

/* Core pulsating background */
.orb-pulse {
  position: absolute;
  width: 38%;
  height: 38%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(3, 7, 18, 0) 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite alternate;
}

/* The actual center */
.orb-core {
  width: 32%;
  height: 32%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.2);
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Inner glow over the image */
.orb-core::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.orb-core img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
  position: relative;
  z-index: 2;
  animation: inner-float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
  50% { transform: translateY(-15px) rotateX(10deg) rotateY(5deg); }
}

@keyframes inner-float {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

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

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0.9; }
}

/* Metrics Bar */
.metrics-bar {
  margin-top: 4rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .metrics-bar {
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem;
  }
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .metric-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--border-light);
  }
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-value span.num {
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-item.highlight .metric-value {
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header.left {
  text-align: left;
  margin-inline: 0;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
}

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

/* How It Works Steps */
.step-card {
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color var(--transition-normal);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.step-card:hover .step-num {
  color: rgba(6, 182, 212, 0.2);
  -webkit-text-stroke: 1px var(--accent-cyan);
}

.step-title {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.tag-highlight {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  font-size: 0.9em;
}

/* Device Section */
.device-section {
  background: linear-gradient(to bottom, var(--bg-main), #081225);
}

.device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .device-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.device-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.device-visual img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-slow);
}

.device-visual:hover img {
  transform: scale(1.05) translateY(-10px);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-light);
  border-radius: var(--radius-md);
}

.spec-icon {
  color: var(--accent-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spec-text h4 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}

.spec-text p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Charts & Finance Section */
.finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .finance-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.chart-container {
  background: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chart-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
}

.chart-legend {
  display: flex;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-area {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  gap: 2%;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

/* Custom pure CSS bar chart representation */
.bar-group {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.bar {
  width: 30%;
  max-width: 18px;
  height: 0;
  border-radius: 4px 4px 0 0;
  transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.bar-revenue {
  background: linear-gradient(to top, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 1));
}

.bar-dexa {
  background: linear-gradient(to top, rgba(6, 182, 212, 0.45), rgba(6, 182, 212, 1));
}

.bar-profit {
  background: linear-gradient(to top, rgba(16, 185, 129, 0.45), rgba(16, 185, 129, 1));
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.bar-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-display);
}

.chart-note {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-secondary);
}

.chart-note b {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Data Table */
.data-table-wrapper {
  background: var(--bg-card);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table th {
  background: rgba(255,255,255,0.02);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-sm);
}

.data-table td {
  font-size: var(--text-base);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Quote Section */
.quote-section {
  position: relative;
  padding-block: 6rem;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, var(--bg-main) 100%);
}

.quote-container {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: serif;
  font-size: 8rem;
  line-height: 0;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.quote-text {
  font-size: var(--text-2xl);
  line-height: 1.4;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quote-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.quote-author-title {
  color: var(--accent-cyan);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding-block: 8rem;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #030712 100%);
  z-index: 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.form-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-title {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 18, 0.5);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

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

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(3, 7, 18, 0.8);
}

.form-submit {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 1rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(6, 182, 212, 0.5);
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
}

/* Highlight Text Box */
.highlight-text-box {
  display: inline-block;
  background: rgba(16, 185, 129, 0.05); /* Made background lighter to let the text pop */
  border-left: 3px solid var(--accent-green);
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 700;
}

.highlight-text-box span {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.footer {
  border-top: var(--border-light);
  padding-block: 4rem 2rem;
  background: var(--bg-secondary);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom {
  border-top: var(--border-light);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Donut Chart SVG Container */
.donut-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.donut-nav:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-50%) scale(1.1);
}
.donut-nav.prev { left: -15%; }
.donut-nav.next { right: -15%; }

@media (max-width: 768px) {
  .donut-nav.prev { left: -5%; }
  .donut-nav.next { right: -5%; }

  /* keep the big hero heading inside the screen */
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.4rem); overflow-wrap: break-word; }
  .hero-subtitle { max-width: 100%; }
  .highlight-text-box { display: block; }

  /* finance block: give the chart & table room on narrow screens */
  .chart-container { padding: 1.25rem; }
  .chart-area { gap: 1%; }
  .data-table th, .data-table td { padding: 0.85rem 1rem; }
  .data-table th { font-size: var(--text-xs); }
  .data-table td { font-size: var(--text-sm); }
}

.donut-wrapper::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(6, 182, 212, 0.22), rgba(16, 185, 129, 0.10) 45%, transparent 70%);
  filter: blur(36px);
  z-index: 0;
  animation: donut-aura 7s ease-in-out infinite;
}

@keyframes donut-aura {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.04); }
}

.donut-svg {
  position: relative;
  z-index: 1;
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 30px rgba(6, 182, 212, 0.28));
}

.donut-svg circle {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  transition: stroke-dasharray 1s cubic-bezier(0.22, 1, 0.36, 1),
              stroke-width 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.donut-svg circle.donut-track,
.donut-svg circle.donut-inner,
.donut-svg circle.donut-core {
  transition: none;
}

.donut-svg circle.donut-inner {
  stroke-width: 1.2;
}

.donut-svg circle.donut-core {
  fill: #070f20;
  stroke: none;
}

.donut-svg circle:not(.donut-track):not(.donut-inner):not(.donut-core) {
  cursor: pointer;
}

.donut-svg circle:not(.donut-track):not(.donut-inner):not(.donut-core):hover {
  stroke-width: 27;
  filter: brightness(1.14) saturate(1.1);
}

.donut-svg:hover circle:not(.donut-track):not(.donut-inner):not(.donut-core):not(:hover) {
  opacity: 0.4;
}

.donut-center-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center-img {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  filter: blur(4px);
  transform: scale(0.85);
}

.donut-wrapper.has-selection .donut-center-img {
  opacity: 0.95;
  filter: blur(0px) drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
  transform: scale(1);
}

.donut-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 10;
}

.donut-wrapper.has-selection .donut-text-wrap {
  transform: translateY(125px);
  background: rgba(3, 7, 18, 0.85);
  padding: 0.5rem 1.2rem;
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.donut-center-text::before {
  content: "";
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.20), transparent 70%);
  filter: blur(8px);
  transition: opacity 0.5s ease;
}

.donut-wrapper.has-selection .donut-center-text::before {
  opacity: 0;
}

.donut-number {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 24px rgba(6, 182, 212, 0.45);
  transition: all 0.3s ease;
}

.donut-wrapper.has-selection .donut-number {
  font-size: var(--text-2xl);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.donut-number.is-hover {
  font-size: var(--text-4xl);
}

.donut-label {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c2d2e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: all 0.3s ease;
}
