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

::selection {
    background: rgba(0, 212, 170, 0.25);
    color: #fff;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--ink);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 170, 0.3);
    border-radius: 3px;
}

#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

.radial-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 212, 170, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 106, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 15% 60%, rgba(0, 194, 255, 0.05) 0%, transparent 70%);
}

.soft-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
}

.page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 40px;
    text-align: center;
    margin: 80px auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 44px;
    animation: fadeUp 0.65s var(--spring) 0s both;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e6aff, #00c2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
    fill: white;
    position: relative;
    z-index: 1;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

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

/* Medical icon */
.med-icon {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    animation: fadeUp 0.65s var(--spring) 0.07s both;
    flex-shrink: 0;
}

.med-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 170, 0.2);
    animation: ring-spin 20s linear infinite;
}

.med-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal), 0 0 20px rgba(0, 212, 170, 0.4);
}

.med-ring-2 {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 194, 255, 0.15);
    animation: ring-spin 14s linear infinite reverse;
}

.med-ring-2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.med-core {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 194, 255, 0.1));
    border: 1px solid rgba(0, 212, 170, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    animation: heartbeat 2.6s ease-in-out infinite;
}

.med-core svg {
    width: 30px;
    height: 30px;
}

@keyframes ring-spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
    }

    14% {
        transform: scale(1.07);
        box-shadow: 0 0 0 9px rgba(0, 212, 170, 0.07);
    }

    28% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
    }

    42% {
        transform: scale(1.04);
        box-shadow: 0 0 0 5px rgba(0, 212, 170, 0.04);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0);
    }
}

/* ECG line */
.ecg-wrap {
    width: 200px;
    height: 34px;
    margin-bottom: 24px;
    overflow: hidden;
    animation: fadeUp 0.65s var(--spring) 0.12s both;
}

.ecg-line {
    width: 200%;
    height: 100%;
    animation: ecg-scroll 2.6s linear infinite;
}

@keyframes ecg-scroll {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.22);
    border-radius: var(--r-full);
    padding: 7px 18px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--teal);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
    animation: fadeUp 0.65s var(--spring) 0.14s both;
}

.s-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.12
    }
}

/* Headline */
.headline {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 18px;
    animation: fadeUp 0.65s var(--spring) 0.2s both;
}

.grad-teal {
    background: linear-gradient(135deg, #00d4aa, #00c2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub */
.subtext {
    max-width: 480px;
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin: 0 auto 34px;
    animation: fadeUp 0.65s var(--spring) 0.26s both;
}

/* Progress bar */
.prog-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 32px;
    animation: fadeUp 0.65s var(--spring) 0.32s both;
}

.prog-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.prog-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.prog-pct {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--teal);
}

.prog-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.prog-fill {
    height: 100%;
    width: 68%;
    border-radius: 4px;
    background: linear-gradient(90deg, #1e6aff, #00c2ff, #00d4aa);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
}

.prog-fill::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px var(--teal), 0 0 22px rgba(0, 212, 170, 0.45);
}

@keyframes shimmer {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: -100% 0
    }
}

/* Care pillars */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 32px;
    animation: fadeUp 0.65s var(--spring) 0.38s both;
}

.pillar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 12px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.25s var(--ease);
}

.pillar:hover {
    background: var(--glass-2);
    border-color: rgba(0, 212, 170, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 212, 170, 0.12);
}

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon.t {
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 170, 0.22);
}

.pillar-icon.c {
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 194, 255, 0.2);
}

.pillar-icon.b {
    background: rgba(30, 106, 255, 0.1);
    border: 1px solid rgba(30, 106, 255, 0.22);
}

.pillar-icon svg {
    width: 20px;
    height: 20px;
}

.pillar-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-bright);
    text-align: center;
    line-height: 1.3;
}

.pillar-sub {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
}

/* Notify */
.notify-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 14px;
    animation: fadeUp 0.65s var(--spring) 0.44s both;
}

.notify-lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.notify-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.notify-input {
    flex: 1;
    min-width: 0;
    background: var(--glass-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    padding: 12px 20px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-bright);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.notify-input::placeholder {
    color: var(--text-dim);
}

.notify-input:focus {
    border-color: rgba(0, 212, 170, 0.38);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08);
}

.notify-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #00d4aa, #00a882);
    color: #020817;
    border: none;
    border-radius: var(--r-full);
    padding: 12px 22px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--glow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.22s var(--ease);
    position: relative;
    overflow: hidden;
}

.notify-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 0.2s;
}

.notify-btn:hover::after {
    opacity: 1;
}

.notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(0, 212, 170, 0.5), 0 0 80px rgba(0, 212, 170, 0.18);
}

.notify-success {
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--r-full);
    background: rgba(0, 212, 170, 0.09);
    border: 1px solid rgba(0, 212, 170, 0.24);
    color: var(--teal);
    font-size: 0.88rem;
    font-weight: 700;
}

.notify-success.show {
    display: flex;
    animation: fadeUp 0.4s var(--spring) both;
}

/* Divider */
.divider {
    width: 160px;
    height: 1px;
    margin: 24px auto 22px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.35), transparent);
    animation: fadeUp 0.65s var(--spring) 0.5s both;
}

/* Contact */
.contact-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
    animation: fadeUp 0.65s var(--spring) 0.5s both;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-full);
    backdrop-filter: blur(12px);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.22s var(--ease);
}

.contact-chip:hover {
    background: var(--glass-2);
    border-color: rgba(0, 212, 170, 0.22);
    color: var(--text-bright);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    font-size: 0.73rem;
    color: var(--text-dim);
    line-height: 1.6;
    animation: fadeUp 0.65s var(--spring) 0.55s both;
}

.footer a {
    color: rgba(0, 212, 170, 0.6);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--teal);
}

/* Particles */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    8% {
        opacity: 0.7;
    }

    85% {
        opacity: 0.35;
    }

    100% {
        transform: translateY(-100vh) scale(0.3);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media(max-width:600px) {
    .page {
        padding: 40px 20px 36px;
    }

    .logo {
        margin-bottom: 32px;
    }

    .pillars {
        grid-template-columns: 1fr 1fr;
        max-width: 360px;
    }

    .pillars .pillar:nth-child(5) {
        grid-column: 1;
    }

    .pillars .pillar:nth-child(6) {
        grid-column: 2;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-btn {
        border-radius: var(--r-full);
        padding: 13px;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
    }

    .headline {
        font-size: 1.85rem;
    }

    .subtext {
        font-size: 0.94rem;
    }

    .med-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }

    .med-core {
        width: 56px;
        height: 56px;
    }

    .med-core svg {
        width: 24px;
        height: 24px;
    }
}

@media(max-width:420px) {
    .headline {
        font-size: 1.6rem;
    }

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

@media(max-height:720px) {
    .logo {
        margin-bottom: 20px;
    }

    .med-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .med-core {
        width: 50px;
        height: 50px;
    }

    .subtext {
        margin-bottom: 20px;
        font-size: 0.92rem;
    }

    .prog-wrap {
        margin-bottom: 20px;
    }

    .pillars {
        gap: 8px;
        margin-bottom: 20px;
    }

    .pillar {
        padding: 13px 10px;
    }

    .notify-wrap {
        margin-bottom: 10px;
    }

    .ecg-wrap {
        margin-bottom: 16px;
    }
}
