/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f7f8f5; --surface: #ffffff; --ink: #0e1a1a; --muted: #5a6b68;
    --primary: #0d5c4a; --primary-2: #0a8a6a; --accent: #d4a24c;
    --line: #e5e9e3; --radius: 18px; --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(13,92,74,.06);
    --shadow-md: 0 14px 40px rgba(13,92,74,.10);
    --shadow-lg: 0 30px 80px rgba(13,92,74,.16);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --serif: 'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ============ NAVBAR ============ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: all .3s ease; }
.navbar.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; display: grid; place-items: center;
    font-family: var(--serif); font-size: 24px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(13,92,74,.30);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 700; font-size: 17px; letter-spacing: -.3px; }
.logo-title b { color: var(--primary); }
.logo-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 16px; border-radius: 100px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: all .2s ease; white-space: nowrap; }
.nav-links a:hover { background: rgba(13,92,74,.07); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(13,92,74,.28); }
.nav-cta:hover { background: var(--primary-2) !important; transform: translateY(-1px); }

/* E-Learning & Absensi (link eksternal) */
.nav-links a.nav-ext { font-weight: 600; color: var(--primary); position: relative; }
.nav-links a.nav-ext::after { content: "↗"; font-size: 11px; margin-left: 3px; opacity: .6; }
.nav-links a.nav-ext:hover { background: rgba(13,92,74,.10); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; background: rgba(13,92,74,.08); }
.nav-toggle span { width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 140px 0 90px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 85% 15%, rgba(212,162,76,.16) 0%, transparent 60%),
        radial-gradient(50% 50% at 10% 90%, rgba(10,138,106,.12) 0%, transparent 65%),
        linear-gradient(180deg, #f7f8f5 0%, #eef3ef 100%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(13,92,74,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.8); border: 1px solid var(--line);
    padding: 8px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--primary);
    box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 0 4px rgba(10,138,106,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(10,138,106,.05); } }

.hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -1.2px; font-weight: 600; margin-bottom: 20px; }
.grad { background: linear-gradient(120deg, var(--primary), var(--primary-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 15px; transition: all .25s ease; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 12px 28px rgba(13,92,74,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(13,92,74,.35); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.full { width: 100%; justify-content: center; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 620px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--primary); font-weight: 700; line-height: 1; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; height: 520px; }
.blob { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--accent) 120%); border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; animation: morph 12s ease-in-out infinite; box-shadow: var(--shadow-lg); }
@keyframes morph { 0%, 100% { border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%; } 50% { border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; } }
.blob::after { content: ""; position: absolute; inset: 12%; border: 2px dashed rgba(255,255,255,.35); border-radius: inherit; }

.card-float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-md); min-width: 200px; animation: float 6s ease-in-out infinite; }
.card-float .ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #e8f6f0, #d5ede2); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.card-float strong { display: block; font-size: 14px; color: var(--ink); }
.card-float span { font-size: 12px; color: var(--muted); }
.card-1 { top: 12%; left: -8%; }
.card-2 { top: 45%; right: -10%; animation-delay: 1.5s; }
.card-3 { bottom: 10%; left: 5%; animation-delay: 3s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ============ SECTION ============ */
.section { padding: 100px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #ffffff 0%, #f3f6f2 100%); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-2); margin-bottom: 14px; padding: 6px 14px; background: rgba(10,138,106,.08); border-radius: 100px; }
.eyebrow.light { color: var(--accent); background: rgba(212,162,76,.15); }
.section-head h2, .about-content h2, .cta-left h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.8px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-img { position: relative; aspect-ratio: 1; border-radius: 30px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; padding: 40px; box-shadow: var(--shadow-lg); overflow: hidden; }
.about-img::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 20px 20px; }
.about-frame { position: absolute; inset: -18px; border: 2px solid var(--accent); border-radius: 36px; transform: rotate(3deg); opacity: .5; }
.about-inner { position: relative; z-index: 1; color: #fff; text-align: center; }
.about-quote { display: block; font-family: var(--serif); font-size: 90px; line-height: .5; color: var(--accent); margin-bottom: 20px; }
.about-inner p { font-family: var(--serif); font-size: 22px; line-height: 1.4; font-style: italic; }
.about-content p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.about-content b { color: var(--primary); }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; }
.about-points div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.about-points span { width: 24px; height: 24px; border-radius: 50%; background: rgba(10,138,106,.12); color: var(--primary-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ============ PROGRAM ============ */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.program-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px; transition: all .3s ease; position: relative; overflow: hidden; }
.program-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-card:hover::before { transform: scaleX(1); }
.program-icon { font-size: 34px; margin-bottom: 14px; }
.program-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-2); background: rgba(10,138,106,.08); padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.program-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.program-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.program-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); transition: gap .2s; }
.program-link:hover { gap: 10px; }

