:root {
  --bg: #1a0033;
  --bg-soft: #220046;
  --electric: #00d4ff;
  --magenta: #ff00ff;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --transition: 0.45s ease;
}

@property --num {
  syntax: "<integer>";
  initial-value: 0;
  inherits: false;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 255, 0.17), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 212, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #120024, #1a0033 48%, #090014 100%);
  color: var(--white);
  overflow-x: hidden;
  perspective: 1200px;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 6rem 0;
  transform-style: preserve-3d;
}

.section::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 40px;
  transform: translateZ(-60px) scale(1.05);
  pointer-events: none;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -3;
  animation: blobMorph 14s ease-in-out infinite;
}

.ambient-one {
  width: 260px;
  height: 260px;
  background: rgba(255, 0, 255, 0.45);
  top: 10%;
  right: 4%;
}

.ambient-two {
  width: 340px;
  height: 340px;
  background: rgba(0, 212, 255, 0.30);
  bottom: 8%;
  left: 5%;
  animation-duration: 17s;
}

.ambient-three {
  width: 220px;
  height: 220px;
  background: rgba(107, 52, 255, 0.32);
  top: 40%;
  left: 40%;
  animation-duration: 19s;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.particles span {
  --size: 7px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(0,212,255,0.6) 60%, transparent 100%);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.75);
  animation: floatDots linear infinite, twinkle 4s ease-in-out infinite;
}

.particles span:nth-child(1) { top: 10%; left: 8%; animation-duration: 18s; animation-delay: -4s; }
.particles span:nth-child(2) { top: 18%; left: 20%; animation-duration: 22s; animation-delay: -6s; }
.particles span:nth-child(3) { top: 30%; left: 10%; animation-duration: 16s; }
.particles span:nth-child(4) { top: 42%; left: 25%; animation-duration: 20s; }
.particles span:nth-child(5) { top: 65%; left: 13%; animation-duration: 17s; }
.particles span:nth-child(6) { top: 80%; left: 18%; animation-duration: 24s; }
.particles span:nth-child(7) { top: 12%; left: 44%; animation-duration: 18s; }
.particles span:nth-child(8) { top: 24%; left: 58%; animation-duration: 23s; }
.particles span:nth-child(9) { top: 40%; left: 50%; animation-duration: 15s; }
.particles span:nth-child(10) { top: 70%; left: 46%; animation-duration: 22s; }
.particles span:nth-child(11) { top: 82%; left: 56%; animation-duration: 19s; }
.particles span:nth-child(12) { top: 14%; left: 75%; animation-duration: 26s; }
.particles span:nth-child(13) { top: 22%; left: 88%; animation-duration: 18s; }
.particles span:nth-child(14) { top: 38%; left: 78%; animation-duration: 16s; }
.particles span:nth-child(15) { top: 56%; left: 90%; animation-duration: 24s; }
.particles span:nth-child(16) { top: 68%; left: 74%; animation-duration: 20s; }
.particles span:nth-child(17) { top: 84%; left: 85%; animation-duration: 22s; }
.particles span:nth-child(18) { top: 52%; left: 6%; animation-duration: 25s; }
.particles span:nth-child(19) { top: 6%; left: 60%; animation-duration: 18s; }
.particles span:nth-child(20) { top: 90%; left: 35%; animation-duration: 21s; }

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 0, 20, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: navDrop 1s cubic-bezier(.16,1,.3,1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand strong,
.brand small,
.nav-links a,
.section-heading h2,
.hero-title,
.feature-card h3,
.site-footer h3 {
  font-family: "Orbitron", sans-serif;
}

.brand small {
  display: block;
  color: var(--text-soft);
  letter-spacing: 1.5px;
  font-size: 0.68rem;
}

.brand-mark {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  color: #120024;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(255, 0, 255, 0.45);
  animation: pulseBreath 3.2s ease-in-out infinite;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--electric), var(--magenta));
  transform: scaleX(0);
  transform-origin: right;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
  transition: transform var(--transition);
  animation: glowLine 3s linear infinite;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.btn,
.mini-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.nav-cta,
.btn-primary,
.mini-btn {
  background: linear-gradient(135deg, var(--electric), var(--magenta));
  color: #120024;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(255, 0, 255, 0.32);
  animation: pulseBreath 3s ease-in-out infinite;
}

.nav-cta {
  padding: 0.8rem 1.2rem;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: clip;
  padding-top: 9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--electric), var(--magenta), var(--white), var(--electric));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s linear infinite;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 5.2rem);
  line-height: 1.08;
  display: grid;
  gap: 0.35rem;
}

