/* InnoSphere - Modern Startup Website with Mobile Optimization */

/* ===== CSS Variables ===== */
:root {
  --primary: #000;
  --accent: #333;
  --accent-light: #666;
  --muted: #f8fafc;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(0,0,0,.12);
  --shadow-hover: 0 20px 60px rgba(0,0,0,.15);
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-back: cubic-bezier(.68,-.55,.265,1.55);
  --spd: .7s;
  
  /* Typography */
  --t1: clamp(2.8rem, 6vw, 4.5rem);
  --t2: clamp(2rem, 4.5vw, 3rem);
  --t3: clamp(1.4rem, 3.2vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ===== Scroll Progress ===== */
.scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(0,0,0,.05);
}

.scrollbar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .1s ease-out;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all var(--spd) var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 16px;
  }
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -.02em;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all .3s ease;
  transform-origin: center;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  padding: 8px 16px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.links .btn {
  color: #fff !important;
  background: var(--primary);
  border: 2px solid var(--primary);
}

.links a:hover {
  color: var(--primary);
  background: rgba(0,0,0,.04);
}

.lang-item {
  margin-left: 8px;
}

#langSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 40px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23666"><path d="M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.27a.75.75 0 01.02-1.06z"/></svg>') no-repeat right 12px center;
  background-size: 14px 14px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  min-width: 68px;
  line-height: 1.2;
}

#langSelect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .header {
    background: rgba(255,255,255,.99);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,.1);
  }
  
  .burger {
    display: flex;
    background: rgba(0,0,0,.05);
    border-radius: 8px;
    padding: 10px;
  }
  
  .burger span {
    background: var(--primary);
    width: 22px;
    height: 3px;
  }
  
  .links {
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    height: auto;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    font-size: 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .4s var(--ease);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 15px;
    border-radius: 12px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  
  .links.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .links a {
    padding: 12px 16px;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    border-radius: 8px;
    margin: 0;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.08);
    transition: all .3s var(--ease);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .links a:hover {
    background: rgba(0,0,0,.08);
    border-color: var(--primary);
    transform: scale(1.02);
  }
  
  .links .btn {
    background: var(--primary);
    color: #fff !important;
    margin: 5px 0 0 0;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    min-height: 42px;
    font-weight: 700;
    border: 1px solid var(--primary);
  }

  .lang-item {
    width: 100%;
  }
  #langSelect {
    width: 100%;
    padding: 12px 44px 12px 12px;
    background-position: right 12px center;
    background-size: 16px 16px;
    font-size: 15px;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 17px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .4s var(--ease-back);
  min-height: 56px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .6s;
}

.btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent);
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  background: var(--accent);
}

.btn.ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 3px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255,255,255,.1);
}

.btn.ghost:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 0 30px rgba(255,255,255,.3);
  backdrop-filter: blur(20px);
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

@media (max-width: 768px) {
  .btn {
    padding: 14px 28px;
    width: auto;
    min-width: 120px;
  }
  
  .btn.small {
    padding: 10px 20px;
    min-width: 100px;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 0 16px;
  }
}

.hero h1 {
  font-size: var(--t1);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  opacity: .9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .lead {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
}

.lead:hover {
  color: #ddd;
}

.actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.actions .btn:nth-child(1) {
  animation-delay: .2s;
}

.actions .btn:nth-child(2) {
  animation-delay: .4s;
}

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0,0,0,.15), 0 0 0 0 rgba(0,0,0,.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(0,0,0,.15), 0 0 0 20px rgba(0,0,0,0);
  }
}

