/* ============================================================
   sn-exam.id — Landing Page Stylesheet
   Optimized for performance, accessibility & SEO
   ============================================================ */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #10213f;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
}

/* ----- LAYOUT ----- */
.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

/* ----- SKIP LINK (Accessibility) ----- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #1261c9;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    z-index: 9999;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid #f59e0b;
}

/* ----- NAVBAR ----- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #e9eef5;
    transition: box-shadow .2s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(16, 33, 63, .08);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.7px;
    margin-right: auto;
    transition: opacity .15s;
}

.brand:hover {
    opacity: .85;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    /* Isolate dari backdrop-filter parent agar tidak buram */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand .dot {
    color: #f59e0b;
}

.navbar nav {
    display: flex;
    gap: 28px;
    color: #50617a;
    font-size: 14px;
    font-weight: 600;
}

.navbar nav a {
    position: relative;
    transition: color .15s;
    padding-bottom: 2px;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1261c9;
    border-radius: 2px;
    transition: width .2s ease;
}

.navbar nav a:hover {
    color: #1261c9;
}

.navbar nav a:hover::after {
    width: 100%;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 21px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s ease;
    border: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

.btn-primary {
    background: #1261c9;
    color: #fff;
    box-shadow: 0 10px 25px rgba(18, 97, 201, .22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #0c52ae;
    box-shadow: 0 14px 30px rgba(18, 97, 201, .3);
}

.btn-outline {
    border: 1px solid #d4deeb;
    color: #12345d;
    background: transparent;
}

.btn-outline:hover {
    border-color: #1261c9;
    color: #1261c9;
}

.btn-ghost {
    color: #174b87;
    background: transparent;
}

.btn-ghost:hover {
    background: #eef4fc;
}

.btn-white {
    background: #fff;
    color: #103c73;
}

.btn-white:hover {
    background: #f0f6ff;
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 22px;
    color: #10213f;
    padding: 4px;
}

/* ----- HERO ----- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 55%, #fff9ef 100%);
    padding: 90px 0 85px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(5px);
    pointer-events: none;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: rgba(28, 108, 215, .08);
    right: -180px;
    top: -120px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, .07);
    left: -150px;
    bottom: -180px;
}

/* Eyebrow */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1261c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.eyebrow span {
    width: 25px;
    height: 2px;
    background: #f59e0b;
    flex-shrink: 0;
}

.eyebrow.light {
    color: #b8d5ff;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -3px;
    margin: 20px 0;
}

.hero h1 em {
    font-style: normal;
    color: #1261c9;
}

.hero-text {
    max-width: 610px;
    color: #445566;
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.trust-row {
    display: flex;
    gap: 32px;
    margin-top: 38px;
}

.trust-row div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-row strong {
    font-size: 12px;
    color: #123f78;
    font-weight: 700;
}

.trust-row span {
    font-size: 10px;
    color: #556777;
}

/* ----- DASHBOARD MOCKUP ----- */
.hero-visual {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card {
    width: min(470px, 100%);
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 25px 70px rgba(20, 48, 85, .13);
    position: relative;
    z-index: 2;
}

.dash-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dash-top small {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #556777;
    font-weight: 800;
}

.dash-top h3 {
    margin: 6px 0 0;
    font-size: 17px;
}

.live {
    font-size: 9px;
    color: #16864b;
    font-weight: 800;
    background: #e9f8f0;
    padding: 7px 9px;
    border-radius: 20px;
    height: max-content;
    white-space: nowrap;
}

.live i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #21ad67;
    margin-right: 4px;
    animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .6;
        transform: scale(1.3);
    }
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin: 25px 0 8px;
    color: #556777;
    font-size: 11px;
}

.progress-label b {
    color: #1261c9;
}

.progress {
    height: 7px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1261c9, #55a0f5);
    border-radius: 99px;
}

.question {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #edf1f5;
    border-radius: 14px;
}

.q-number {
    font-size: 10px;
    font-weight: 800;
    color: #1261c9;
}

.q-number span {
    color: #556777;
}

.question p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
    margin: 8px 0 12px;
}

.answers {
    display: grid;
    gap: 8px;
}

.answers div {
    padding: 11px 13px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    font-size: 12px;
    color: #445566;
}

.answers .selected {
    border-color: #62a3ed;
    background: #f1f7ff;
    color: #155aab;
    font-weight: 600;
}

.answers b {
    float: right;
}

.dash-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 10px;
    color: #556777;
}