.type-line {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-left: 3px solid var(--electric);
  animation: typewriter 3.6s steps(24) forwards, caretBlink 0.8s step-end infinite;
}

.type-line.second {
  animation-delay: 0.3s, 0s;
  animation-duration: 4.3s, 0.8s;
}

.hero-text,
.section-heading p,
.feature-card p,
.contact-copy p,
.site-footer p {
  color: var(--text-soft);
  line-height: 1.9;
}

.hero-text {
  max-width: 58ch;
  margin: 1.2rem 0 1.8rem;
  font-size: 1.02rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  min-width: 180px;
}

.btn:hover,
.nav-cta:hover,
.mini-btn:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255, 0, 255, 0.22), 0 0 25px rgba(0, 212, 255, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-mini-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 1rem;
}

.hero-mini-stats div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.08);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-mini-stats div:nth-child(2) { animation-delay: -1s; }
.hero-mini-stats div:nth-child(3) { animation-delay: -2s; }

.hero-mini-stats strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--electric);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hero-card-main {
  width: min(100%, 470px);
  border-radius: 30px;
  overflow: hidden;
  transform: rotateY(-16deg) rotateX(8deg);
  animation: heroCardFloat 6s ease-in-out infinite;
}

.hero-card-main img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}

.hero-card-content {
  position: absolute;
  inset: auto 1.25rem 1.25rem 1.25rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(9,0,20,0.7));
  backdrop-filter: blur(12px);
}

.badge,
.tag {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(0, 212, 255, 0.12);
  color: var(--electric);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.floating-chip,
.floating-ring {
  position: absolute;
  animation: orbitFloat 8s ease-in-out infinite;
}

.floating-chip {
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.16);
}

.chip-one {
  top: 4%;
  left: 8%;
}

.chip-two {
  bottom: 10%;
  right: 0;
  animation-delay: -2s;
}

.floating-ring {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(0, 212, 255, 0.34);
  border-radius: 50%;
  top: 9%;
  right: 6%;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.2), inset 0 0 30px rgba(255, 0, 255, 0.12);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(10px);
  opacity: 0.8;
  animation: blobMorph 14s ease-in-out infinite;
}

.blob-a {
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.42), rgba(255, 0, 255, 0.36));
  top: 5%;
  right: -6%;
}

.blob-b {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 0, 255, 0.28));
  bottom: 8%;
  left: 4%;
  animation-duration: 18s;
}

.blob-c {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.24), rgba(255,255,255,0.12));
  top: 22%;
  left: 36%;
  animation-duration: 12s;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.product-card {
  min-height: 390px;
  perspective: 1500px;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.product-card.is-visible {
  animation: revealUp 0.8s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--delay, 0s);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 390px;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.16,1,.3,1);
}

.product-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
}

.flip-front {
  display: flex;
  flex-direction: column;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 390px;
  transition: transform 0.8s ease;
}

.product-card:hover .flip-front img {
  transform: scale(1.08);
}

.product-front-copy {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(9,0,20,0.82));
  backdrop-filter: blur(12px);
}

.flip-back {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.12), rgba(255, 0, 255, 0.18), rgba(13, 0, 35, 0.92));
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotateY(180deg);
}

.flip-back h3,
.product-front-copy h3,
.hero-card-content h2 {
  margin: 0;
  font-size: 1.35rem;
}

.flip-back strong {
  font-size: 1.6rem;
  color: var(--electric);
  font-family: "Orbitron", sans-serif;
}

.mini-btn {
  padding: 0.8rem 1rem;
  justify-self: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 24px;
  animation: floatCard 6.5s ease-in-out infinite;
}

.stat-card:nth-child(2) { animation-delay: -1s; }
.stat-card:nth-child(3) { animation-delay: -2s; }
.stat-card:nth-child(4) { animation-delay: -3s; }

.stat-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  margin-bottom: 0.55rem;
  color: var(--white);
}

.stat-card .stat-value::after {
  content: counter(num) "+";
}

.count-1 {
  --num: 0;
  counter-reset: num var(--num);
  animation: floatCard 6.5s ease-in-out infinite, count1400 3s ease-out forwards;
}

.count-2 {
  --num: 0;
  counter-reset: num var(--num);
  animation: floatCard 6.5s ease-in-out infinite -1s, count5200 3s ease-out forwards;
}

.count-3 {
  --num: 0;
  counter-reset: num var(--num);
  animation: floatCard 6.5s ease-in-out infinite -2s, count120 3s ease-out forwards;
}

.count-4 {
  --num: 0;
  counter-reset: num var(--num);
  animation: floatCard 6.5s ease-in-out infinite -3s, count99 3s ease-out forwards;
}

