/* =========================================================================
   SIPPA Landing Page — "Aether" design system
   Dark, elegant, editorial. Inter for display/body, JetBrains Mono for
   eyebrow/technical labels. See aether-the-new-frontier-DESIGN.md.
   ========================================================================= */

:root {
    --aeth-bg: #050505;
    --aeth-surface: #F4F4F4;
    --aeth-primary: #FFFFFF;
    --aeth-secondary: #111111;
    --aeth-text: #FFFFFF;
    --aeth-text-muted: #A1A1AA;
    --aeth-border: #27272A;
    --aeth-accent: #2BA8A2; /* ties back to the product's own brand teal, used sparingly */

    --aeth-radius-card: 8px;
    --aeth-radius-control: 8px;
    --aeth-radius-pill: 9999px;

    --aeth-space: 8px;
    --aeth-gap: 16px;
    --aeth-card-pad: 24px;
    --aeth-section-pad: 80px;

    --aeth-font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --aeth-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--aeth-bg);
    color: var(--aeth-text);
    font-family: var(--aeth-font-display);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* Subtle film-grain texture over the whole page — cheap, static, no canvas/JS cost. */
.aeth-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared: eyebrow / mono label ---------- */
.aeth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--aeth-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--aeth-text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.aeth-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--aeth-accent);
    box-shadow: 0 0 0 3px rgba(43, 168, 162, .2);
}
.aeth-mono { font-family: var(--aeth-font-mono); font-size: 12px; color: var(--aeth-text-muted); letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.aeth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--aeth-radius-pill);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s ease, border-color .25s ease, opacity .25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.aeth-btn:hover { transform: translateY(-2px); }
.aeth-btn-solid { background: var(--aeth-primary); color: var(--aeth-secondary); }
.aeth-btn-solid:hover { background: #eaeaea; }
.aeth-btn-ghost { background: transparent; color: var(--aeth-text); border-color: var(--aeth-border); }
.aeth-btn-ghost:hover { border-color: rgba(255,255,255,.4); }
.aeth-btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- Nav ---------- */
.aeth-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 64px);
    background: rgba(5,5,5,0);
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease, padding .3s ease;
}
.aeth-nav.is-scrolled {
    background: rgba(5,5,5,.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--aeth-border);
    padding-top: 14px;
    padding-bottom: 14px;
}
.aeth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.aeth-brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--aeth-accent);
    color: #fff; font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
}
.aeth-brand-mark-img { object-fit: cover; background: transparent; }
.aeth-brand-pemda { height: 26px; width: auto; }
.aeth-brand-tm { font-size: 10px; color: var(--aeth-text-muted); margin-left: 2px; vertical-align: super; }
.aeth-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--aeth-text-muted); }
.aeth-nav-links a { transition: color .2s ease; }
.aeth-nav-links a:hover { color: var(--aeth-text); }
.aeth-nav-cta { display: flex; align-items: center; gap: 10px; }
.aeth-nav-toggle {
    display: none;
    background: transparent; border: 1px solid var(--aeth-border); border-radius: var(--aeth-radius-control);
    color: var(--aeth-text); width: 40px; height: 40px; font-size: 18px; cursor: pointer;
}

/* ---------- Hero ---------- */
.aeth-hero {
    position: relative;
    padding: clamp(64px, 12vw, 140px) clamp(20px, 5vw, 64px) var(--aeth-section-pad);
    overflow: hidden;
}
.aeth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    pointer-events: none;
    animation: aeth-drift 18s ease-in-out infinite alternate;
}
.aeth-orb-1 { width: 480px; height: 480px; top: -160px; right: -120px; background: radial-gradient(circle, var(--aeth-accent), transparent 70%); }
.aeth-orb-2 { width: 380px; height: 380px; bottom: -140px; left: -100px; background: radial-gradient(circle, #4b5cff, transparent 70%); opacity: .18; animation-delay: -9s; }
@keyframes aeth-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}
.aeth-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.aeth-display {
    font-size: clamp(40px, 6.4vw, 64px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.01em;
    margin-bottom: 24px;
}
.aeth-display-outline {
    -webkit-text-stroke: 1.5px var(--aeth-text);
    color: transparent;
}
.aeth-lead {
    font-size: 17px;
    color: var(--aeth-text-muted);
    max-width: 560px;
    margin-bottom: 36px;
}
.aeth-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.aeth-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 5vw, 56px);
    padding-top: 32px;
    border-top: 1px solid var(--aeth-border);
}
.aeth-stat { display: flex; flex-direction: column; gap: 4px; }
.aeth-stat-num { font-size: 28px; font-weight: 700; font-family: var(--aeth-font-mono); }
.aeth-stat-label { font-size: 13px; color: var(--aeth-text-muted); }

