/* ============================================
   VEDU APK - Global Stylesheet
   Design: Clean tech, mobile-first, trust-forward
   ============================================ */

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

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #dcfce7;
  --green-xlight: #f0fdf4;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --orange: #ea580c;
  --orange-light: #fff7ed;
  --yellow: #d97706;
  --red: #dc2626;
  --text-head: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; }
h1,h2,h3,h4,h5 { color: var(--text-head); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--bg-white); }

/* ---- HEADER ---- */
.site-header { background: #0f172a; position: sticky; top: 0; z-index: 999; border-bottom: 1px solid #1e293b; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; max-width: var(--max-w); margin: 0 auto; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.logo-text { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.logo-text span { color: var(--green); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: #cbd5e1; font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s; white-space: nowrap; }
nav a:hover, nav a.active { color: #fff; }
.nav-dl-btn { background: var(--green); color: #fff !important; padding: .45rem 1rem; border-radius: 6px; font-weight: 600 !important; transition: background .2s !important; }
.nav-dl-btn:hover { background: var(--green-dark) !important; text-decoration: none !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a2f 100%); padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(22,163,74,.15); border: 1px solid rgba(22,163,74,.3); color: #4ade80; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: 20px; margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: #4ade80; }
.hero-desc { color: #94a3b8; font-size: 1.05rem; margin-bottom: 1.75rem; max-width: 520px; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--green); color: #fff; padding: .8rem 1.6rem; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .2s, transform .1s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-primary svg { width: 18px; height: 18px; fill: currentColor; }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: #fff; padding: .8rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid rgba(255,255,255,.25); transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.hero-stats { display: flex; gap: 1.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-stat { text-align: left; }
.hero-stat .num { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: .75rem; color: #64748b; margin-top: .1rem; }
.hero-app-card { background: #1e293b; border: 1px solid #334155; border-radius: 16px; padding: 1.5rem; width: 220px; flex-shrink: 0; }
.app-icon { width: 72px; height: 72px; background: var(--green); border-radius: 18px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.app-icon svg { width: 40px; height: 40px; fill: white; }
.hero-app-card h3 { color: #fff; text-align: center; font-size: .95rem; margin-bottom: .35rem; }
.app-version { text-align: center; font-size: .78rem; color: #4ade80; margin-bottom: .75rem; }
.app-meta { font-size: .78rem; color: #94a3b8; }
.app-meta div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid #334155; }
.app-meta div:last-child { border-bottom: none; }
.app-meta strong { color: #e2e8f0; }
.stars { color: #f59e0b; font-size: .85rem; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: .85rem 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.trust-item svg { width: 16px; height: 16px; }
.trust-item.green { color: var(--green); }

/* ---- DOWNLOAD BOX ---- */
.dl-box { background: var(--bg-white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.dl-box-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.dl-app-icon { width: 64px; height: 64px; background: var(--green); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-app-icon svg { width: 36px; height: 36px; fill: white; }
.dl-box-header h2 { font-size: 1.1rem; margin-bottom: .15rem; }
.dl-box-header p { font-size: .82rem; color: var(--text-muted); }
.dl-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.dl-info-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; text-align: center; }
.dl-info-item .val { font-size: .95rem; font-weight: 700; color: var(--text-head); }
.dl-info-item .key { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.dl-btn-wrap { margin-bottom: 1rem; }
.dl-btn-wrap .btn-primary { width: 100%; justify-content: center; font-size: 1.05rem; padding: .9rem; }
.dl-safety { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--green); justify-content: center; }
.dl-safety svg { width: 14px; height: 14px; }

/* ---- CARDS / FEATURES ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon.green { background: var(--green-light); }
.card-icon.blue { background: var(--blue-light); }
.card-icon.orange { background: var(--orange-light); }
.card-icon.yellow { background: #fef3c7; }
.card-icon svg { width: 22px; height: 22px; }
.card-icon.green svg { stroke: var(--green); fill: none; }
.card-icon.blue svg { stroke: var(--blue); fill: none; }
.card-icon.orange svg { stroke: var(--orange); fill: none; }
.card-icon.yellow svg { stroke: var(--yellow); fill: none; }
.card h3 { font-size: 1rem; margin-bottom: .5rem; }
.card p { font-size: .88rem; color: var(--text-muted); }

/* ---- STEPS ---- */
.steps-list { display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num { width: 36px; height: 36px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.step-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.step-body p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 1rem 1.25rem; text-align: left; font-size: .95rem; font-weight: 600; color: var(--text-head); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q svg { width: 18px; height: 18px; stroke: var(--text-muted); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; font-size: .88rem; color: var(--text-body); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead { background: #0f172a; }
thead th { color: #fff; font-weight: 600; padding: .75rem 1rem; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--green-xlight); }
tbody td { padding: .75rem 1rem; color: var(--text-body); }
.check { color: var(--green); font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }

/* ---- ALERT / NOTICE ---- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 4px solid; font-size: .88rem; }
.alert.green { background: var(--green-xlight); border-color: var(--green); color: #166534; }
.alert.orange { background: var(--orange-light); border-color: var(--orange); color: #9a3412; }
.alert.blue { background: var(--blue-light); border-color: var(--blue); color: #1e3a8a; }
.alert strong { display: block; margin-bottom: .25rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: .75rem 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 .35rem; }

/* ---- SECTION HEADER ---- */
.sec-head { margin-bottom: 2rem; }
.sec-head h2 { margin-bottom: .5rem; }
.sec-head p { color: var(--text-muted); font-size: 1rem; max-width: 520px; }
.sec-head.center { text-align: center; }
.sec-head.center p { margin: 0 auto; }
.tag { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .6rem; letter-spacing: .03em; }

/* ---- RATING ---- */
.rating-block { display: flex; align-items: center; gap: .6rem; }
.rating-stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: .05em; }
.rating-text { font-size: .82rem; color: var(--text-muted); }

/* ---- SIDEBAR LAYOUT ---- */
.content-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-box { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar-box h4 { font-size: .85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }
.sidebar-link { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-body); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--green); }
.sidebar-link svg { width: 14px; height: 14px; stroke: var(--text-muted); flex-shrink: 0; }

/* ---- FOOTER ---- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: #64748b; margin-top: .75rem; }
.footer-col h4 { color: #e2e8f0; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: #64748b; font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: #4ade80; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .8rem; }
.footer-bottom p { color: #475569; margin: 0; }
.footer-bottom a { color: #475569; }
.footer-bottom a:hover { color: #4ade80; }
.disclaimer { background: #1e293b; border-radius: 8px; padding: 1rem 1.25rem; font-size: .78rem; color: #64748b; margin-bottom: 1.5rem; line-height: 1.6; }

/* ---- MISC ---- */
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.fw-700 { font-weight: 700; }
.badge-green { display: inline-block; background: var(--green-light); color: var(--green-dark); font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; }
.badge-blue { display: inline-block; background: var(--blue-light); color: #1e40af; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; }
.badge-orange { display: inline-block; background: var(--orange-light); color: #9a3412; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green-light); }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; font-size: .95rem; }
.prose p { font-size: .95rem; }

/* ---- MOBILE NAV ---- */
.mobile-nav { display: none; background: #0f172a; border-top: 1px solid #1e293b; padding: 1rem 1.25rem; flex-direction: column; gap: .25rem; }
.mobile-nav a { color: #94a3b8; font-size: .95rem; padding: .6rem 0; border-bottom: 1px solid #1e293b; display: block; text-decoration: none; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: block; }
  .mobile-nav.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-app-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
@media (max-width: 600px) {
  .section { padding: 2.25rem 0; }
  .dl-info-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1rem; }
  .trust-inner { gap: 1rem; }
}
