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

:root {
    --accent: #2a9d8f;
    --accent-light: #5dd4c8;
    --accent-dark: #1f7a6f;
    --bg: #f8fafb;
    --bg-dark: #1a2332;
    --bg-card: #ffffff;
    --text: #1a2332;
    --text-light: #5a6a7a;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
}

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

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

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

/* Header */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(248,250,251,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }

.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--accent); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

.nav-links {
    display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
    text-decoration: none; color: var(--text-light); font-size: 0.9rem;
    font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    background: var(--accent) !important; color: var(--text-inverse) !important;
    padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* Hero */
.hero {
    padding: 120px 24px 60px; text-align: center;
    max-width: 1120px; margin: 0 auto;
}
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 999px;
    background: #f0ebe0; color: #6b5b3e; font-size: 0.85rem; font-weight: 500;
    margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.text-accent { color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 40px; }

/* Phone Mockup */
.hero-phone { display: flex; justify-content: center; margin-bottom: 40px; }
.phone-frame {
    width: 280px; background: var(--bg-dark); border-radius: 40px;
    padding: 12px; position: relative;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #2d3a4a;
}
.phone-notch {
    width: 100px; height: 24px; background: var(--bg-dark);
    border-radius: 0 0 16px 16px; position: absolute;
    top: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.phone-screen {
    background: linear-gradient(145deg, #1e2d3d, #15202d);
    border-radius: 30px; padding: 48px 20px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.phone-exam-label {
    background: rgba(42,157,143,0.15); color: var(--accent-light);
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em;
    padding: 8px 16px; border-radius: 999px; text-transform: uppercase;
}

/* Countdown Circle */
.countdown-circle { position: relative; width: 140px; height: 140px; }
.countdown-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: #2d3a4a; stroke-width: 8; }
.circle-progress {
    fill: none; stroke: var(--accent-light); stroke-width: 8;
    stroke-linecap: round; stroke-dasharray: 565.48; stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease;
}
.countdown-days {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: var(--text-inverse);
}
.countdown-days span:first-child { display: block; font-size: 2.5rem; font-weight: 800; }
.countdown-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; color: var(--accent-light); }

/* Timer */
.countdown-timer { display: flex; align-items: center; gap: 8px; }
.timer-block {
    background: rgba(255,255,255,0.08); border-radius: 10px;
    padding: 10px 16px; text-align: center; min-width: 56px;
}
.timer-block span:first-child { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text-inverse); }
.timer-label { font-size: 0.55rem; color: var(--accent-light); font-weight: 600; letter-spacing: 0.1em; }
.timer-sep { color: var(--accent-light); font-weight: 700; font-size: 1.2rem; }
.phone-motivate { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-align: center; }

/* Buttons */
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--text-inverse); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,157,143,0.3); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* Sections */
.section { padding: 80px 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-desc { text-align: center; color: var(--text-light); max-width: 560px; margin: 0 auto 48px; font-size: 1rem; }

/* Features */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* Calendar */
.calendar { background: var(--bg-dark); color: var(--text-inverse); }
.calendar h2, .calendar .section-desc { color: var(--text-inverse); }
.calendar .section-desc { opacity: 0.7; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.calendar-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 32px; text-align: center;
    transition: transform 0.2s, background 0.2s;
}
.calendar-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.calendar-date { font-size: 1.3rem; font-weight: 700; color: var(--accent-light); margin-bottom: 8px; }
.calendar-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.calendar-detail { font-size: 0.85rem; opacity: 0.6; }

/* Stats */
.stats { background: var(--bg); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* Subjects */
.subjects { background: var(--bg); }
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.subject-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.subject-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.subject-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.subject-card li {
    font-size: 0.88rem; color: var(--text-light); padding-left: 20px;
    position: relative;
}
.subject-card li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* CTA */
.cta { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: var(--text-inverse); text-align: center; }
.cta h2 { color: var(--text-inverse); }
.cta .section-desc { color: rgba(255,255,255,0.85); }
.cta .btn-primary { background: var(--text-inverse); color: var(--accent-dark); }
.cta .btn-primary:hover { background: #f0f0f0; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; background: none; border: none; cursor: pointer;
    font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left;
    font-family: inherit;
}
.faq-question:hover { color: var(--accent); }
.faq-toggle { font-size: 1.3rem; color: var(--accent); transition: transform 0.3s; font-weight: 400; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 18px; color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* Footer */
.footer { background: var(--bg-dark); color: var(--text-inverse); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; opacity: 0.6; line-height: 1.7; }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.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; opacity: 0.5;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.7); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none; position: fixed; top: 64px; left: 0; right: 0;
        background: var(--bg); flex-direction: column; padding: 24px;
        gap: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .hero { padding: 100px 20px 40px; }
    .hero h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .phone-frame { width: 240px; }
}