/* ---------- Sections ---------- */
.aeth-section { padding: var(--aeth-section-pad) clamp(20px, 5vw, 64px); position: relative; z-index: 2; }
.aeth-section-head { max-width: 640px; margin-bottom: 48px; }
.aeth-h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.aeth-section-sub { color: var(--aeth-text-muted); margin-top: 12px; font-size: 15px; }

/* ---------- Reveal-on-scroll ---------- */
.aeth-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.aeth-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Bento feature grid ---------- */
.aeth-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--aeth-gap);
}
.aeth-bento-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--aeth-border);
    border-radius: var(--aeth-radius-card);
    padding: var(--aeth-card-pad);
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, background-color .3s ease;
}
.aeth-bento-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.aeth-bento-lg { grid-column: span 2; }
.aeth-bento-icon { font-size: 22px; color: var(--aeth-accent); margin-bottom: 20px; display: block; }
.aeth-bento-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.aeth-bento-card p { color: var(--aeth-text-muted); font-size: 14px; line-height: 1.55; }

/* ---------- Catalog grid (10 barang terlaris) ---------- */
.aeth-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--aeth-gap);
}
.aeth-item-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--aeth-border);
    border-radius: var(--aeth-radius-card);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.aeth-item-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.aeth-item-thumb { position: relative; aspect-ratio: 4 / 3; background: #111; }
.aeth-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aeth-item-thumb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--aeth-text-muted); font-size: 28px; }
.aeth-item-rank {
    position: absolute; top: 8px; left: 8px;
    background: rgba(5,5,5,.75); backdrop-filter: blur(6px);
    color: #fff; font-family: var(--aeth-font-mono); font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: var(--aeth-radius-pill);
}
.aeth-item-body { padding: 14px; }
.aeth-item-kategori { font-size: 11px; color: var(--aeth-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.aeth-item-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.aeth-item-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--aeth-text-muted); }
.aeth-item-meta i { margin-right: 4px; }

/* ---------- Promo row ---------- */
.aeth-promo-row {
    display: flex;
    gap: var(--aeth-gap);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.aeth-promo-row::-webkit-scrollbar { height: 6px; }
.aeth-promo-row::-webkit-scrollbar-thumb { background: var(--aeth-border); border-radius: var(--aeth-radius-pill); }
.aeth-promo-card {
    position: relative;
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--aeth-surface);
    color: var(--aeth-secondary);
    border-radius: var(--aeth-radius-card);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.aeth-promo-card:hover { transform: translateY(-4px); }
.aeth-promo-thumb { height: 120px; background-size: cover; background-position: center; }
.aeth-promo-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--aeth-secondary); color: #fff;
    font-family: var(--aeth-font-mono); font-size: 12px; font-weight: 700;
    padding: 6px 10px; border-radius: var(--aeth-radius-pill);
}
.aeth-promo-body { padding: var(--aeth-card-pad); }
.aeth-promo-kode { font-family: var(--aeth-font-mono); font-size: 11px; color: #6b6b6b; margin-bottom: 6px; letter-spacing: .04em; }
.aeth-promo-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.aeth-promo-body p { font-size: 13px; color: #444; margin-bottom: 12px; line-height: 1.5; }
.aeth-promo-period { font-size: 12px; color: #555; display: flex; align-items: center; gap: 6px; }

/* ---------- News / Berita & Pengumuman grid ---------- */
.aeth-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--aeth-gap); }
.aeth-news-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--aeth-border);
    border-radius: var(--aeth-radius-card);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.aeth-news-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.25); }
