/* BASENSI — clean, calm attendance portal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --text-dark: #172033;
    --text-body: #43516a;
    --text-muted: #718096;
    --bg-page: #f7f9fc;
    --bg-white: #fff;
    --border: #e5eaf2;
    --success: #15803d;
    --success-bg: #ecfdf3;
    --shadow: 0 18px 48px rgba(35, 68, 120, .09);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
    color: var(--text-dark);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(6%, calc((100% - 1120px) / 2));
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(229, 234, 242, .9);
    backdrop-filter: blur(14px);
}

.logo {
    color: var(--primary);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.logo span { color: var(--text-dark); }

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-body);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

nav a:hover { color: var(--primary); }

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
    overflow: hidden;
    padding: 82px max(8%, calc((100% - 1080px) / 2)) 88px;
    background:
        radial-gradient(ellipse at 88% 15%, rgba(191, 219, 254, .48), transparent 33%),
        linear-gradient(135deg, #f0f6ff 0%, #fff 64%);
}

.hero-content { max-width: 590px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    content: '';
}

.hero h1 {
    margin-bottom: 18px;
    color: var(--text-dark);
    font-size: clamp(2.15rem, 4.5vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -1.8px;
    line-height: 1.2;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero p {
    max-width: 540px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.85;
}

.hero .hero-note {
    max-width: 440px;
    margin: 14px 0 0;
    font-size: 11px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--primary-dark); box-shadow: 0 10px 22px rgba(37, 99, 235, .27); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, nav a:focus-visible, .footer-copyright a:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.hero-image {
    position: relative;
    display: grid;
    flex: 0 0 360px;
    place-items: center;
    width: 360px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 30px;
    background: linear-gradient(145deg, #2563eb, #60a5fa);
    box-shadow: 0 28px 64px rgba(37, 99, 235, .22);
}

.hero-image::before,
.hero-image::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    content: '';
}

.hero-image::before { width: 280px; height: 280px; }
.hero-image::after { width: 220px; height: 220px; }

.clock-card {
    position: relative;
    z-index: 1;
    width: 264px;
    padding: 30px 24px 25px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 42px rgba(15, 45, 95, .2);
    text-align: center;
}

.clock-icon { display: block; width: 40px; height: 40px; margin: 0 auto 12px; color: var(--primary); }
.clock-card h2 { color: var(--text-dark); font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.3; }
.clock-card p { margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; padding: 6px 12px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 10px; font-weight: 600; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; content: ''; }

.features {
    padding: 74px 24px 82px;
    text-align: center;
}

.section-title { margin-bottom: 8px; color: var(--text-dark); font-size: 27px; font-weight: 700; letter-spacing: -.6px; }
.section-desc { margin-bottom: 34px; color: var(--text-muted); font-size: 13px; }

.usage-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 850px);
    margin: 0 auto;
    list-style: none;
    text-align: left;
}

.usage-steps li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 112px;
    padding: 21px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-white);
    box-shadow: 0 4px 14px rgba(35, 68, 120, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.usage-steps li:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-2px); }
.step-number { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.step-content h3 { margin: 1px 0 5px; color: var(--text-dark); font-size: 13px; font-weight: 600; }
.step-content p { color: var(--text-muted); font-size: 11px; line-height: 1.65; }

.info-section {
    padding: 65px 24px 70px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.info-section .section-title { margin-bottom: 28px; text-align: center; }
.info-list { width: min(100%, 700px); margin: 0 auto; list-style: none; }
.info-list li { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--border); color: var(--text-body); font-size: 12px; }
.info-list li:last-child { border-bottom: 0; }
.info-list li svg { flex: 0 0 21px; width: 21px; height: 21px; color: var(--primary); }

.cta {
    margin: 64px auto;
    width: min(calc(100% - 48px), 1040px);
    padding: 48px 24px;
    border-radius: 22px;
    background: linear-gradient(120deg, #1e40af, #3b82f6);
    box-shadow: 0 20px 46px rgba(37, 99, 235, .19);
    color: white;
    text-align: center;
}

.cta h2 { margin-bottom: 7px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.cta p { margin-bottom: 22px; color: #dbeafe; font-size: 12px; }
.cta .btn { min-height: 46px; background: #fff; box-shadow: none; color: var(--primary-dark); }
.cta .btn:hover { background: #eff6ff; box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }

footer { margin-top: auto; padding: 25px 24px; border-top: 1px solid var(--border); background: #fff; }
.footer-container { text-align: center; }
.footer-app-name { margin-bottom: 4px; color: var(--text-dark); font-size: 12px; font-weight: 600; }
.footer-copyright { margin-bottom: 2px; color: var(--text-muted); font-size: 10px; }
.footer-copyright a { color: var(--primary); font-weight: 500; text-decoration: none; }
.footer-copyright a:hover { text-decoration: underline; }
.footer-tagline { color: var(--text-muted); font-size: 10px; }

@media (max-width: 850px) {
    .hero { gap: 36px; padding: 68px 6%; }
    .hero-image { flex-basis: 310px; width: 310px; height: 300px; }
    .hero-image::before { width: 250px; height: 250px; }
    .hero-image::after { width: 195px; height: 195px; }
    .clock-card { width: 240px; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 112px; }
    header { flex-direction: column; gap: 5px; padding: 10px 16px 12px; }
    .logo { font-size: 21px; }
    nav { justify-content: center; gap: clamp(18px, 7vw, 30px); }
    nav a { font-size: 12px; }
    .hero { flex-direction: column; gap: 34px; padding: 52px 22px 58px; text-align: center; }
    .hero-content { max-width: 520px; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); letter-spacing: -1.2px; }
    .hero p { margin-right: auto; margin-left: auto; font-size: 13px; }
    .hero .hero-note { font-size: 10px; }
    .hero-image { flex: 0 0 auto; width: min(100%, 300px); height: 270px; border-radius: 24px; }
    .hero-image::before { width: 230px; height: 230px; }
    .hero-image::after { width: 180px; height: 180px; }
    .clock-card { width: 225px; padding: 23px 18px 20px; }
    .clock-card h2 { font-size: 28px; }
    .features { padding: 58px 20px 64px; }
    .section-title { font-size: 23px; }
    .section-desc { margin-bottom: 25px; font-size: 12px; }
    .usage-steps { grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
    .usage-steps li { min-height: 0; padding: 17px; }
    .info-section { padding: 52px 22px 56px; }
    .info-section .section-title { margin-bottom: 20px; }
    .info-list li { align-items: flex-start; padding: 13px 2px; font-size: 11px; }
    .cta { width: calc(100% - 36px); margin: 42px auto; padding: 38px 18px; border-radius: 18px; }
    .cta h2 { font-size: 21px; }
}

@media (max-width: 380px) {
    nav { gap: 15px; }
    nav a { font-size: 11px; }
    .hero { padding-right: 17px; padding-left: 17px; }
    .badge { font-size: 9px; }
    .btn { min-height: 47px; padding: 0 18px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
