:root {
  --green-950: #0c3026;
  --green-900: #123d30;
  --green-800: #174d3a;
  --green-700: #246348;
  --green-100: #dbe9d7;
  --cream: #f8f5ed;
  --cream-deep: #eee9dc;
  --yellow: #f3c85b;
  --ink: #17312a;
  --muted: #62716b;
  --white: #fff;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(12, 48, 38, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; background: #fff; color: var(--green-900); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 50; top: 0; width: 100%; padding: 26px 0; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(23, 77, 58, .24); border-radius: 50%; color: var(--green-800); }
.brand-mark svg { width: 30px; height: 30px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .18em; line-height: 1; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { position: absolute; right: 100%; bottom: -7px; left: 0; height: 2px; background: var(--green-700); content: ""; transition: right .25s; }
.site-nav > a:hover::after { right: 0; }
.nav-cta { padding: 13px 20px; border: 1px solid var(--green-800); border-radius: 2px; transition: .25s; }
.nav-cta:hover { color: #fff; background: var(--green-800); }
.menu-toggle { display: none; border: 0; background: none; }

.hero { position: relative; min-height: 780px; overflow: hidden; padding: 150px 0 80px; background: linear-gradient(115deg, #faf8f2 0 58%, #e7eee1 58%); }
.hero-grid { display: grid; min-height: 550px; grid-template-columns: 52% 48%; align-items: center; }
.hero-copy { position: relative; z-index: 3; padding-right: 40px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--green-700); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: var(--yellow); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(54px, 6vw, 82px); line-height: 1.04; }
h1 em { color: var(--green-700); font-style: normal; }
.hero-lead { max-width: 620px; margin: 30px 0 34px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 54px; padding: 0 23px; border-radius: 2px; font-size: 14px; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.button-primary { color: #fff; background: var(--green-800); box-shadow: 0 12px 28px rgba(23, 77, 58, .18); }
.button-primary:hover { background: var(--green-700); box-shadow: 0 16px 32px rgba(23, 77, 58, .25); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(23, 49, 42, .3); padding: 8px 0; font-size: 14px; font-weight: 700; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.hero-trust { display: flex; gap: 28px; margin-top: 56px; padding-top: 25px; border-top: 1px solid rgba(23, 49, 42, .13); }
.hero-trust div { display: flex; min-width: 108px; flex-direction: column; }
.hero-trust div + div { padding-left: 28px; border-left: 1px solid rgba(23, 49, 42, .13); }
.hero-trust strong { font-family: var(--serif); font-size: 25px; }
.hero-trust span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.hero-visual { position: relative; height: 585px; }
.visual-frame { position: absolute; z-index: 2; top: 8px; right: 0; width: min(455px, 88%); height: 565px; overflow: hidden; border-radius: 230px 230px 16px 16px; box-shadow: var(--shadow); }
.pesantren-art { width: 100%; height: 100%; object-fit: cover; }
.visual-label { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; color: var(--green-950); background: rgba(255,255,255,.82); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); box-shadow: 0 0 0 5px rgba(36,99,72,.12); }
.dot-grid { position: absolute; z-index: 1; right: -25px; bottom: -2px; width: 155px; height: 155px; opacity: .9; background-image: radial-gradient(var(--yellow) 2.5px, transparent 2.5px); background-size: 18px 18px; }
.hero-orbit { position: absolute; border: 1px solid rgba(23,77,58,.08); border-radius: 50%; }
.orbit-one { top: -260px; right: -160px; width: 700px; height: 700px; }
.orbit-two { right: 410px; bottom: -240px; width: 420px; height: 420px; }

.section { padding: 110px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.section-heading h2, .portal-head h2, .closing h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.14; }
.intro-body { padding-top: 30px; }
.intro-body p { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.intro-body .text-link { margin-top: 15px; }

.portal { color: #fff; background: var(--green-950); }
.portal-head { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; margin-bottom: 58px; }
.portal-head p:last-child { margin: 0 0 5px; color: #adc0b7; line-height: 1.75; }
.eyebrow-light { color: #b8cabf; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.13); border-left: 1px solid rgba(255,255,255,.13); }
.portal-card { position: relative; display: flex; min-height: 340px; flex-direction: column; padding: 30px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); transition: color .35s, background .35s, transform .35s; }
.portal-card:hover { z-index: 2; color: var(--green-950); background: var(--yellow); transform: translateY(-8px); }
.card-number { color: #829b8f; font-size: 11px; letter-spacing: .15em; }
.portal-card:hover .card-number { color: rgba(12,48,38,.55); }
.card-icon { display: grid; width: 64px; height: 64px; margin: 52px 0 38px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.portal-card:hover .card-icon { border-color: rgba(12,48,38,.3); }
.card-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-copy { display: flex; flex-direction: column; gap: 12px; }
.card-copy strong { font-family: var(--serif); font-size: 25px; }
.card-copy small { max-width: 280px; color: #9eb3a9; font-size: 13px; line-height: 1.65; }
.portal-card:hover .card-copy small { color: rgba(12,48,38,.72); }
.card-arrow { position: absolute; right: 28px; bottom: 28px; font-size: 22px; transition: transform .25s; }
.portal-card:hover .card-arrow { transform: translate(4px, -4px); }

.closing { background: var(--cream-deep); }
.closing-box { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding: 65px 70px; background: #fff; box-shadow: 0 20px 65px rgba(23,49,42,.07); }
.closing-box .eyebrow { margin-bottom: 20px; }
.closing-box .button { flex-shrink: 0; }

.site-footer { padding: 80px 0 25px; color: #dbe7e0; background: #081f19; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 80px; padding-bottom: 62px; }
.brand-light .brand-mark { color: var(--yellow); border-color: rgba(255,255,255,.2); }
.brand-light small { color: #94a79f; }
.footer-brand p { max-width: 380px; margin: 25px 0 0; color: #91a69c; font-size: 14px; line-height: 1.75; }
.footer-contact > span, .footer-links > span { display: block; margin-bottom: 18px; color: #6f887d; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-contact p { margin: 0; line-height: 1.75; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-links > span { margin-bottom: 5px; }
.footer-links a { color: #b4c5bd; font-size: 14px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.1); color: #6f887d; font-size: 12px; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { padding-top: 135px; background: linear-gradient(150deg, #faf8f2 0 66%, #e7eee1 66%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-visual { width: min(600px, 100%); height: 590px; margin: 55px auto 0; }
  .hero-trust { max-width: 570px; }
  .visual-frame { right: 50%; width: min(455px, 85%); transform: translateX(50%); }
  .dot-grid { right: 7%; }
  .intro-grid { gap: 45px; }
  .portal-head { grid-template-columns: 1fr; gap: 25px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 250px; }
  .card-icon { margin: 34px 0 28px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .site-header { padding: 18px 0; }
  .menu-toggle { z-index: 60; display: grid; width: 42px; height: 42px; place-content: center; gap: 7px; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green-950); transition: .25s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; display: flex; visibility: hidden; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 75px 32px; opacity: 0; background: var(--cream); transition: opacity .25s, visibility .25s; }
  .site-nav.is-open { visibility: visible; opacity: 1; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid rgba(23,49,42,.12); font-family: var(--serif); font-size: 30px; }
  .site-nav .nav-cta { margin-top: 24px; padding: 16px 18px; border: 0; color: #fff; background: var(--green-800); font-family: var(--sans); font-size: 15px; text-align: center; }
  .hero { min-height: 0; padding-top: 125px; }
  h1 { font-size: clamp(46px, 14vw, 67px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-trust { gap: 14px; margin-top: 42px; }
  .hero-trust div { min-width: 0; flex: 1; }
  .hero-trust div + div { padding-left: 14px; }
  .hero-trust strong { font-size: 19px; }
  .hero-trust span { font-size: 9px; }
  .hero-visual { height: 485px; margin-top: 45px; }
  .visual-frame { height: 455px; }
  .section { padding: 78px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-body { padding-top: 0; }
  .portal { padding-bottom: 62px; }
  .portal-head { margin-bottom: 38px; }
  .portal-card { min-height: 265px; padding: 24px; }
  .closing-box { align-items: flex-start; flex-direction: column; padding: 42px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-bottom { gap: 15px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