.dash-bottom strong {
    color: #182e4c;
}

.dash-bottom button {
    margin-left: auto;
    border: 0;
    background: #1261c9;
    color: #fff;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 10px;
    font-weight: 700;
}

/* Floating cards */
.floating-card {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid #e5ebf2;
    box-shadow: 0 15px 40px rgba(20, 48, 85, .13);
    border-radius: 12px;
    padding: 13px 15px;
    /* animation: float 3s ease-in-out infinite; */
}

.secure-card {
    left: 0;
    top: 80px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    animation-delay: 0s;
}

.score-card {
    right: 0;
    bottom: 75px;
    display: flex;
    gap: 10px;
    align-items: center;
    animation-delay: 1.5s;
}

.floating-card b,
.floating-card small,
.floating-card span {
    display: block;
}

.floating-card small {
    font-size: 9px;
    color: #556777;
    margin-top: 3px;
}

.score-card>b {
    font-size: 24px;
    color: #1261c9;
}

.score-card span {
    font-size: 9px;
    color: #31a369;
    margin-top: 4px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ----- STATS ----- */
.stats {
    border-top: 1px solid #e9eef5;
    border-bottom: 1px solid #e9eef5;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
    padding: 25px 20px;
    border-right: 1px solid #edf1f5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-grid div:last-child {
    border: 0;
}

.stats-grid strong {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 800;
}

.stats-grid span {
    font-size: 11px;
    color: #445566;
    font-weight: 600;
}

/* ----- SECTIONS ----- */
.section {
    padding: 105px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading.center .eyebrow {
    justify-content: center;
}

.section-heading h2,
.security-section h2,
.cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 15px 0;
}

.section-heading p {
    color: #556777;
    line-height: 1.75;
}

/* ----- FEATURE CARDS ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;
    border: 1px solid #e5ebf2;
    border-radius: 15px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(22, 55, 92, .08);
}

.feature-card.featured {
    background: #f7fbff;
    border-color: #cfe2fa;
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eaf3ff;
    color: #1261c9;
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 800;
}

.feature-card h3 {
    font-size: 17px;
    margin: 20px 0 9px;
}

.feature-card p {
    font-size: 13px;
    color: #556777;
    line-height: 1.7;
    margin: 0;
}

.feature-link {
    display: inline-block;
    margin-top: 20px;
    color: #1261c9;
    font-size: 11px;
    font-weight: 800;
}

/* ----- SECURITY SECTION ----- */
.security-section {
    background: #09234a;
    color: #fff;
    padding: 105px 0;
    overflow: hidden;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 100px;
    align-items: center;
}

.security-section h2 {
    max-width: 600px;
}

.security-section>div>p,
.security-grid>div>p {
    color: #aabbd2;
    line-height: 1.8;
    max-width: 590px;
}

.security-list {
    display: grid;
    gap: 18px;
    margin-top: 35px;
}

.security-list>div {
    display: flex;
    gap: 13px;
}

.security-list b {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #123d72;
    color: #63aaf7;
    flex-shrink: 0;
}

.security-list strong,
.security-list small {
    display: block;
}

.security-list strong {
    font-size: 13px;
}

.security-list small {
    font-size: 11px;
    color: #90a4c0;
    margin-top: 4px;
}

.security-panel {
    background: linear-gradient(145deg, #123c71, #0b2a57);
    border: 1px solid rgba(154, 198, 246, .2);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .2);
}

.shield {
    width: 105px;
    height: 120px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2e83e8, #0e4e9e);
    clip-path: polygon(50% 0, 92% 16%, 87% 66%, 50% 100%, 13% 66%, 8% 16%);
    font-size: 38px;
}

.security-tag {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #f6a313;
}

.security-panel h3 {
    font-size: 22px;
    margin: 12px 0;
}

.security-panel p {
    font-size: 12px;
    color: #a8bad1;
    line-height: 1.7;
}

/* ----- STEPS / WORKFLOW ----- */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.step {
    text-align: center;
}

.step>span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #eef5fd;
    color: #1261c9;
    font-weight: 800;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.step:hover>span {
    background: #1261c9;
    color: #fff;
}

.step h3 {
    font-size: 15px;
    margin: 0 0 7px;
}

.step p {
    font-size: 11px;
    color: #556777;
    line-height: 1.6;
}

.line {
    height: 1px;
    background: #dce5ef;
    width: 50px;
}

/* ----- FAQ SECTION ----- */
.faq-section {
    background: #f8fbff;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}

.faq-item[open] {
    border-color: #cfe2fa;
    box-shadow: 0 8px 25px rgba(18, 97, 201, .07);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #10213f;
    list-style: none;
    gap: 16px;
    transition: color .15s;
    -webkit-user-select: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: #1261c9;
    flex-shrink: 0;
    transition: transform .25s ease, content .25s;
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: #1261c9;
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    margin: 0;
    color: #445566;
    font-size: 14px;
    line-height: 1.75;
}

/* ----- CTA SECTION ----- */
.cta-section {
    padding: 75px 0;
    background: linear-gradient(110deg, #0a356a, #1261c9);
    color: #fff;
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta h2 {
    margin-bottom: 10px;
    color: #fff;
}

.cta p {
    margin: 0;
    color: #bcd2ed;
}

/* ----- FOOTER ----- */
footer {
    border-top: 1px solid #e9eef5;
    background: #fff;
}

.footer-grid {
    min-height: 105px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.footer-brand b {
    display: block;
    font-size: 15px;
}

.footer-brand b span {
    color: #f59e0b;
}

.footer-brand small {
    display: block;
    font-size: 9px;
    color: #556777;
    margin-top: 3px;
}

.footer-links {
    display: flex;
    gap: 22px;
    font-size: 11px;
    color: #445566;
    flex-wrap: wrap;
}

.footer-links a {
    transition: color .15s;
}

.footer-links a:hover {
    color: #1261c9;
}

.footer-grid>p {
    text-align: right;
    color: #556777;
    font-size: 9px;
    margin: 0;
}

/* ----- SCROLL ANIMATIONS ----- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid children */
.feature-grid .feature-card:nth-child(1) {
    transition-delay: .05s;
}

.feature-grid .feature-card:nth-child(2) {
    transition-delay: .10s;
}

.feature-grid .feature-card:nth-child(3) {
    transition-delay: .15s;
}

.feature-grid .feature-card:nth-child(4) {
    transition-delay: .20s;
}

.feature-grid .feature-card:nth-child(5) {
    transition-delay: .25s;
}

.feature-grid .feature-card:nth-child(6) {
    transition-delay: .30s;
}

/* ----- FOCUS STYLES (Accessibility) ----- */
a:focus-visible,
button:focus-visible,
details summary:focus-visible {
    outline: 2px solid #1261c9;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

    .hero-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-visual {
        min-height: 420px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-grid {
        gap: 50px;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .steps .line {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 25px 0;
        gap: 18px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-grid>p {
        text-align: center;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .navbar nav,
    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .navbar nav.open {
        display: flex;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 68px;
        background: #fff;
        border: 1px solid #e5ebf2;
        border-radius: 10px;
        padding: 16px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
        z-index: 49;
    }

    .navbar nav.open a {
        font-size: 15px;
        padding: 4px 0;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-text {
        font-size: 15px;
    }

    .trust-row {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-visual {
        min-height: 380px;
    }

    .dashboard-card {
        padding: 16px;
    }

    .floating-card {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid div {
        border-bottom: 1px solid #edf1f5;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 75px 0;
    }

    .security-section {
        padding: 75px 0;
    }

    .security-panel {
        padding: 35px 20px;
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps .line {
        display: none;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}