/* ========== Pulse — landing page styles ========== */

:root {
    --bg-deep: #0E0B22;
    --bg-mid: #14102E;
    --surface: #1A1330;
    --surface-hi: #23193E;
    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);

    --accent: #22D3EE;       /* cyan */
    --accent-hi: #7FF7FB;
    --accent2: #EC4899;      /* magenta */
    --accent3: #57CE7F;
    --warn: #FFCE4C;
    --offline: #FF4F64;
    --online: #23F582;

    --text: #FFFFFF;
    --text-2: rgba(255, 255, 255, 0.62);
    --text-3: rgba(255, 255, 255, 0.42);

    --grad-brand: linear-gradient(135deg, #22D3EE 0%, #EC4899 100%);
    --grad-bg: linear-gradient(180deg, #0E0B22 0%, #14102E 50%, #0B071C 100%);
    --grad-card: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    --grad-card-border: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    overflow-x: hidden;
}

body {
    background: var(--grad-bg);
    background-attachment: fixed;
    min-height: 100vh;
}

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

code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; font-size: 0.9em; }

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

/* ---------- Aurora background ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.bg-aurora .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    will-change: transform;
}
.blob-cyan {
    width: 700px; height: 700px;
    background: #22D3EE;
    top: -200px; left: -240px;
    opacity: 0.20;
    animation: drift 28s ease-in-out infinite alternate;
}
.blob-magenta {
    width: 650px; height: 650px;
    background: #EC4899;
    top: 30%; right: -240px;
    opacity: 0.15;
    animation: drift 32s ease-in-out infinite alternate-reverse;
}
.blob-violet {
    width: 800px; height: 800px;
    background: #7C3AED;
    bottom: -300px; left: 35%;
    opacity: 0.18;
    animation: drift 36s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.08); }
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    background: rgba(14, 11, 34, 0.72);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand-icon {
    width: 32px; height: 32px;
    border-radius: 7px;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}
.brand-name { font-size: 17px; }
.nav nav {
    display: flex; gap: 22px;
    font-size: 14px;
    color: var(--text-2);
}
.nav nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-primary {
    background: var(--grad-brand);
    color: #0c0820;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.30), 0 4px 10px rgba(236, 72, 153, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.40), 0 6px 14px rgba(236, 72, 153, 0.30); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 70px;
    position: relative;
}
.hero-inner {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hairline);
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
}
.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 0 4px rgba(35, 245, 130, 0.18);
    animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(35, 245, 130, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(35, 245, 130, 0.0); }
    100% { box-shadow: 0 0 0 0 rgba(35, 245, 130, 0.0); }
}

.hero-title {
    font-size: clamp(44px, 7vw, 80px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
}
.grad-text {
    background: var(--grad-brand);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18.5px;
    color: var(--text-2);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero live demo */
.hero-demo {
    margin-top: 60px;
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--grad-card);
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    text-align: left;
}
.hero-demo-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 6px;
}
.hero-demo-status .status-label {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}
.hero-demo-status .status-meta {
    color: var(--text-3);
    font-size: 12.5px;
    font-family: 'JetBrains Mono', monospace;
}
.pulse-dot {
    position: relative;
    width: 12px; height: 12px;
    border-radius: 50%;
    flex: none;
}
.pulse-dot.s8 { width: 8px; height: 8px; }
.pulse-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: ring 1.7s ease-out infinite;
}
.pulse-dot-green {
    background: var(--online);
    box-shadow: 0 0 12px rgba(35, 245, 130, 0.7);
}
@keyframes ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(2.4); opacity: 0;    }
}

.hero-demo-ecg {
    height: 90px;
    margin: 14px 0 18px;
    background:
        repeating-linear-gradient(0deg, transparent 0 21px, rgba(255,255,255,0.04) 21px 22px),
        repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.04) 26px 27px);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
}
.hero-demo-ecg svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
}

.hero-demo-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
}
.hero-demo-metrics .m {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.m-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-3);
    font-weight: 600;
}
.m-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.m-val.cyan { color: var(--accent); }
.m-val.magenta { color: var(--accent2); }

/* ---------- Value row ---------- */
.value {
    padding: 60px 0;
}
.value-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.v-card {
    padding: 24px;
    border-radius: var(--r-lg);
    background: var(--grad-card);
    border: 1px solid var(--hairline-strong);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.v-card:hover { transform: translateY(-3px); border-color: rgba(34,211,238,0.30); }
.v-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: white;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(34,211,238,0.30);
}
.v-card h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.v-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- Section base ---------- */
section { position: relative; }

.kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.20);
}
section h2 {
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 18px;
    max-width: 800px;
}
section .lead {
    color: var(--text-2);
    max-width: 720px;
    font-size: 17px;
    margin: 0 0 32px;
}

/* ---------- Preview ---------- */
.preview { padding: 100px 0 80px; }
.screenshot-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hairline-strong);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(236, 72, 153, 0.06));
    padding: 6px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.screenshot-frame img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* ---------- Features ---------- */
.features { padding: 100px 0 80px; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.card {
    background: var(--grad-card);
    border: 1px solid var(--hairline-strong);
    padding: 24px;
    border-radius: var(--r-lg);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(236, 72, 153, 0.16));
    color: var(--accent);
    display: grid; place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.25);
    margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- Menu bar mock ---------- */
.menubar { padding: 100px 0; }
.menubar-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.check { padding-left: 0; list-style: none; color: var(--text-2); }
.check li {
    padding: 6px 0 6px 28px;
    position: relative;
}
.check li::before {
    content: "";
    position: absolute;
    left: 0; top: 11px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.10);
}
.check li::after {
    content: "✓";
    position: absolute;
    left: 4px; top: 6px;
    color: #0c0820;
    font-size: 11px;
    font-weight: 900;
}

.menubar-mock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding: 24px;
}
.mb-icon-shot {
    border-radius: 7px;
    height: 28px;
    width: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--hairline-strong);
}
.mb-popover-shot {
    width: 280px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.10);
}

/* ---------- Settings showcase ---------- */
.settings-show { padding: 80px 0 100px; }
.settings-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}
.settings-frame img {
    max-height: 620px;
    object-fit: contain;
}

/* ---------- Specs ---------- */
.specs { padding: 100px 0 80px; }
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
}
.spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--grad-card);
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
}
.spec-k {
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
}
.spec-v {
    font-weight: 600;
    font-size: 14.5px;
    text-align: right;
}

/* ---------- Install ---------- */
.install { padding: 80px 0 100px; }
.code {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--hairline-strong);
    border-radius: 14px;
    padding: 22px 26px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.code pre { margin: 0; }
.code code { font-size: 14px; line-height: 1.7; color: var(--text); }
.code .c { color: var(--text-3); }
.code .cmd { color: var(--accent); font-weight: 700; }
.muted { color: var(--text-3); margin-top: 18px; font-size: 13.5px; }

/* ---------- Footer ---------- */
.foot {
    padding: 30px 0;
    border-top: 1px solid var(--hairline);
    margin-top: 40px;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.foot-meta { color: var(--text-3); font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .nav nav { display: none; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .value-inner { grid-template-columns: 1fr; }
    .menubar-inner { grid-template-columns: 1fr; gap: 30px; }
    .menubar-mock { align-items: center; }
    .settings-inner { grid-template-columns: 1fr; gap: 30px; }
    .spec-grid { grid-template-columns: 1fr; }
    .hero-demo-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .hero { padding: 60px 0 40px; }
    .grid-3 { grid-template-columns: 1fr; }
    .hero-demo-metrics { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 18px; }
}
