/* ================================================
   Viecolm — Where Everyone Learns
   Main Stylesheet
   ================================================ */

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

:root {
  --navy: #0D1B4C;
  --blue: #1976D2;
  --cyan: #00B0FF;
  --gold: #F9A825;
  --white: #FFFFFF;
  --surface: #F4F6FA;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(13,27,76,0.08);
  --shadow-lg: 0 8px 32px rgba(13,27,76,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

.sinhala {
  font-family: 'Noto Sans Sinhala', sans-serif;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover { background: #F57F17; transform: translateY(-1px); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover { background: #1a2d6b; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover { background: #1565C0; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d6b 60%, #1565C0 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0,176,255,0.08);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(249,168,37,0.06);
}

.hero-badge {
  display: inline-block;
  background: rgba(0,176,255,0.2);
  color: var(--cyan);
  border: 1px solid rgba(0,176,255,0.3);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-sinhala {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: 22px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline .sinhala-tag {
  font-family: 'Noto Sans Sinhala', sans-serif;
  color: var(--gold);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: rgba(25,118,210,0.1);
  color: var(--blue);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ── HOW IT WORKS ── */
.how-it-works { background: var(--surface); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── IQ APP SHOWCASE ── */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.app-mockup {
  background: linear-gradient(135deg, var(--navy), #1565C0);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  color: white;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.app-mockup-icon { font-size: 64px; margin-bottom: 16px; }
.app-mockup h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.app-mockup p { font-size: 14px; opacity: 0.8; }

.app-features { list-style: none; }

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}

.app-features li:last-child { border-bottom: none; }

.feature-check {
  width: 22px;
  height: 22px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.app-price-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-free {
  font-size: 14px;
  color: var(--muted);
}

.price-premium {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.price-label {
  font-size: 12px;
  color: var(--muted);
}

/* ── REGISTRATION ── */
.register-section { background: var(--surface); }

.register-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

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

.resource-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.resource-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.resource-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.resource-coming {
  display: inline-block;
  background: rgba(25,118,210,0.1);
  color: var(--blue);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* ── ARTICLES ── */
.articles-section { background: var(--surface); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-body { padding: 20px; }

.article-tag {
  display: inline-block;
  background: rgba(25,118,210,0.1);
  color: var(--blue);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.article-coming {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--surface); }

.faq-question.active { background: var(--navy); color: var(--white); }

.faq-icon { font-size: 18px; transition: transform 0.3s; }
.faq-question.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  background: var(--surface);
}

.faq-answer.show { display: block; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), #1565C0);
  color: var(--white);
  text-align: center;
  padding: 72px 20px;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-banner p {
  font-size: 17px;
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta-banner .sinhala {
  color: var(--gold);
  font-size: 18px;
  display: block;
  margin-bottom: 24px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: 13px;
  color: var(--gold);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

.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: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ── SUCCESS MESSAGE ── */
.success-msg {
  display: none;
  background: #E8F5E9;
  border: 1px solid #2D7A3A;
  border-radius: var(--radius);
  padding: 16px;
  color: #1B5E20;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero-sinhala { font-size: 17px; }
  .hero-tagline { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 24px; }

  .steps-grid { grid-template-columns: 1fr; }
  .app-showcase { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 48px 0; }
  .section-header h2 { font-size: 26px; }
  .register-card { padding: 28px 20px; }
  .cta-banner h2 { font-size: 26px; }
}