.aeth-news-thumb { height: 150px; background-size: cover; background-position: center; background-color: #111; }
.aeth-news-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--aeth-text-muted); font-size: 26px; }
.aeth-news-body { padding: var(--aeth-card-pad); }
.aeth-news-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--aeth-accent); margin-bottom: 8px; }
.aeth-news-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.aeth-news-body p { font-size: 13px; color: var(--aeth-text-muted); line-height: 1.55; margin-bottom: 12px; }
.aeth-news-date { font-family: var(--aeth-font-mono); font-size: 11px; color: var(--aeth-text-muted); }

/* ---------- CTA band ---------- */
.aeth-cta-band {
    margin: 0 clamp(20px, 5vw, 64px) var(--aeth-section-pad);
    padding: clamp(48px, 8vw, 80px) clamp(24px, 6vw, 64px);
    background: var(--aeth-surface);
    color: var(--aeth-secondary);
    border-radius: 16px;
    text-align: center;
}
.aeth-cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; margin-bottom: 12px; }
.aeth-cta-band p { color: #555; margin-bottom: 28px; }
.aeth-cta-band .aeth-hero-cta { justify-content: center; margin-bottom: 0; }
.aeth-cta-band .aeth-btn-solid { background: var(--aeth-secondary); color: #fff; }
.aeth-cta-band .aeth-btn-solid:hover { background: #000; }
.aeth-cta-band .aeth-btn-ghost { border-color: rgba(0,0,0,.2); color: var(--aeth-secondary); }
.aeth-cta-band .aeth-btn-ghost:hover { border-color: rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
.aeth-footer { padding: 40px clamp(20px, 5vw, 64px) 56px; border-top: 1px solid var(--aeth-border); }
.aeth-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.aeth-footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--aeth-text-muted); }
.aeth-footer-links a:hover { color: var(--aeth-text); }
.aeth-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--aeth-text-muted); }

/* ---------- Public calendar (FullCalendar dark override) ---------- */
.aeth-cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
#publicCalendar { --fc-border-color: var(--aeth-border); --fc-page-bg-color: transparent; --fc-neutral-bg-color: rgba(255,255,255,.04); color: var(--aeth-text); }
#publicCalendar .fc-toolbar-title { color: var(--aeth-text); font-family: var(--aeth-font-display); font-weight: 600; font-size: 18px; }
#publicCalendar .fc-button { background: rgba(255,255,255,.06); border: 1px solid var(--aeth-border); color: var(--aeth-text); box-shadow: none; text-transform: capitalize; }
#publicCalendar .fc-button:hover { background: rgba(255,255,255,.12); }
#publicCalendar .fc-button-active { background: var(--aeth-accent) !important; border-color: var(--aeth-accent) !important; }
#publicCalendar .fc-daygrid-day-number, #publicCalendar .fc-col-header-cell-cushion, #publicCalendar .fc-list-day-text, #publicCalendar .fc-list-day-side-text { color: var(--aeth-text-muted); text-decoration: none; }
#publicCalendar .fc-day-today { background: rgba(43,168,162,.08) !important; }
#publicCalendar .fc-event { border: none; font-size: 12px; padding: 1px 4px; }
#publicCalendar .fc-list-event:hover td { background: rgba(255,255,255,.04); }
#publicCalendar .fc-list-empty { background: transparent; color: var(--aeth-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .aeth-bento { grid-template-columns: repeat(2, 1fr); }
    .aeth-catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .aeth-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .aeth-nav-links { display: none; }
    .aeth-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .aeth-nav-links.is-open {
        display: flex; flex-direction: column; gap: 16px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,5,5,.96); backdrop-filter: blur(14px);
        padding: 20px clamp(20px, 5vw, 64px);
        border-bottom: 1px solid var(--aeth-border);
    }
    .aeth-bento-lg { grid-column: span 1; }
    .aeth-bento { grid-template-columns: 1fr; }
    .aeth-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .aeth-news-grid { grid-template-columns: 1fr; }
    .aeth-nav-cta .aeth-btn-ghost { display: none; }
}
@media (max-width: 480px) {
    .aeth-catalog-grid { grid-template-columns: 1fr 1fr; }
    .aeth-stat-strip { gap: 24px; }
}
