/* ============================================
   AMYRIX TECHNOLOGIES LLC — Style System
   Cyberpunk / Futuristic Dark Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #7C3AED;
  --accent: #06B6D4;
  --bg: #0A0A0F;
  --surface: #141419;
  --card: #1A1A23;
  --text: #E2E8F0;
  --muted: #64748B;
  --gradient: linear-gradient(135deg, #7C3AED, #06B6D4);
  --gradient-reverse: linear-gradient(135deg, #06B6D4, #7C3AED);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.5);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5);
  --green: #10B981;
  --orange: #F59E0B;
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.5);
  --glow-orange: 0 0 20px rgba(245, 158, 11, 0.4);
  --glow-mixed: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(6, 182, 212, 0.15);
  --glass-bg: rgba(26, 26, 35, 0.6);
  --glass-border: rgba(124, 58, 237, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

section {
  scroll-snap-align: start;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--muted); }

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }

/* ---------- Dot Grid Background ---------- */
.dot-grid {
  position: relative;
}

.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.dot-grid > * {
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: var(--glow-purple), 0 4px 30px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--text);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-glow {
  background: var(--gradient);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), 0 0 80px rgba(6, 182, 212, 0.25);
  transform: translateY(-3px) scale(1.02);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 44px;
}

.nav-logo span {
  display: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #7C3AED, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1.15rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A0A0F 0%, #1a0a2e 30%, #0a1628 60%, #0A0A0F 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.1); }
  66% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 40px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Floating geometric shapes */
.hero-shape {
  position: absolute;
  z-index: 2;
  opacity: 0.15;
}

.hero-shape-1 {
  width: 60px;
  height: 60px;
  border: 2px solid var(--primary);
  top: 20%;
  left: 10%;
  animation: shapeFloat 6s ease-in-out infinite, shapeSpin 20s linear infinite;
}

.hero-shape-2 {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  top: 60%;
  right: 15%;
  border-radius: 50%;
  animation: shapeFloat 8s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary);
  bottom: 20%;
  left: 20%;
  border-radius: var(--radius-sm);
  animation: shapeFloat 7s ease-in-out infinite, shapeSpin 25s linear infinite reverse;
}

.hero-shape-4 {
  width: 30px;
  height: 30px;
  background: var(--accent);
  top: 30%;
  right: 25%;
  border-radius: 50%;
  opacity: 0.1;
  animation: shapeFloat 5s ease-in-out infinite;
}

.hero-shape-5 {
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent);
  top: 75%;
  right: 35%;
  animation: shapeFloat 9s ease-in-out infinite, shapeSpin 15s linear infinite;
}

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

@keyframes shapeSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Stat pills */
.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  animation: pillFloat 3s ease-in-out infinite;
}

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

.stat-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

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

/* ---------- Glass Card System ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.05), rgba(124, 58, 237, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-mixed);
}

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

/* Animated gradient border variant */
.glass-card-glow {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid transparent;
  z-index: 1;
}

.glass-card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--angle, 0deg), var(--primary), var(--accent), var(--primary));
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderRotate 4s linear infinite;
}

.glass-card-glow::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--card);
  z-index: -1;
}

.glass-card-glow:hover::before {
  opacity: 1;
}

.glass-card-glow:hover {
  box-shadow: var(--glow-mixed);
  transform: translateY(-4px);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  to { --angle: 360deg; }
}

/* ---------- Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.25rem;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-mixed);
  transform: translateY(-3px);
}

.bento-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.bento-card h3 {
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.bento-stat {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.bento-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.bento-stat .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Sections General ---------- */
.section {
  padding: 7rem 0;
  position: relative;
}

/* ---------- Products Section ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid transparent;
  z-index: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(from var(--angle, 0deg), var(--primary), var(--accent), var(--primary));
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: borderRotate 4s linear infinite;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--card);
  z-index: -1;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-mixed);
}

.product-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: var(--transition);
}

.product-card:hover .product-icon {
  box-shadow: var(--glow-purple);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.2));
}

.product-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.product-brands span {
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.15);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Brands Marquee ---------- */
.brands-section {
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  background: var(--surface);
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-wrapper:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  padding: 0 2.5rem;
  white-space: nowrap;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-divider {
  color: var(--primary);
  opacity: 0.3;
  padding: 0 1rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--glow-mixed);
  transform: translateY(-5px);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--gradient);
  box-shadow: var(--glow-purple);
}

.why-card h3 {
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
  z-index: 0;
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

.cta-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  opacity: 0.15;
  top: -100px;
  right: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.cta-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  opacity: 0.1;
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer h4 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-contact li span.icon {
  flex-shrink: 0;
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--accent);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ---------- Mobile Responsive ---------- */

/* Tablets and below */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Mobile landscape */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
  }

  .nav-links.open a {
    font-size: 1.3rem;
    padding: 0.75rem 2rem;
    color: var(--text);
  }

  /* Hero - stack to single column */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-content {
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Force all inline grid layouts to stack on mobile */
  .hero .container > div[style*="grid-template-columns"],
  .section .container > div[style*="grid-template-columns"],
  .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  /* Stack all 2-col, 3-col, 4-col grids */
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Images in sections */
  .section img,
  .container img[style*="max-width"] {
    max-width: 100% !important;
  }

  /* Bento grid */
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-large {
    grid-column: span 2;
  }

  .bento-medium {
    grid-column: span 2;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  /* Partner types, jobs grid */
  .partner-types,
  .jobs-grid,
  .svc-cards-row {
    grid-template-columns: 1fr !important;
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  /* About intro */
  .about-intro {
    grid-template-columns: 1fr !important;
  }

  .vm-grid {
    grid-template-columns: 1fr !important;
  }

  .values-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Brands grid */
  .brands-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA section */
  .cta-content {
    padding: 0 1rem;
  }

  /* Gradient banner */
  .gradient-banner {
    padding: 40px 0;
  }

  .gradient-banner h2 {
    font-size: 1.4rem;
  }

  .gradient-banner p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  /* Page heroes */
  .svc-hero,
  .abt-hero,
  .ptr-hero,
  .car-hero {
    min-height: auto !important;
    padding: 120px 0 60px !important;
  }

  /* Section titles */
  .section-title {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Tabs */
  .svc-tabs-nav {
    flex-direction: column;
    align-items: center;
  }

  .svc-tab-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 100px 0 40px;
  }

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

  .bento-large,
  .bento-medium {
    grid-column: span 1;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  .nav-logo img {
    height: 36px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr !important;
  }

  /* Stat pills */
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* About stats */
  .about-intro-stats {
    grid-template-columns: 1fr !important;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.6rem;
  }
}

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

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

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

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text);
}
