:root {
    --bg: #fafafa;
    --bg-alt: #ffffff;
    --bg-tint: #f4f5f7;
    --ink: #0b0d1f;
    --ink-soft: #4a4d6a;
    --ink-muted: #8a8da6;
    --line: #e8e9ee;
    --accent: #f5b800;
    --accent-deep: #e89c00;
    --blue: #0a84ff;
    --purple: #7c5cff;
    --green: #34c759;
    --radius: 22px;
    --radius-lg: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
nav {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 16px;
}
.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.brand { margin-right: 48px; }
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-left: auto;
    padding-left: 48px;
}
.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* HERO */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(245, 184, 0, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 60%, rgba(124, 92, 255, 0.08), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.hero-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    box-shadow:
    0 18px 40px rgba(11, 13, 31, 0.18),
    0 4px 12px rgba(11, 13, 31, 0.08);
    margin-bottom: 32px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 20px;
    color: var(--ink);
}
h1 .accent, h2 .accent {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tagline {
    font-size: clamp(17px, 1.6vw, 21px);
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}
.cta-row {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.meta-line {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-muted);
}
.meta-line .dot { opacity: 0.5; margin: 0 8px; }

/* Official Apple Mac App Store badge */
.app-store-badge {
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 0;
}
.app-store-badge img {
    height: 56px;
    width: auto;
    display: block;
}
.app-store-badge:hover { opacity: 0.85; transform: translateY(-1px); }

.ghost-link {
    font-size: 15px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    padding: 16px 12px;
}
.ghost-link:hover { text-decoration: underline; }

/* Hero image */
.hero-image-wrap {
    margin-top: 64px;
    position: relative;
}
.hero-image {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow:
    0 30px 80px rgba(11, 13, 31, 0.18),
    0 8px 24px rgba(11, 13, 31, 0.08);
}

/* Sections */
section { padding: 100px 0; scroll-margin-top: 80px; }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 14px;
}
h2 {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 18px;
    color: var(--ink);
}
.section-intro {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 18px;
    margin-bottom: 56px;
}

/* ============================
    BENTO GRID — creative layout
    ============================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
    gap: 16px;
}
.bento-cell {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.bento-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(11, 13, 31, 0.08);
}

/* Cell sizing */
.cell-hero      { grid-column: span 4; grid-row: span 2; padding: 36px; }
.cell-magsafe   { grid-column: span 2; grid-row: span 2; }
.cell-detect    { grid-column: span 2; grid-row: span 1; }
.cell-startup   { grid-column: span 2; grid-row: span 1; }
.cell-private   { grid-column: span 2; grid-row: span 1; }
.cell-perf      { grid-column: span 4; grid-row: span 1; }
.cell-noprice   { grid-column: span 2; grid-row: span 1; }