@media (max-width: 768px) {
  .actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .actions .btn {
    width: 200px;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  opacity: .85;
  animation: float 2.3s ease-in-out infinite;
  cursor: pointer;
}

/* Orbs Animation */
.orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.orbs span {
  position: absolute;
  top: calc(10% + var(--i)*12%);
  left: calc(8% + var(--i)*14%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(closest-side,rgba(255,255,255,.28),rgba(255,255,255,0));
  filter: blur(12px);
  animation: orb 9s ease-in-out infinite;
  animation-delay: calc(var(--i)*.4s);
}

@keyframes orb {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(12px,10px,0); }
}

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

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.muted {
  background: var(--muted);
}

.contrast {
  background: linear-gradient(180deg,#fff 0%, #fafafa 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .section-head {
    margin-bottom: 48px;
  }
}

.section-head h2 {
  font-size: var(--t2);
  margin: 0 0 16px;
  letter-spacing: -.01em;
  font-weight: 800;
}

@media (max-width: 768px) {
  .section-head h2 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
}

.sub {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sub {
    font-size: 16px;
  }
}

/* ===== Grids & Cards ===== */
.grid {
  display: grid;
  gap: 32px;
}

@media (max-width: 768px) {
  .grid {
    gap: 24px;
  }
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  transition: all .5s var(--ease);
  transform: translateZ(0);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.02);
  opacity: 0;
  transition: opacity .5s;
}

.card:hover::before {
  transform: scaleX(1);
}

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

@media (max-width: 768px) {
  .card {
    padding: 24px;
  }
}

.card .icon {
  font-size: 52px;
  margin-bottom: 20px;
  display: block;
  transition: all .4s var(--ease-back);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}

.card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.2));
}

.card h3 {
  margin: 16px 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.price-container {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.interactive-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 16px 0 8px;
  color: #000;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.1);
}

.price-details {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  opacity: 0.8;
}

.card p {
  color: var(--ink-2);
  margin-bottom: 20px;
}

.card .list {
  padding-left: 0;
  margin: 16px 0 0;
  list-style: none;
}

.card .list li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--ink-2);
}

.card .list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,0,0,.12);
}

/* ===== Pricing ===== */
.pricing {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pricing.four-columns {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 1200px) {
  .pricing.four-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.plan {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  position: relative;
  text-align: center;
  border: 2px solid rgba(0,0,0,.05);
  transition: all .4s var(--ease);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.plan:hover .plan-icon {
  transform: scale(1.1) rotate(5deg);
}

.plan.highlight .plan-icon {
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.3));
}

.plan.basic,
.plan.professional,
.plan.premium {
  border-color: rgba(0,0,0,.1);
  transition: all 0.3s ease;
}

.plan.basic:hover,
.plan.professional:hover,
.plan.premium:hover {
  border-color: rgba(0,0,0,.2);
  box-shadow: 0 12px 35px rgba(0,0,0,.15);
  transform: translateY(-5px);
}

.plan.highlight:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14,165,233,.2);
}

@media (max-width: 768px) {
  .plan {
    padding: 24px;
  }
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
}

.plan .desc {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: .01em;
  margin: 16px 0 24px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .price {
    font-size: 2rem;
  }
}

.feat {
  padding: 0;
  margin: 20px 0;
  list-style: none;
  text-align: left;
  flex-grow: 1;
  font-size: 14px;
}

.feat li {
  margin: 8px 0;
  padding: 6px 0;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* Removed check marks since we use emojis now */

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  border: 1px solid #ff6b6b;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  }
}

.plan.highlight {
  border: 2px solid #000;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  transform: scale(1.02);
  position: relative;
  overflow: hidden;
}

.plan.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 3s ease-in-out;
}

.plan.highlight:hover::before {
  left: 100%;
}

.plan.highlight h3 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.plan.highlight .desc {
  color: #ddd;
}

.plan.highlight .feat li {
  color: #e0e0e0;
  border-bottom-color: rgba(255,255,255,0.1);
}

