/* ═══════════════════════════════════════════════════════════════
   KELTHOS — Premium Brand Stylesheet
   Glassmorphism · Animations · Responsive · Material 3
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --primary: #2196F3;
  --primary-dark: #0D47A1;
  --primary-light: #64B5F6;
  --accent: #00E5FF;
  --deep-navy: #1A2B4D;
  --dark-bg: #0A0E1A;
  --dark-surface: #111827;
  --dark-card: rgba(17, 25, 50, 0.6);
  --dark-border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.12);
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;
  --shadow-glow: 0 0 30px rgba(33, 150, 243, 0.15);
  --shadow-glow-lg: 0 0 60px rgba(33, 150, 243, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(33,150,243,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,229,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(33,150,243,0.05) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* Typography */
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p  { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── Navbar — Glass ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.navbar.scrolled { background: rgba(10,14,26,0.92); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.35rem; font-weight: 800; color: var(--white);
  text-decoration: none; letter-spacing: -0.02em;
}
.navbar-brand img { height: 36px; width: 36px; border-radius: 10px; }
.navbar-brand:hover { color: var(--primary); text-decoration: none; }
.navbar-links { display: flex; gap: 32px; align-items: center; }
.navbar-links a {
  color: var(--gray-400); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition-fast); position: relative;
}
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  border-radius: 2px; transition: width var(--transition-smooth);
}
.navbar-links a:hover { color: var(--white); text-decoration: none; }
.navbar-links a:hover::after { width: 100%; }

.navbar-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.navbar-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  padding: 160px 0 100px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(33,150,243,0.15) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite; pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero h1 { margin-bottom: 20px; position: relative; }
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero > .container > p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px; margin: 0 auto 40px; color: var(--gray-300);
}

/* ── Typing Cursor ── */
.typing-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--primary); margin-left: 4px; vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Buttons — Glow + Shine ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 32px; border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition-smooth); position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); box-shadow: 0 4px 20px rgba(33,150,243,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 40px rgba(33,150,243,0.5);
  color: var(--white); text-decoration: none;
}
.btn-outline {
  background: rgba(255,255,255,0.04); color: var(--primary);
  border: 1.5px solid rgba(33,150,243,0.3); backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(33,150,243,0.1); border-color: var(--primary);
  color: var(--white); text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(33,150,243,0.2);
}
.btn-sm { padding: 10px 24px; font-size: 0.875rem; }
.btn-lg { padding: 20px 44px; font-size: 1.125rem; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Glass Cards ── */
.card {
  background: var(--dark-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 32px; position: relative; overflow: hidden;
  transition: all var(--transition-smooth);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
  opacity: 0; transition: opacity var(--transition-smooth);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(33,150,243,0.2);
  box-shadow: var(--shadow-card), 0 0 40px rgba(33,150,243,0.08);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(33,150,243,0.15), rgba(0,229,255,0.08));
  border: 1px solid rgba(33,150,243,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 24px; color: var(--primary);
  transition: all var(--transition-smooth);
}
.card:hover .card-icon {
  box-shadow: 0 0 20px rgba(33,150,243,0.2);
  background: linear-gradient(135deg, rgba(33,150,243,0.25), rgba(0,229,255,0.15));
}
.card h3 { margin-bottom: 10px; color: var(--white); }
.card p { font-size: 0.9375rem; }

/* ── Grid ── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Sections ── */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 560px; margin: 16px auto 0; }
.section-alt { background: var(--glass-bg); }

/* ── Badge ── */
.badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(33,150,243,0.1); border: 1px solid rgba(33,150,243,0.2);
  color: var(--primary); border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── App Icon ── */
.app-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
}
.card:hover .app-icon { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }

/* ── Stats ── */
.stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.875rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* ── Scroll Animations ── */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.scale-in {
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

.grid .fade-in:nth-child(1) { transition-delay: 0s; }
.grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.grid .fade-in:nth-child(6) { transition-delay: 0.4s; }
.grid .fade-in:nth-child(7) { transition-delay: 0.48s; }
.grid .fade-in:nth-child(8) { transition-delay: 0.56s; }
.grid .fade-in:nth-child(9) { transition-delay: 0.64s; }
.grid .fade-in:nth-child(10) { transition-delay: 0.72s; }

/* ── Glow Divider ── */
.glow-divider {
  width: 80px; height: 3px; margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 3px;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 40px; border-top: 1px solid var(--dark-border);
  text-align: center; position: relative; z-index: 1;
}
.footer p { font-size: 0.875rem; color: var(--gray-600); }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-500); font-size: 0.875rem; font-weight: 500; }
.footer-links a:hover { color: var(--white); }

/* ── CTA Banner — Glass ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(33,150,243,0.15), rgba(0,229,255,0.08));
  border: 1px solid rgba(33,150,243,0.2); backdrop-filter: blur(20px);
  border-radius: var(--radius-xl); padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33,150,243,0.4), transparent);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--gray-300); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary {
  background: var(--white); color: var(--dark-bg);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.cta-banner .btn-primary:hover {
  background: var(--gray-100); box-shadow: 0 8px 40px rgba(255,255,255,0.25);
}

/* ── Legal ── */
.legal-content { padding: 100px 0 80px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 40px; }
.legal-content h2 { margin-top: 40px; margin-bottom: 16px; color: var(--white); }
.legal-content h3 { margin-top: 24px; margin-bottom: 12px; color: var(--gray-200); }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 12px 0 20px 24px; color: var(--gray-300); }
.legal-content li { margin-bottom: 8px; }
.legal-content .highlight-box {
  background: rgba(33,150,243,0.06); border-left: 3px solid var(--primary);
  padding: 20px 24px; margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0; backdrop-filter: blur(10px);
}
.legal-content .highlight-box p { margin-bottom: 0; }

/* ── App Landing ── */
.app-hero {
  padding: 120px 0 60px;
  display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap;
}
.app-hero-content { max-width: 480px; }
.app-hero-content h1 { margin-bottom: 12px; }
.app-hero-content p { font-size: 1.125rem; margin-bottom: 28px; }
.app-hero-visual { display: flex; justify-content: center; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--dark-border); color: var(--gray-200);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(16,185,129,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin-top: 2px;
}

.phone-frame {
  width: 280px; aspect-ratio: 9/19; background: var(--dark-surface);
  border: 3px solid var(--gray-600); border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .cta-banner { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 60px; }
  .section { padding: 64px 0; }
  .stats { gap: 32px; }
  .cta-banner { padding: 40px 24px; }
  .app-hero { gap: 32px; padding: 100px 0 40px; }

  .navbar-toggle { display: flex; }
  .navbar-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,14,26,0.95); backdrop-filter: blur(20px);
    padding: 24px; border-bottom: 1px solid var(--glass-border); gap: 20px;
  }
  .navbar-links.active { display: flex; }
  .navbar-links a { font-size: 1rem; }
  .navbar-links a::after { display: none; }
}

@media (max-width: 480px) {
  .container, .container-sm { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 48px; }
  .section { padding: 48px 0; }
  .stats { gap: 20px; }
  .stat-value { font-size: 2rem; }
  .btn { padding: 14px 28px; font-size: 0.9375rem; }
  .btn-lg { padding: 16px 32px; font-size: 1rem; }
  .btn-group { flex-direction: column; align-items: center; }
  .card { padding: 24px; }
  .navbar-inner { height: 64px; }
  .cta-banner { padding: 32px 20px; border-radius: var(--radius-lg); }
  .section-header { margin-bottom: 36px; }
  .footer-links { gap: 16px; flex-direction: column; align-items: center; }
  .app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .app-icon img { width: 40px; height: 40px; }
}
