/* ============================================
   leARn Website — Global Styles
   Colors from logo: orange, blue, green, purple
   ============================================ */

:root {
  --orange: #FF7B00;
  --orange-light: #FFA040;
  --orange-dark: #E06800;
  --blue: #4A90D9;
  --blue-light: #6BB0F0;
  --blue-dark: #3570B0;
  --green: #7CB342;
  --green-light: #9CCF60;
  --purple: #7B2D8E;
  --purple-light: #9B4DAE;
  --red: #E53935;
  --white: #FFFFFF;
  --off-white: #FFF9F2;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-600: #757575;
  --gray-800: #424242;
  --gray-900: #212121;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
}
.navbar-logo img {
  height: 40px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.navbar-links a:hover { color: var(--orange); }
.navbar-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 123, 0, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 123, 0, 0.4);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--gray-800);
  border-radius: 3px;
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, var(--off-white) 0%, #FFF0E0 50%, #E8F0FE 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,123,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74,144,217,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-content {
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255,123,0,0.1);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.store-btn svg { width: 28px; height: 28px; }
.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-btn-text small {
  font-size: 0.7rem;
  opacity: 0.8;
}
.store-btn-text strong {
  font-size: 1rem;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-phone {
  width: 300px;
  height: 600px;
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}
.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  animation: float 3s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  top: 60px;
  right: -30px;
  animation-delay: 0s;
}
.floating-card:nth-child(3) {
  bottom: 100px;
  left: -40px;
  animation-delay: 1.5s;
}
.floating-card:nth-child(4) {
  bottom: 40px;
  right: -20px;
  animation-delay: 0.7s;
}
.floating-card .emoji {
  font-size: 1.5rem;
}

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

/* ---- STATS BAR ---- */
.stats-bar {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ---- SECTIONS (generic) ---- */
section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header .tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,123,0,0.1);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* ---- FEATURES ---- */
#features {
  background: var(--gray-50);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.feature-icon.orange { background: rgba(255,123,0,0.1); }
.feature-icon.blue { background: rgba(74,144,217,0.1); }
.feature-icon.green { background: rgba(124,179,66,0.1); }
.feature-icon.purple { background: rgba(123,45,142,0.1); }
.feature-icon.red { background: rgba(229,57,53,0.1); }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---- LANGUAGES ---- */
#languages {
  background: var(--white);
}
.languages-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.lang-row {
  display: flex;
  align-items: center;
  gap: 48px;
}
.lang-row.reverse { flex-direction: row-reverse; }
.lang-info { flex: 1; }
.lang-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.lang-info p {
  color: var(--gray-600);
  margin-bottom: 20px;
}
.lang-flags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lang-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}
.lang-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.lang-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.lang-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lang-circle.orange-bg {
  box-shadow: 0 12px 40px rgba(255,123,0,0.25);
}
.lang-circle.blue-bg {
  box-shadow: 0 12px 40px rgba(74,144,217,0.25);
}

/* ---- AR SECTION ---- */
#ar-experience {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#ar-experience::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,123,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
#ar-experience .section-header h2 { color: var(--white); }
#ar-experience .section-header p { color: rgba(255,255,255,0.7); }
#ar-experience .tag { background: rgba(255,123,0,0.2); }

.ar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ar-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.ar-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.ar-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.ar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.ar-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ---- SAFETY ---- */
#safety {
  background: var(--gray-50);
}
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.safety-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
}
.safety-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: rgba(124,179,66,0.1);
}
.safety-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.safety-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ---- PRICING ---- */
#pricing {
  background: var(--white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card.popular {
  border-color: var(--orange);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular::before {
  content: 'Best Value';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
}
.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.pricing-card .period {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.pricing-card .divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-card ul li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* ---- CTA ---- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-buttons .store-btn {
  background: var(--white);
  color: var(--gray-900);
}
.cta-buttons .store-btn:hover {
  color: var(--gray-900);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  height: 50px;
  margin-bottom: 12px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--orange); }

/* ---- LEGAL PAGE ---- */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}
.legal-page .container {
  max-width: 800px;
}
.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-page p {
  margin-bottom: 14px;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.legal-page ul, .legal-page ol {
  margin: 12px 0 16px 24px;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.legal-page li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-page strong {
  color: var(--gray-900);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ar-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.popular { transform: scale(1); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .hamburger { display: flex; }
  .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); }

  .hero { padding: 110px 0 70px; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { margin-top: 32px; }
  .hero-phone { width: 220px; height: 440px; border-radius: 28px; }
  .hero-phone img { border-radius: 28px; }
  .floating-card { display: none; }
  .lang-circle { width: 200px; height: 200px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .ar-grid { grid-template-columns: 1fr; }
  .lang-row, .lang-row.reverse { flex-direction: column; text-align: center; }
  .lang-flags { justify-content: center; }
  .safety-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .section-header h2 { font-size: 1.8rem; }
  .cta-section h2 { font-size: 1.8rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .stat-item h3 { font-size: 2rem; }
  .hero-phone { width: 180px; height: 360px; border-radius: 24px; }
  .hero-phone img { border-radius: 24px; }
  .lang-circle { width: 160px; height: 160px; }
  .store-btn { width: 100%; justify-content: center; }
}