.count-4 .stat-value::after {
  content: counter(num) "%";
}

.feature-list {
  display: grid;
  gap: 1.3rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 45%, transparent 60%);
  transform: translateX(100%);
  animation: shimmer 6s linear infinite;
}

.feature-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(255,0,255,0.22));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 0 25px rgba(255,255,255,0.08), 0 0 30px rgba(0,212,255,0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  padding: 1.5rem;
  border-radius: 28px;
}

.field-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field-group label {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.field-group input,
.field-group textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(255,255,255,0.46);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12), 0 0 30px rgba(255, 0, 255, 0.16);
  transform: translateY(-2px);
}

.wide {
  width: 100%;
}

.site-footer {
  position: relative;
  padding: 5rem 0 2rem;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 90px;
  background:
    radial-gradient(circle at 20px 70px, transparent 30px, rgba(0, 212, 255, 0.3) 31px, rgba(0, 212, 255, 0.3) 36px, transparent 37px) repeat-x,
    radial-gradient(circle at 70px 25px, transparent 28px, rgba(255, 0, 255, 0.24) 29px, rgba(255, 0, 255, 0.24) 34px, transparent 35px) repeat-x;
  background-size: 110px 90px, 140px 90px;
  opacity: 0.8;
  animation: waveMove 12s linear infinite;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation-delay: calc(var(--stagger, 0s) + var(--delay, 0s));
  animation-fill-mode: both;
}

.reveal-up.is-visible { animation-name: revealUp; animation-duration: 0.85s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
.reveal-right.is-visible { animation-name: revealRight; animation-duration: 0.9s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
.reveal-left.is-visible { animation-name: revealLeft; animation-duration: 0.9s; animation-timing-function: cubic-bezier(.16,1,.3,1); }

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowLine {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.5); }
  50% { box-shadow: 0 0 24px rgba(255,0,255,0.8); }
}

@keyframes blobMorph {
  0%, 100% { border-radius: 40% 60% 65% 35% / 40% 35% 65% 60%; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33% { border-radius: 63% 37% 46% 54% / 55% 41% 59% 45%; transform: translate3d(30px, -15px, 0) rotate(8deg) scale(1.08); }
  66% { border-radius: 35% 65% 38% 62% / 60% 57% 43% 40%; transform: translate3d(-18px, 26px, 0) rotate(-8deg) scale(0.94); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes caretBlink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--electric); }
}

@keyframes pulseBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 0, 255, 0.22); }
  50% { transform: scale(1.05); box-shadow: 0 0 34px rgba(0, 212, 255, 0.34), 0 0 48px rgba(255, 0, 255, 0.24); }
}

@keyframes floatDots {
  0% { transform: translate3d(0, 0, 0) scale(0.9); }
  50% { transform: translate3d(18px, -36px, 0) scale(1.15); }
  100% { transform: translate3d(-12px, -72px, 0) scale(0.9); }
}

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

@keyframes heroCardFloat {
  0%, 100% { transform: rotateY(-16deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(3deg) translateY(-14px); }
}

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

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

@keyframes shimmer {
  from { transform: translateX(120%); }
  to { transform: translateX(-120%); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(45px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-120px); }
}

@keyframes count1400 {
  from { --num: 0; }
  to { --num: 1400; }
}

@keyframes count5200 {
  from { --num: 0; }
  to { --num: 5200; }
}

@keyframes count120 {
  from { --num: 0; }
  to { --num: 120; }
}

@keyframes count99 {
  from { --num: 0; }
  to { --num: 99; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .contact-grid,
  .product-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .contact-grid {
    align-items: stretch;
  }

  .hero {
    min-height: auto;
  }

  .hero-card-main img {
    height: 480px;
  }
}

@media (max-width: 820px) {
  .navbar,
  .footer-content {
    flex-direction: column;
    border-radius: 28px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-grid,
  .contact-grid,
  .product-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 11vw, 3.5rem);
  }

  .hero-mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-card-main {
    transform: none;
  }

  .hero-card-main img {
    height: 420px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-icon {
    margin-inline: auto;
  }

  .type-line {
    white-space: normal;
    width: 100%;
    border-left: none;
    animation: revealUp 1s ease both;
  }

  .type-line.second {
    animation-delay: 0.25s;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4.5rem 0;
  }

  .navbar {
    padding: 1rem;
  }

  .site-header {
    padding-top: 0.75rem;
  }

  .btn,
  .nav-cta,
  .mini-btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-card-content {
    inset: auto 0.75rem 0.75rem 0.75rem;
  }

  .flip-inner,
  .product-card,
  .flip-front img {
    min-height: 360px;
  }
}