/**
 * TinyLittleAnts.ai - Landing Page Styles
 * Showcases Echo, Guardian AI, and Phone Order AI
 */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a1a;
  color: #e0e0f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Gradient Background --- */
.gradient-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.gradient-bg::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

/* --- Navigation --- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1rem 2rem;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text span { color: #818cf8; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.85rem; font-weight: 500; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
}
.hero-inner-full {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: #a5b4fc;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem; color: rgba(224,224,240,0.7);
  margin-bottom: 2rem; max-width: 480px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; padding: 0.875rem 2rem; border-radius: 12px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e0e0f0; padding: 0.875rem 2rem; border-radius: 12px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* --- Phone Stack --- */
.hero-phones {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.phone-stack {
  position: relative; width: 320px; height: 550px;
}
.phone-mockup {
  width: 220px; height: 450px;
  background: #1a1a2e;
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: absolute;
  transition: transform 0.4s ease;
}
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }
.phone-back { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; opacity: 0.7; }
.phone-mid { top: 20px; left: 50px; transform: rotate(4deg); z-index: 2; opacity: 0.85; }
.phone-front { top: 40px; left: 25px; transform: rotate(0deg); z-index: 3; }
.phone-glow {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; filter: blur(80px); opacity: 0.3;
  background: radial-gradient(circle, #6366f1, transparent);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
}

/* --- Sections --- */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800; margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.1rem; color: rgba(224,224,240,0.6);
  max-width: 600px; margin: 0 auto;
}

/* --- Apps Grid --- */
.apps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.app-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 2.5rem 2rem;
  text-align: center; transition: all 0.3s;
  display: block;
}
.app-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-6px);
  border-color: var(--accent, rgba(99,102,241,0.3));
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.app-card-icon { font-size: 3rem; margin-bottom: 1rem; }
.app-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.app-card-tagline {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent, #818cf8); margin-bottom: 1rem;
}
.app-card-desc {
  font-size: 0.9rem; color: rgba(224,224,240,0.6);
  line-height: 1.6; margin-bottom: 1.5rem;
}
.app-card-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent, #818cf8);
}

/* --- App Detail Sections --- */
.app-detail-section { padding: 5rem 2rem; }
.alt-bg { background: rgba(255,255,255,0.02); }
.app-detail-header { text-align: center; margin-bottom: 3rem; }
.app-detail-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.app-detail-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
}
.app-detail-header p {
  font-size: 1.05rem; color: rgba(224,224,240,0.6);
  max-width: 700px; margin: 0 auto; line-height: 1.7;
}
.app-detail-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-bottom: 3rem;
}

/* --- Feature Cards --- */
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 1.75rem;
  transition: all 0.3s;
}
.feature-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.2);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: rgba(224,224,240,0.6); line-height: 1.5; }

/* --- Screenshots --- */
.screenshots-scroll {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; padding: 1rem 0;
}
.screenshot-item {
  width: 200px; flex-shrink: 0;
  border-radius: 20px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.screenshot-item:hover { transform: translateY(-6px) scale(1.02); }
.screenshot-item img { width: 100%; height: auto; }
.screenshot-label {
  text-align: center; padding: 0.6rem;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(255,255,255,0.03);
  color: rgba(224,224,240,0.7);
}

/* --- CTA / About --- */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.2);
}
.cta-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
}
.cta-inner p {
  font-size: 1.05rem; color: rgba(224,224,240,0.6);
  margin-bottom: 1.5rem; line-height: 1.7;
}
.tech-badges {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.5rem;
}
.tech-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(224,224,240,0.7);
}

/* --- Footer --- */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.85rem; color: rgba(224,224,240,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: #818cf8; }
.footer-copy {
  font-size: 0.8rem; color: rgba(224,224,240,0.3);
  width: 100%; text-align: center; margin-top: 1.5rem;
}

/* --- 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) {
  .hero-inner-full { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-phones { margin-top: 2rem; }
  .apps-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .app-detail-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .phone-stack { width: 260px; height: 450px; }
  .phone-mockup { width: 180px; height: 370px; border-radius: 24px; }
  .phone-back { left: -10px; }
  .phone-mid { left: 40px; }
  .phone-front { left: 15px; }
  .app-detail-features { grid-template-columns: 1fr; }
  .screenshots-scroll { gap: 1rem; }
  .screenshot-item { width: 160px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