/* ============ FEATURE ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: all .3s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #e8f6f0, #d5ede2); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ============ TESTIMONI ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); transition: all .3s ease; }
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stars { color: var(--accent); font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card > p { font-size: 15px; color: var(--ink); line-height: 1.7; margin-bottom: 22px; font-style: italic; }
.testi-user { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.testi-user strong { display: block; font-size: 14.5px; }
.testi-user span { font-size: 12.5px; color: var(--muted); }

/* ============ PORTAL SECTION ============ */
.section-portal { padding: 100px 0; background: linear-gradient(180deg, #f7f8f5 0%, #eef3ef 100%); }
.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.portal-card {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: var(--radius-lg); padding: 40px 34px 34px;
    position: relative; overflow: hidden;
    transition: all .35s ease; cursor: pointer;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.portal-card::before {
    content: ""; position: absolute; top: -60%; right: -60%;
    width: 220%; height: 220%;
    background: radial-gradient(circle at 30% 30%, var(--accent-color), transparent 40%);
    opacity: 0; transition: opacity .35s ease; z-index: 0;
}
.portal-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 70px rgba(13,92,74,.16); }
.portal-card:hover::before { opacity: .08; }
.portal-card > * { position: relative; z-index: 1; }

.portal-badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-color); background: rgba(0,0,0,.04); padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.portal-icon { width: 66px; height: 66px; border-radius: 20px; background: linear-gradient(135deg, #f3f6f2, #e6eee9); display: grid; place-items: center; font-size: 32px; margin-bottom: 22px; transition: transform .35s ease; }
.portal-card:hover .portal-icon { transform: scale(1.08) rotate(-4deg); }
.portal-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.portal-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

.portal-url {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Courier New', monospace; font-size: 12.5px;
    color: var(--ink); background: #f3f6f2;
    padding: 8px 14px; border-radius: 100px;
    margin-bottom: 22px; align-self: flex-start;
    border: 1px solid var(--line);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.20); animation: pulse-live 2s infinite; }
@keyframes pulse-live { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); } }

.portal-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 100px;
    background: var(--accent-color); color: #fff;
    font-size: 14px; font-weight: 600;
    transition: all .25s ease;
    align-self: flex-start; margin-top: auto;
}
.portal-card:hover .portal-btn { transform: translateX(4px); box-shadow: 0 10px 24px rgba(13,92,74,.30); }

.portal-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 18px 22px;
    margin-top: 40px; max-width: 760px;
    margin-left: auto; margin-right: auto;
    font-size: 14px; color: var(--muted);
    box-shadow: var(--shadow-sm);
}
.portal-note span { font-size: 20px; flex-shrink: 0; }
.portal-note a { color: var(--primary); font-weight: 700; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.portal-note a:hover { border-color: var(--primary); }

/* ============ CTA / KONTAK ============ */
.cta-section { background: linear-gradient(135deg, #0a3d31 0%, var(--primary) 50%, #0a5c46 100%); color: #fff; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(212,162,76,.25), transparent 70%); }
.cta-section::after { content: ""; position: absolute; bottom: -120px; left: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(10,138,106,.30), transparent 70%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.cta-left h2 { color: #fff; }
.cta-left > p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 34px; max-width: 480px; }
.cta-info { display: flex; flex-direction: column; gap: 18px; }
.cta-info > div { display: flex; gap: 14px; align-items: flex-start; }
.cta-info .ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: rgba(255,255,255,.10); backdrop-filter: blur(10px); display: grid; place-items: center; font-size: 18px; border: 1px solid rgba(255,255,255,.15); }
.cta-info strong { display: block; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.cta-info p { font-size: 15px; color: rgba(255,255,255,.9); }
.cta-form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.cta-form h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 22px; color: var(--primary); }
.cta-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.cta-form input, .cta-form select, .cta-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fafbfa; transition: all .2s ease; resize: vertical; }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { outline: none; border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(10,138,106,.10); }
.cta-form button { margin-top: 10px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.alert { background: #e8f6f0; color: var(--primary); border: 1px solid rgba(10,138,106,.25); padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; font-weight: 500; }

/* ============ FOOTER ============ */
.footer { background: #06241c; color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .logo-title { color: #fff; }
.footer .logo-title b { color: var(--accent); }
.footer .logo-sub { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 320px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: .5px; text-transform: uppercase; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============ FLOAT WA ============ */
.float-wa { position: fixed; bottom: 26px; right: 26px; z-index: 99; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45); transition: all .3s ease; }
.float-wa:hover { transform: scale(1.1) translateY(-2px); }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { height: 420px; max-width: 480px; margin: 0 auto; }
    .program-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .portal-grid { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 76px; left: 4%; right: 4%;
        background: #fff; border-radius: 20px; padding: 20px;
        flex-direction: column; align-items: stretch;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px); opacity: 0; pointer-events: none;
        transition: all .3s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 12px 16px; }

    .hero { padding: 120px 0 60px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
    .hero-stats strong { font-size: 22px; }
    .section { padding: 70px 0; }
    .program-grid, .feature-grid, .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .cta-form { padding: 30px 24px; }
    .float-wa { bottom: 18px; right: 18px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .portal-card { padding: 32px 26px; }
}