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

:root {
  --primary: #005EB8;
  --primary-dark: #004A93;
  --primary-light: #3A8FD6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --gray-bg: #999999;
  --light: #f1f5f9;
  --light-2: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Intro Splash ===== */
.intro-splash {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #bfbfbf 0%, #c9c9c9 30%, #b8b8b8 60%, #c0c0c0 100%);
  z-index: 0;
}

/* Match hero's radial overlays and dot texture on intro */
.intro-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 94, 184, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 94, 184, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 94, 184, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.intro-splash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.intro-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.intro-logo {
  width: 1000px;
  max-width: 90vw;
  height: auto;
  z-index: 2000;
  transition: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Vending machine art on intro page - left side, 125% zoom */
.intro-vending-art {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) scale(1.25);
  width: 340px;
  height: auto;
  z-index: 0;
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  will-change: transform, left, top;
}

.intro-vending-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .intro-vending-art {
    left: 50%;
    transform: translate(-50%, -50%) scale(1.25);
    width: 280px;
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  .intro-vending-art {
    width: 220px;
    opacity: 0.3;
  }
}

.intro-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: none;
}

/* When intro is scrolled past, hide the navbar logo until transition complete */
.navbar .logo img {
  transition: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 94, 184, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: rgba(0,0,0,0.25);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: var(--primary);
  transform: none;
  cursor: default;
}
.btn-nav.active {
  color: var(--white) !important;
  background: var(--primary);
}
.btn-nav.active::after {
  display: none !important;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

/* show class controls visibility — added by logo animation & scroll */
.navbar.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.navbar.scrolled .logo img { filter: none; }
.navbar.scrolled .nav-links a { color: var(--dark); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .btn-nav,
.navbar.scrolled .btn-nav:hover,
.navbar.scrolled .nav-links a.btn-nav,
.navbar.scrolled .nav-links a.btn-nav:hover,
.navbar.scrolled .nav-links a.btn-nav.active { color: var(--white) !important; }
.navbar.scrolled .nav-toggle span { background: var(--dark); }

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 120px;
  width: auto;
  transition: all var(--transition);
}

.navbar.scrolled .logo img {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(0,0,0,0.7);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #bfbfbf 0%, #c9c9c9 30%, #b8b8b8 60%, #c0c0c0 100%);
  z-index: 0;
}

/* Seamless join: remove any gap between intro and hero */
.intro-splash {
  margin-bottom: 0;
  padding-bottom: 0;
}
.hero {
  margin-top: 0;
  padding-top: 100px;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 94, 184, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 94, 184, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 94, 184, 0.05) 0%, transparent 40%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Vending machine abstract outline art */
.hero-vending-art {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
  z-index: 1;
  color: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.hero-vending-art svg {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .hero-vending-art {
    right: 50%;
    transform: translate(50%, -50%);
    width: 280px;
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .hero-vending-art {
    width: 220px;
    opacity: 0.35;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--dark);
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 94, 184, 0.12);
  border: 1px solid rgba(0, 94, 184, 0.3);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--dark-2);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.8rem;
}

.stat-number { font-weight: 800; }

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(0,0,0,0.35);
  font-size: 0.75rem;
  letter-spacing: 1px;
  z-index: 2;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 2px;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--light-2);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-description {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== About Grid ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 94, 184, 0.15);
}

.about-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 94, 184, 0.1), rgba(58, 143, 214, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 94, 184, 0.15);
}

.product-card.featured {
  border-color: var(--primary);
  background: linear-gradient(to bottom, rgba(0, 94, 184, 0.03), var(--white));
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.product-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

/* Scroll-driven superhero landing for product icons */
.product-icon {
  position: relative;
}

.product-card .product-icon svg {
  will-change: transform, opacity, filter;
  transition: none;
}

/* Impact ring - triggered via JS class */
.product-card .product-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #D4772C;
  opacity: 0;
  pointer-events: none;
}

@keyframes impactRing {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.3); }
  100% { opacity: 0; transform: translateX(-50%) scale(2.2); }
}

.product-card.icon-landed .product-icon::after {
  animation: impactRing 0.5s ease-out forwards;
}

.product-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card > p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-list {
  text-align: left;
}

.product-list li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--gray);
  border-bottom: 1px solid var(--light);
  position: relative;
  padding-left: 16px;
}