.plan.highlight .interactive-price {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.plan.highlight .price-details {
  color: #bbb;
}

.plan.highlight .btn {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.plan.highlight .btn:hover {
  background: #333;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.highlight {
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.highlight .feat li::before {
  color: var(--accent);
}

.highlight .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.highlight .btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.highlight .price {
  color: #fff;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
}

@media (max-width: 768px) {
  .track {
    grid-auto-columns: minmax(250px, 1fr);
    gap: 16px;
  }
}

.track::-webkit-scrollbar {
  height: 8px;
}

.track::-webkit-scrollbar-track {
  background: rgba(0,0,0,.1);
  border-radius: 4px;
}

.track::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border-radius: 4px;
}

.slide {
  position: relative;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.slide img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .slide img {
    height: 180px;
  }
}

.slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ===== Reaction Game ===== */
.react-game {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .react-game {
    padding: 24px;
  }
}

.react-stage {
  border-radius: 16px;
  border: 3px dashed var(--ink-3);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--muted) 0%, #f1f5f9 100%);
  position: relative;
  transition: all .4s var(--ease);
  margin-bottom: 24px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.05);
}

.react-stage::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}

.react-stage.ready::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .react-stage {
    height: 160px;
  }
}

.react-stage.ready {
  background: #eefbe8;
  border-color: var(--accent);
}

.react-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 12px rgba(0,0,0,.1), 0 0 20px rgba(0,0,0,.2);
  animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0,0,0,.1), 0 0 20px rgba(0,0,0,.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(0,0,0,0), 0 0 30px rgba(0,0,0,.3);
  }
}

.react-msg {
  max-width: 400px;
  text-align: center;
  color: var(--ink-2);
  padding: 0 16px;
}

@media (max-width: 768px) {
  .react-msg {
    font-size: 14px;
  }
}

.react-controls {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .react-controls {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.react-stats {
  color: var(--ink-2);
  font-size: 14px;
}

.react-stats span {
  font-weight: 600;
  color: var(--primary);
}

/* ===== Contact Form ===== */
.contact {
  max-width: 800px;
  margin: 0 auto;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid.two {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.field {
  position: relative;
  display: block;
  margin-bottom: 24px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--ink-3);
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: all .3s var(--ease);
  min-height: 44px; /* Touch-friendly */
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.field span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-2);
  background: #fff;
  padding: 0 8px;
  pointer-events: none;
  transition: all .3s var(--ease);
  font-size: 16px;
}

.field textarea + span {
  top: 24px;
  transform: none;
}

.field input:not(:placeholder-shown) + span,
.field textarea:not(:placeholder-shown) + span,
.field input:focus + span,
.field textarea:focus + span {
  top: -8px;
  transform: none;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.form-note {
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: #fff;
}

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

@media (max-width: 768px) {
  .foot {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer li {
  margin: 8px 0;
}

.footer a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .3s ease;
}

.footer a:hover {
  color: #fff;
}

.footer p {
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

.copy {
  text-align: center;
  color: rgba(255,255,255,.6);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
}

/* reCAPTCHA compliance notice styling */
.recaptcha-notice {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
}

.recaptcha-notice a {
  color: var(--ink-2);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.recaptcha-notice a:hover {
  color: var(--ink);
}

/* ===== Scroll Reveal & Animations ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--spd) var(--ease), transform var(--spd) var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .3s var(--ease);
}

/* ===== Utility Classes ===== */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: scale(.8);
  transition: all .3s var(--ease);
  z-index: 100;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.to-top:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ===== Responsive Optimizations ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-head {
    margin-bottom: 32px;
  }
  
  .section-head h2 {
    font-size: 1.75rem;
  }
  
  .card,
  .plan,
  .react-game {
    padding: 20px;
  }
  
  .price {
    font-size: 1.75rem;
  }
  
  .react-stage {
    height: 140px;
  }
  
  .field input,
  .field textarea {
    padding: 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    transform: none;
  }
  
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  
  .tilt,
  .tilt:hover {
    transform: none;
  }
  
  .orbs span {
    animation: none;
  }
  
  .scroll-hint {
    animation: none;
  }
}

/* ===== reCAPTCHA Badge Hidden ===== */
.grecaptcha-badge {
  visibility: hidden !important;
}