/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-light: #2d5f8e;
  --accent: #4b7be5;
  --accent-hover: #3a6fd4;
  --text: #1e2d3d;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }

/* ========== BADGE ========== */
.badge {
  display: inline-block;
  background: rgba(75,123,229,.12);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}
.badge-alt {
  background: rgba(26,58,92,.08);
  color: var(--primary);
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}
.nav-logo img { width: 52px; height: 52px; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::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.03'%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");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-text { padding-bottom: 60px; }
.hero-text .badge { margin-bottom: 20px; }
.hero-text h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.highlight { color: #7eb3ff; }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}
.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.stat-item span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Phone mockups */
.hero-phones {
  position: relative;
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.phone-mockup {
  position: absolute;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,.15);
}
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }
.phone-back {
  width: 220px;
  height: 440px;
  right: 20px;
  bottom: 0;
  transform: rotate(6deg);
  opacity: .85;
}
.phone-front {
  width: 240px;
  height: 480px;
  left: 20px;
  bottom: 0;
  transform: rotate(-3deg);
  z-index: 2;
}
.hero-wave {
  position: relative;
  margin-top: -2px;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .badge { margin-bottom: 16px; }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* ========== FEATURES ========== */
.features {
  padding: 96px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-blue   { background: rgba(75,123,229,.12); color: #4b7be5; }
.icon-purple { background: rgba(155,89,182,.12); color: #9b59b6; }
.icon-orange { background: rgba(230,126,34,.12);  color: #e67e22; }
.icon-green  { background: rgba(39,174,96,.12);   color: #27ae60; }
.icon-teal   { background: rgba(26,188,156,.12);  color: #1abc9c; }
.icon-pink   { background: rgba(231,76,60,.12);   color: #e74c3c; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ========== SUBJECTS ========== */
.subjects {
  padding: 0 0 96px;
  background: var(--bg);
}
.subjects-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.subject-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: transform .2s;
}
.subject-card:hover { transform: translateX(4px); }
.subject-icon { font-size: 32px; }
.subject-info { flex: 1; }
.subject-info h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.subject-info p  { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.subject-bar {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.subject-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ========== SCREENSHOTS CAROUSEL ========== */
.screenshots {
  padding: 96px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, #dde6f5 100%);
}

.sc-carousel {
  position: relative;
  user-select: none;
}

/* Clips the overflow */
.sc-track-outer {
  overflow: hidden;
  border-radius: 16px;
}

/* Track: flex row, gap 20px, 3 cards visible */
.sc-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  cursor: grab;
  will-change: transform;
}
.sc-track:active { cursor: grabbing; }

/* Each card: fixed width so exactly 3 fit */
.sc-item {
  flex: 0 0 calc((100% - 40px) / 3);  /* (100% - 2×gap) / 3 */
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s;
}
.sc-item:hover { box-shadow: var(--shadow-lg); }

/* Phone image — full width, natural height */
.sc-phone {
  width: 100%;
  overflow: hidden;
  background: #0f1b2d;
  flex-shrink: 0;
}
.sc-phone img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.sc-item:hover .sc-phone img { transform: scale(1.03); }

/* Label strip at bottom */
.sc-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sc-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent);
  text-transform: uppercase;
}
.sc-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Arrows */
.sc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: background .2s, transform .2s;
}
.sc-arrow:hover { background: var(--accent); color: #fff; transform: translateY(-60%) scale(1.08); }
.sc-prev { left: -20px; }
.sc-next { right: -20px; }

/* Dots */
.sc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width .3s, background .3s;
}
.sc-dot.active { width: 28px; background: var(--accent); }

/* Responsive: 2 cards on tablet */
@media (max-width: 860px) {
  .sc-item { flex: 0 0 calc((100% - 20px) / 2); }
  .sc-prev { left: -12px; }
  .sc-next { right: -12px; }
}
/* 1 card on mobile */
@media (max-width: 540px) {
  .sc-item { flex: 0 0 100%; }
  .sc-arrow { display: none; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 32, .92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  animation: lbFadeIn .25s ease;
}
.lightbox.open { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbSlideUp .3s cubic-bezier(.4, 0, .2, 1);
}
@keyframes lbSlideUp {
  from { transform: scale(.88) translateY(24px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

.lightbox-img-wrap img {
  max-height: 80vh;
  max-width: min(340px, 88vw);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  border: 3px solid rgba(255,255,255,.12);
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 1001;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
}

.lightbox-dots {
  display: flex;
  gap: 8px;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  transition: width .3s, background .3s;
}
.lb-dot.active {
  width: 22px;
  background: #fff;
}

@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ========== DOWNLOAD CTA ========== */
.download {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d7b 100%);
  padding: 96px 0;
  text-align: center;
  color: #fff;
}
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.download-logo { width: 80px; height: 80px; object-fit: contain; }
.download h2 { font-size: 36px; font-weight: 800; }
.download p { font-size: 17px; color: rgba(255,255,255,.75); }
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.store-btn:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.store-btn div { text-align: left; }
.store-btn small { display: block; font-size: 11px; opacity: .75; }
.store-btn strong { font-size: 16px; font-weight: 700; }

/* ========== FOOTER ========== */
.footer {
  background: #0f2236;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }

/* ========== INNER PAGES ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 64px 0 48px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.7); }
.page-content {
  max-width: 800px;
  margin: 60px auto 80px;
  padding: 0 24px;
}
.page-content h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin: 36px 0 12px; }
.page-content h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin: 24px 0 8px; }
.page-content p  { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.page-content ul { padding-left: 24px; margin-bottom: 12px; }
.page-content ul li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.page-content a { color: var(--accent); }

/* Delete account form */
.delete-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.delete-form .warning-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warning-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.warning-box p { color: #c53030; font-size: 14px; line-height: 1.6; margin: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-danger {
  background: #e53e3e;
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.btn-danger:hover { background: #c53030; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.alert-success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #fed7d7; color: #9b2c2c; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { height: 300px; }
  .phone-back { width: 160px; height: 320px; right: 0; }
  .phone-front { width: 175px; height: 350px; left: 0; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-phones { display: none; }
  .hero-text { padding-bottom: 48px; }
  .hero-stats { gap: 20px; }
  .download h2 { font-size: 26px; }
  .delete-form { padding: 24px 20px; }
}