.product-list li:last-child { border-bottom: none; }

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--white);
  transition: all var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 94, 184, 0.15);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 94, 184, 0.12);
  margin-bottom: 12px;
  line-height: 1;
}

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

.feature p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ===== Steps ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0, 94, 184, 0.25);
}

.step-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), rgba(0, 94, 184, 0.2));
  flex-shrink: 0;
  margin-bottom: 60px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* ===== CTA / Contact ===== */
.section-cta {
  background: linear-gradient(135deg, #595959 0%, #999999 30%, #7a7a7a 60%, #666666 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(0, 94, 184, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(0, 94, 184, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0, 94, 184, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.section-cta .section-tag {
  color: #8ECDF8 !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  text-shadow:
    0 0 20px rgba(142, 205, 248, 0.6),
    0 0 40px rgba(142, 205, 248, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  margin-bottom: 20px !important;
}
.section-cta h2 { color: var(--white); }
.section-cta p { color: rgba(255,255,255,0.8); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.cta-content > p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

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

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

.form-group select option {
  background: var(--dark);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(0, 94, 184, 0.5);
  background: rgba(255,255,255,0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.contact-form .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.contact-form .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 94, 184, 0.4);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

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

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 80px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 8px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1001;
  }

  .nav-links.active { right: 0; }

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1.05rem;
    padding: 12px 0;
  }

  .btn-nav {
    margin-top: 8px;
  }

  .logo img { height: 80px; }
  .navbar.scrolled .logo img { height: 64px; }

  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -1px; }
  .hero-subtitle { font-size: 1rem; padding: 0 8px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .hero-stats { gap: 32px; }

  .section { padding: 60px 0; }
  .section-header h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
  .section-description { font-size: 0.95rem; padding: 0 8px; }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 24px 20px; }

  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card { padding: 28px 20px; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { padding: 24px 20px; }

  .steps { flex-direction: column; }
  .step-connector {
    width: 2px;
    height: 40px;
    margin-bottom: 0;
    background: linear-gradient(180deg, var(--primary-light), rgba(0, 94, 184, 0.2));
  }
  .step { flex-direction: column; text-align: center; }
  .step-content { text-align: center; }

  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-content h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
  .section-cta { padding: 60px 0; }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 40px 0 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 0 50px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 0.75rem; padding: 6px 16px; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 24px; }

  .logo img { height: 64px; }
  .navbar.scrolled .logo img { height: 52px; }

  .container { padding: 0 16px; }

  .section-header h2 { font-size: 1.4rem; }
  .section-tag { font-size: 0.75rem; }

  .product-icon svg { width: 60px; height: 60px; }

  .step-circle { width: 48px; height: 48px; font-size: 1.1rem; }

  .cta-content h2 { font-size: 1.4rem; }
  .cta-info-item { font-size: 0.85rem; }
  .cta-info-item svg { width: 16px; height: 16px; }

  .btn { padding: 10px 24px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

  .footer-bottom p { font-size: 0.8rem; }
}

/* ===== Touch-friendly tap targets ===== */
@media (pointer: coarse) {
  .btn { min-height: 48px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { min-height: 48px; }
}

/* ===== Skip Navigation (Accessibility) ===== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 16px;
}

/* ===== Focus-Visible (Keyboard Navigation) ===== */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.2);
}

/* ===== Active Nav Link ===== */
.nav-links a.active {
  color: var(--primary) !important;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* ===== Mobile Menu Backdrop ===== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Form Validation Feedback ===== */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: rgba(16, 185, 129, 0.4);
}
.form-group select.selected {
  color: var(--white);
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 94, 184, 0.3);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== Page Load Animation ===== */
.page-loading .hero-content,
.page-loading .intro-logo-wrapper,
.page-loading .intro-scroll-hint {
  opacity: 0;
  transform: translateY(20px);
}
.page-loaded .hero-content,
.page-loaded .intro-logo-wrapper,
.page-loaded .intro-scroll-hint {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.page-loaded .intro-logo-wrapper { transition-delay: 0.1s; }
.page-loaded .intro-scroll-hint { transition-delay: 0.4s; }

/* ===== Card hover micro-interaction refinement ===== */
.about-card,
.product-card,
.feature {
  will-change: transform;
}

/* ===== Smooth gradient border on featured card ===== */
.product-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}
.product-card.featured:hover::before {
  opacity: 0.25;
}

/* CTA section tag is styled in the main .section-cta .section-tag rule above */

/* ===== Hamburger animation ===== */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
