/* ============================================================
   Public website styles (GeoEdu marketing site)
   ============================================================ */
:root {
    --w-primary: #6c5ce7;
    --w-primary-dark: #5a4bd4;
    --w-dark: #1b1340;
    --w-text: #2d2a45;
    --w-muted: #6f6c8a;
    --w-bg-soft: #f6f5ff;
    --w-border: #ece9ff;
    --w-radius: 16px;
    --w-shadow: 0 18px 40px rgba(108, 92, 231, 0.12);
}

* { box-sizing: border-box; }

body.web-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--w-text);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--w-primary); text-decoration: none; }
img { max-width: 100%; height: auto; }

.web-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Navbar ---------- */
.web-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w-border);
}
.web-navbar .web-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.web-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--w-dark); }
.web-brand img { height: 34px; }
.web-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.web-nav-links a { color: var(--w-text); font-weight: 500; font-size: .95rem; transition: color .2s; }
.web-nav-links a:hover, .web-nav-links a.active { color: var(--w-primary); }
.web-nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--w-dark); }

/* ---------- Buttons ---------- */
.web-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px; font-weight: 600;
    transition: transform .15s, box-shadow .2s; cursor: pointer; border: 0;
}
.web-btn-primary { background: var(--w-primary); color: #fff; box-shadow: 0 10px 22px rgba(108,92,231,.35); }
.web-btn-primary:hover { transform: translateY(-2px); color: #fff; }
.web-btn-outline { background: transparent; color: var(--w-primary); border: 2px solid var(--w-primary); }

/* ---------- Hero ---------- */
.web-hero {
    background: radial-gradient(1200px 500px at 80% -10%, #efeaff 0%, transparent 60%), var(--w-bg-soft);
    padding: 80px 0;
}
.web-hero .web-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.web-hero h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 18px; color: var(--w-dark); font-weight: 800; }
.web-hero p { font-size: 1.15rem; color: var(--w-muted); margin: 0 0 30px; }
.web-store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.web-store-badges img { height: 52px; transition: transform .15s; }
.web-store-badges a:hover img { transform: translateY(-3px); }
.web-hero-img { text-align: center; }
.web-hero-img img { max-height: 460px; filter: drop-shadow(0 30px 50px rgba(27,19,64,.2)); }

/* ---------- Section ---------- */
.web-section { padding: 80px 0; }
.web-section.alt { background: var(--w-bg-soft); }
.web-section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.web-section-head h2 { font-size: 2.2rem; color: var(--w-dark); margin: 0 0 14px; font-weight: 800; }
.web-section-head p { color: var(--w-muted); font-size: 1.05rem; margin: 0; }

/* ---------- Features ---------- */
.web-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.web-feature-card {
    background: #fff; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 32px 26px; transition: transform .2s, box-shadow .2s;
}
.web-feature-card:hover { transform: translateY(-6px); box-shadow: var(--w-shadow); }
.web-feature-icon {
    width: 58px; height: 58px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--w-primary), #a29bfe); color: #fff; font-size: 1.6rem; margin-bottom: 18px;
}
.web-feature-icon img { width: 30px; height: 30px; object-fit: contain; }
.web-feature-card h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--w-dark); }
.web-feature-card p { margin: 0; color: var(--w-muted); font-size: .96rem; }

/* ---------- Screenshots ---------- */
.web-shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.web-shot { border-radius: var(--w-radius); overflow: hidden; box-shadow: var(--w-shadow); background: #fff; }
.web-shot img { display: block; width: 100%; }

/* ---------- CTA ---------- */
.web-cta { background: linear-gradient(135deg, var(--w-primary), var(--w-dark)); color: #fff; text-align: center; padding: 70px 0; }
.web-cta h2 { font-size: 2rem; margin: 0 0 16px; }
.web-cta p { opacity: .9; margin: 0 0 28px; font-size: 1.1rem; }
.web-cta .web-btn-primary { background: #fff; color: var(--w-primary); }

/* ---------- Content pages (about / privacy / terms) ---------- */
.web-page-header { background: var(--w-bg-soft); padding: 60px 0; text-align: center; }
.web-page-header h1 { font-size: 2.4rem; color: var(--w-dark); margin: 0; font-weight: 800; }
.web-content { padding: 60px 0; }
.web-content .web-prose { max-width: 820px; margin: 0 auto; color: var(--w-text); }
.web-prose img { border-radius: 10px; }
.web-prose h1, .web-prose h2, .web-prose h3 { color: var(--w-dark); }

/* ---------- Contact ---------- */
.web-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.web-contact-card {
    background: #fff; border: 1px solid var(--w-border); border-radius: var(--w-radius);
    padding: 34px 26px; text-align: center;
}
.web-contact-card .web-feature-icon { margin: 0 auto 18px; }
.web-contact-card h3 { margin: 0 0 8px; color: var(--w-dark); }
.web-contact-card a, .web-contact-card p { color: var(--w-muted); margin: 0; word-break: break-word; }
.web-socials { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.web-socials a {
    width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--w-bg-soft); color: var(--w-primary); font-size: 1.2rem; transition: all .2s;
}
.web-socials a:hover { background: var(--w-primary); color: #fff; }

/* ---------- Footer ---------- */
.web-footer { background: var(--w-dark); color: #c9c4e8; padding: 50px 0 26px; }
.web-footer .web-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.web-footer .web-brand { color: #fff; }
.web-footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.web-footer-links a { color: #c9c4e8; font-size: .95rem; }
.web-footer-links a:hover { color: #fff; }
.web-footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 22px; font-size: .88rem; color: #8e88b8; }

.web-empty { text-align: center; color: var(--w-muted); padding: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .web-features-grid, .web-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .web-shots-grid { grid-template-columns: repeat(2, 1fr); }
    .web-hero .web-container { grid-template-columns: 1fr; text-align: center; }
    .web-hero-img { order: -1; }
    .web-store-badges { justify-content: center; }
}
@media (max-width: 768px) {
    .web-nav-toggle { display: block; }
    .web-nav-links {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid var(--w-border); display: none;
    }
    .web-nav-links.open { display: flex; }
    .web-nav-links li { width: 100%; border-top: 1px solid var(--w-border); }
    .web-nav-links a { display: block; padding: 14px 20px; }
    .web-hero h1 { font-size: 2.2rem; }
    .web-features-grid, .web-contact-grid, .web-shots-grid { grid-template-columns: 1fr; }
    .web-footer .web-container { flex-direction: column; text-align: center; align-items: center; }
}