.bento-cell h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
    color: var(--ink);
}
.bento-cell p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}
.bento-cell .label-tiny {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Hero cell — animated wattage display */
.cell-hero {
    background: linear-gradient(135deg, #0b0d1f 0%, #1a1b3a 60%, #2a1f4a 100%);
    color: #fff;
    justify-content: space-between;
}
.cell-hero h3 { color: #fff; font-size: 22px; }
.cell-hero p { color: rgba(255, 255, 255, 0.7); font-size: 15px; max-width: 320px; }
.cell-hero .label-tiny { color: var(--accent); }
.watt-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: auto 0;
}
.watt-display .bolt {
    font-size: 56px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(245, 184, 0, 0.5));
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.96); }
}
.watt-number {
    font-size: 96px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.watt-unit {
    font-size: 32px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: -0.02em;
}

/* MagSafe / USB-C cell */
.cell-magsafe {
    background: linear-gradient(160deg, #f4f5f7 0%, #e8eaef 100%);
    justify-content: space-between;
}
.connector-art {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px 0;
}
.connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.connector .shape {
    width: 56px;
    height: 28px;
    background: var(--ink);
    border-radius: 6px;
    position: relative;
}
.connector .shape.usbc {
    width: 48px;
    height: 22px;
    border-radius: 11px;
    background: #1d1d1f;
}
.connector .shape.magsafe {
    width: 56px;
    height: 22px;
    border-radius: 4px;
    background: #1d1d1f;
    position: relative;
}
.connector .shape.magsafe::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #444 0%, #888 50%, #444 100%);
}
.connector .name {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}

/* Detect cell */
.cell-detect {
    background: linear-gradient(135deg, #fff 0%, #fff8e0 100%);
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.detect-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(245, 184, 0, 0.35);
}
.detect-icon svg { width: 28px; height: 28px; color: #1d1d1f; }
.cell-detect .text-block { display: flex; flex-direction: column; }

/* Startup cell */
.cell-startup {
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.toggle-art {
    width: 52px;
    height: 30px;
    background: var(--green);
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.toggle-art::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Private cell */
.cell-private {
    background: linear-gradient(135deg, #ecf2ff 0%, #f4f5f7 100%);
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}
.lock-icon svg { width: 28px; height: 28px; color: #fff; }

/* Performance cell — tiny footprint with stats */
.cell-perf {
    background: linear-gradient(120deg, #0b0d1f 0%, #1f2347 100%);
    color: #fff;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 28px 36px;
}
.cell-perf .left { flex: 1; }
.cell-perf h3 { color: #fff; }
.cell-perf p { color: rgba(255, 255, 255, 0.65); }
.cell-perf .label-tiny { color: var(--accent); }
.perf-stats {
    display: flex;
    gap: 28px;
}
.perf-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.perf-stat .num {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.perf-stat .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

/* No subscription cell */
.cell-noprice {
    background: linear-gradient(135deg, #fff 0%, #f0fff4 100%);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cell-noprice .price-x {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.15;
}
.cell-noprice .price-x s { color: var(--ink-muted); font-weight: 500; margin-right: 8px; }
.cell-noprice .price-x .pay-once { color: var(--green); }
.cell-noprice p { font-size: 13px; }

/* SHOWCASE — split section */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: center;
}
.showcase-image {
    background: linear-gradient(135deg, #f4f5f7 0%, #e8eaef 100%);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.showcase-image img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(11, 13, 31, 0.15);
}
.showcase-text h2 { margin-bottom: 18px; }
.showcase-text > p {
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 32px;
}
.uses {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.use {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.use-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.use-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.use-text span {
    font-size: 14px;
    color: var(--ink-soft);
}

/* Quote / Why */
.why-section {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    padding: 100px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.why-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.why-card .quote-mark {
    font-size: 64px;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
    margin-bottom: 8px;
}
.why-card p {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
    color: var(--ink);
}
.why-card p .highlight {
    background: linear-gradient(180deg, transparent 65%, rgba(245, 184, 0, 0.4) 65%);
    padding: 0 4px;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 120px 0;
}
.final-cta h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 22px; }
.final-cta p {
    color: var(--ink-soft);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 36px 0 56px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 14px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

/* ============================
    PRIVACY MODAL
    ============================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 31, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }

.modal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 48px 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(11, 13, 31, 0.35);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translateY(12px) scale(0.985);
    transition: transform 0.25s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-tint);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close svg { width: 16px; height: 16px; }

.modal-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    padding-right: 40px;
}
.modal-card .modal-meta {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 24px;
}
.modal-card .modal-meta strong { color: var(--ink-soft); font-weight: 600; }
.modal-card .lead {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    padding: 18px 0 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.modal-card p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.modal-card p:last-of-type { margin-bottom: 0; }
.modal-card strong { font-weight: 600; color: var(--ink); }

/* Quick-fact tiles inside the modal */
.modal-card .quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 28px 0 8px;
}
.modal-card .fact {
    background: linear-gradient(135deg, #ecf2ff 0%, #f4f5f7 100%);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
}
.modal-card .fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.modal-card .fact-icon svg { width: 18px; height: 18px; }
.modal-card .fact-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.modal-card .fact-sub {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* Contact callout — warm tone */
.modal-card .contact-callout {
    margin-top: 28px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(245, 184, 0, 0.10), rgba(245, 184, 0, 0.02));
    border: 1px solid rgba(245, 184, 0, 0.25);
    border-radius: 16px;
    text-align: center;
}
.modal-card .contact-callout h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--ink);
}
.modal-card .contact-callout p {
    color: var(--ink-soft);
    font-size: 13px;
    margin-bottom: 10px;
}
.modal-card .contact-callout a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}
.modal-card .contact-callout a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .modal-card { padding: 36px 24px 28px; }
    .modal-card h2 { font-size: 24px; }
    .modal-card .quick-facts { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 900px) {
    .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    }
    .cell-hero, .cell-magsafe, .cell-detect, .cell-startup,
    .cell-private, .cell-perf, .cell-noprice {
    grid-column: span 2; grid-row: auto;
    }
    .cell-hero { min-height: 320px; }
    .showcase { grid-template-columns: 1fr; gap: 50px; }
    .perf-stats { gap: 20px; }
    .nav-links { display: none; }
    section { padding: 70px 0; }
    .why-section { padding: 70px 0; }
}

@media (max-width: 560px) {
    .watt-number { font-size: 72px; }
    .perf-stats { flex-wrap: wrap; gap: 18px; }
    .footer-content { flex-direction: column; text-align: center; }
}