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

:root {
  --bg-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08); /* slight tweak for visibility */
  --card-hover: rgba(0, 0, 0, 0.02);
  --gradient-main: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  overflow-x: hidden !important;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
}

/* Background effects */
.bg-glow {
  position: absolute;
  width: 100vw;
  max-width: 600px;
  height: 600px;
  background: var(--accent-blue);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.08;
  z-index: -1;
  top: -10%;
  left: 0;
  pointer-events: none;
}
.bg-glow-2 {
  position: absolute;
  width: 100vw;
  max-width: 500px;
  height: 500px;
  background: var(--accent-purple);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.08;
  z-index: -1;
  top: 40%;
  right: 0;
  pointer-events: none;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-blue);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--accent-blue);
}

.primary-btn {
  background: var(--gradient-main);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  filter: brightness(1.1);
}

.primary-btn.outline-btn {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  box-shadow: none;
}

.primary-btn.outline-btn:hover {
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.stat-item .stars {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  z-index: 10;
}

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

/* Virtual App Section */
.virtual-app-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.device-container {
  position: relative;
  max-width: 680px; /* Landscape phone size */
  margin: 0 auto;
}

.popup-link {
  position: absolute;
  top: -50px;
  right: 0;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  z-index: 15;
}

.popup-link:hover {
  transform: translateY(-2px);
  color: var(--accent-blue);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.device-frame {
  background: #1e293b; /* Dark device body for phone */
  border: 4px solid #475569; /* Phone outer rim */
  border-radius: 32px;
  padding: 8px; /* Phone bezel thickness */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), inset 0 0 0 1px #000;
  width: 100%;
  position: relative;
}

.device-frame.landscape {
  aspect-ratio: 18.5 / 9; /* Typical Android phone landscape */
}

/* Simulated front camera */
.device-frame::before {
  content: '';
  position: absolute;
  left: 16px; /* Camera on the side */
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
  z-index: 5;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px; /* Inner screen corner radius */
  overflow: hidden;
  background: #fff;
  border: 2px solid #000;
}

.device-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Pills (Courses and Languages) */
.lists-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.list-block h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: default;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.pill:hover {
  background: #eff6ff;
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.3);
  transform: scale(1.05);
}

/* Download Page Specific */
.download-section {
  padding: 6rem 0;
  text-align: center;
  min-height: calc(100vh - 200px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 4rem auto 0;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.platform-card:hover {
  transform: translateY(-10px);
  background: var(--card-hover);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
}

.platform-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--text-primary);
}

.platform-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.platform-card .primary-btn {
  width: 100%;
  text-align: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 0;
  }
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid, .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lists-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1rem 1.25rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
  }
  .nav-links.show {
    display: flex;
  }
  .container {
    padding: 0 1.25rem;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .features-grid, .download-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .stat-item h3 {
    font-size: 1.75rem;
  }
  .device-frame.landscape {
    border-width: 6px;
    border-radius: 16px;
    padding: 4px;
  }
  .device-frame::before {
    width: 6px;
    height: 6px;
    left: 8px;
  }
}
