/* ===== LANDING PAGE CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --orange: #FF6B35;
  --amber: #FF9F1C;
  --purple: #6C63FF;
  --teal: #3ECFCF;
  --dark: #080B14;
  --dark2: #0E1221;
  --dark3: #151A2E;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #E8EAF0;
  --text-muted: #8B92A8;
  --glow-orange: rgba(255,107,53,0.3);
  --glow-purple: rgba(108,99,255,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  animation: logoSpin 20s linear infinite;
}

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: 'Noto Sans Tamil', 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(62,207,207,0.1);
  border: 1px solid rgba(62,207,207,0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62,207,207,0.2); }
  50% { box-shadow: 0 0 20px 4px rgba(62,207,207,0.1); }
}

/* Title */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: white;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--amber), var(--purple), var(--teal));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

/* Portal Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

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

/* Portal Card */
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--dark3);
  border: 1px solid var(--border);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
}

.portal-glow {
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portal-card:hover .portal-glow { opacity: 1; }
.restaurant-glow { background: var(--glow-orange); }
.cafe-glow { background: var(--glow-purple); }

.portal-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

.portal-restaurant .portal-icon { animation-delay: 0s; }
.portal-cafe .portal-icon { animation-delay: 1.5s; }

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

.portal-content { flex: 1; text-align: left; }

.portal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.portal-restaurant .portal-title { color: var(--orange); }
.portal-cafe .portal-title { color: var(--purple); }

.portal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.portal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-features li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-features li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.portal-restaurant .portal-features li::before { background: var(--orange); }
.portal-cafe .portal-features li::before { background: var(--purple); }

.portal-arrow {
  position: absolute;
  top: 32px; right: 32px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.portal-card:hover .portal-arrow {
  transform: translateX(4px);
  color: white;
}

.portal-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.module-tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-restaurant .module-tag {
  background: rgba(255,107,53,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,107,53,0.25);
}

.portal-cafe .module-tag {
  background: rgba(108,99,255,0.15);
  color: var(--purple);
  border: 1px solid rgba(108,99,255,0.25);
}

/* Stats Bar */
.stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 20px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
