/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body { background: #0a0a0f; color: #e2e8f0; font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
::selection { background: rgba(249,115,22,0.4); }

/* ===== GRADIENT MESH HERO BG ===== */
.hero-mesh {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(249,115,22,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168,85,247,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(239,68,68,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(59,130,246,0.08) 0%, transparent 60%);
}
.hero-mesh::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, #0a0a0f 100%);
}

/* ===== PARTICLES CANVAS ===== */
#particles { position: absolute; inset: 0; z-index: 1; }

/* ===== GRADIENT TEXT ===== */
.grad-text {
  background: linear-gradient(135deg, #f97316, #ef4444, #a855f7, #3b82f6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== TYPING CURSOR ===== */
.typing-cursor::after {
  content: '|'; animation: blink 0.7s step-end infinite; color: #f97316;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* ===== GLASS NAVBAR ===== */
.glass-nav {
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover { box-shadow: 0 0 40px rgba(249,115,22,0.08); }

/* ===== ANIMATED CONIC BORDER ===== */
.conic-border { position: relative; border-radius: 1rem; padding: 1px; }
.conic-border::before {
  content: ''; position: absolute; inset: -2px; border-radius: 1rem; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), #f97316, #a855f7, #3b82f6, #ef4444, #f97316);
  opacity: 0; transition: opacity 0.4s;
  animation: rotateConic 4s linear infinite;
}
.conic-border:hover::before { opacity: 1; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotateConic { to { --angle: 360deg; } }

/* ===== GLOW BUTTON ===== */
.glow-btn {
  position: relative;
  background: linear-gradient(135deg, #f97316, #ef4444);
  transition: box-shadow 0.3s, transform 0.2s;
}
.glow-btn:hover {
  box-shadow: 0 0 30px rgba(249,115,22,0.5), 0 0 60px rgba(249,115,22,0.25);
  transform: translateY(-2px);
}
.glow-btn:active { transform: translateY(0); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== DOT GRID PATTERN ===== */
.dot-grid {
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== WAVE SVG ===== */
.wave-divider { width: 100%; line-height: 0; overflow: hidden; display: none; }
@media(min-width:640px) { .wave-divider { display: block; } .wave-divider svg { width: 100%; height: 80px; } }

/* ===== FLOATING LOBSTER ===== */
.floating-lobster {
  position: fixed; bottom: 16px; right: 16px; font-size: 1.8rem; z-index: 50;
  animation: bobFloat 3s ease-in-out infinite;
  cursor: pointer; filter: drop-shadow(0 0 12px rgba(239,68,68,0.4));
  transition: transform 0.2s; opacity: 0.7;
}
@media(min-width:640px) { .floating-lobster { font-size: 2.5rem; bottom: 24px; right: 24px; opacity: 1; } }
.floating-lobster:hover { transform: scale(1.3); }
@keyframes bobFloat {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* ===== iMESSAGE MOCKUP ===== */
.imsg-bubble {
  padding: 10px 16px; border-radius: 18px; max-width: 80%; font-size: 0.9rem;
  line-height: 1.4; animation: fadeInUp 0.5s ease both;
}
.imsg-sent { background: #007AFF; color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.imsg-recv { background: rgba(255,255,255,0.1); color: #e2e8f0; margin-right: auto; border-bottom-left-radius: 4px; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ===== PRICING POPULAR GLOW ===== */
.popular-glow {
  box-shadow: 0 0 40px rgba(249,115,22,0.2), 0 0 80px rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.3);
}

.purple-glow {
  box-shadow: 0 0 40px rgba(168,85,247,0.2), 0 0 80px rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.3);
}

/* ===== SWARM ANIMATION ===== */
.swarm-container { position:absolute; inset:0; pointer-events:none; }
.swarm-node {
  position:absolute; left:var(--x); top:var(--y); font-size:1.2rem; opacity:0.25;
  animation: swarmFloat 6s ease-in-out var(--delay) infinite alternate, swarmPulse 3s ease-in-out var(--delay) infinite;
}
.swarm-lines { position:absolute; inset:0; width:100%; height:100%; opacity:0.6; }
@keyframes swarmFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8px,-12px) scale(1.1); }
  100% { transform: translate(-6px,10px) scale(0.95); }
}
@keyframes swarmPulse {
  0%,100% { opacity:0.2; filter:drop-shadow(0 0 2px rgba(249,115,22,0.3)); }
  50% { opacity:0.45; filter:drop-shadow(0 0 8px rgba(249,115,22,0.6)); }
}

/* ===== PARALLAX ===== */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.parallax-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, #0a0a0f, transparent);
  z-index: 1;
}
.parallax-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, #0a0a0f, transparent);
  z-index: 1;
}
.parallax-section > div { position: relative; z-index: 2; }

/* ===== 3D TILT ===== */
.tilt-card { transform-style: preserve-3d; transition: transform 0.1s ease-out; }

/* ===== HAMBURGER ===== */
.hamburger span {
  display: block; width: 24px; height: 2px; background: #e2e8f0;
  transition: all 0.3s; margin: 6px 0;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

.mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 400px; }

/* ===== COUNTER ===== */
.counter { font-variant-numeric: tabular-nums; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.5); }

/* ===== CITY PAGE SPECIFIC ===== */
.city-hero {
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(239,68,68,0.08));
}

/* FAQ Styles */
.faq-button {
  transition: all 0.3s ease;
}
.faq-button:hover {
  color: #f97316;
}
.faq-icon {
  transition: all 0.3s ease;
}
.faq-content {
  transition: all 0.3s ease;
}
.faq-content.hidden {
  display: none;
}