@charset "UTF-8";

:root {
    color-scheme: dark;
    --bg: #0c1118;
    --surface: #121a24;
    --surface-raised: #182330;
    --text: #f3f6f8;
    --muted: #a4b0bd;
    --accent: #a8e2ca;
    --accent-strong: #c4f3de;
    --border: #2a3948;
    --danger: #ffaaa2;
    --success: #a8e5bf;
    --radius: 20px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font: 15px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 10% 4%, rgba(96, 172, 142, .13), transparent 34rem),
        radial-gradient(ellipse at 93% 58%, rgba(77, 119, 153, .12), transparent 35rem),
        linear-gradient(145deg, #0c1118, #101923 55%, #0e151d);
}
.page { width: min(100% - 48px, 1120px); margin: auto; padding: 0 0 54px; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; border-bottom: 1px solid rgba(218, 228, 238, .12); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 760; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(196,243,222,.55); border-radius: 13px; color: #10221b; background: linear-gradient(145deg, #d2f6e5, #83c9ab); box-shadow: 0 7px 23px rgba(112,194,157,.2); font-weight: 850; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 8px 14px; border: 1px solid transparent; border-radius: 9px; color: #c2cbd4; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: rgba(168,226,202,.2); color: var(--accent-strong); background: rgba(168,226,202,.08); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(38px, 7vw, 82px); margin-bottom: 30px; border: 1px solid rgba(224,232,240,.14); border-radius: 28px; background: linear-gradient(118deg, rgba(27,43,49,.98), rgba(22,34,45,.94) 62%, rgba(27,39,48,.9)); box-shadow: 0 28px 85px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.05); }
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.hero::before { top: -175px; right: -35px; width: 440px; height: 440px; border: 1px solid rgba(168,226,202,.22); border-radius: 50%; box-shadow: 0 0 0 42px rgba(168,226,202,.04), 0 0 0 88px rgba(168,226,202,.03), 0 0 0 138px rgba(168,226,202,.02); }
.hero::after { inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 75%); opacity: .8; }
.hero-inner { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; background: currentColor; content: ""; }
.hero h1 { max-width: 700px; margin: 0 0 17px; font-size: clamp(2.6rem, 7vw, 5.1rem); line-height: 1.01; letter-spacing: -.065em; text-wrap: balance; }
.hero-sub { max-width: 610px; margin: 0; color: #c1ccd5; font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions a, .button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 10px 19px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 720; text-decoration: none; transition: transform .16s, background .16s, border-color .16s, box-shadow .16s; }
.hero-actions a:hover, .button:hover:not(:disabled) { transform: translateY(-1px); }
.hero-actions .primary, .button-primary { color: #10221b; background: linear-gradient(135deg, #c8f0dc, #88cfb0); box-shadow: 0 8px 24px rgba(112,194,157,.19); }
.hero-actions .primary:hover, .button-primary:hover:not(:disabled) { background: linear-gradient(135deg, #d9f8e8, #9cdec0); box-shadow: 0 10px 27px rgba(112,194,157,.27); }
.hero-actions .secondary, .button-secondary { border-color: #536172; color: #eff3f6; background: rgba(255,255,255,.035); }
.hero-actions .secondary:hover, .button-secondary:hover:not(:disabled) { border-color: #8a98a7; background: rgba(255,255,255,.08); }
.button { cursor: pointer; }
.button:disabled { opacity: .65; cursor: wait; }

.content-section { margin: 42px 0; }
.section-heading { max-width: 680px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0 0 8px; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card, .card { padding: clamp(22px, 4vw, 32px); border: 1px solid rgba(222,231,239,.13); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,36,48,.97), rgba(17,27,38,.98)); box-shadow: 0 20px 55px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.035); }
.feature-number { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 18px; border: 1px solid rgba(168,226,202,.22); border-radius: 11px; color: var(--accent-strong); background: rgba(168,226,202,.08); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.closing-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; border: 1px solid rgba(168,226,202,.19); border-radius: 17px; background: linear-gradient(105deg, rgba(168,226,202,.09), rgba(255,255,255,.025)); }
.closing-panel h2 { margin: 0 0 3px; font-size: 1.2rem; }
.closing-panel p { margin: 0; color: var(--muted); font-size: 14px; }
.closing-panel a { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 9px 17px; border-radius: 10px; color: #10221b; background: linear-gradient(135deg, #c8f0dc, #88cfb0); font-weight: 720; text-decoration: none; }
.closing-panel a:hover { color: #10221b; background: linear-gradient(135deg, #d9f8e8, #9cdec0); }

.form-card { width: min(100%, 530px); margin: 0 auto; }
.form-card form { display: grid; gap: 17px; }
.card h2 { margin: 0 0 3px; font-size: 1.2rem; letter-spacing: -.025em; }
.card-intro { margin: 0; color: var(--muted); font-size: 13px; }
.form-group { display: grid; gap: 7px; }
label { color: #d8e0e7; font-size: 13px; font-weight: 650; }
input[type="email"], input[type="password"] { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #405164; border-radius: 10px; outline: 0; color: var(--text); background: #0f1822; font: inherit; transition: border-color .16s, box-shadow .16s, background .16s; }
input::placeholder { color: #8997a6; }
input:focus { border-color: var(--accent); background: #14222b; box-shadow: 0 0 0 3px rgba(168,226,202,.14); }
.form-card .button { width: 100%; margin-top: 2px; }
.form-hint { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: #e0ffed; }
.form-error, .form-success { margin: 0; padding: 10px 12px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.form-error { border-color: rgba(255,170,162,.32); color: var(--danger); background: rgba(152,47,47,.14); }
.form-success { border-color: rgba(145,214,175,.3); color: var(--success); background: rgba(37,112,70,.13); }
.form-error[hidden], .form-success[hidden] { display: none; }

.dashboard-wrap { max-width: 1000px; margin: 0 auto; }
.dashboard-hero { margin-bottom: 22px; padding: 30px 34px; }
.dashboard-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.dashboard-hero .hero-sub { font-size: 1rem; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, .85fr); align-items: start; gap: 18px; }
.dashboard-main { display: grid; gap: 18px; }
.dashboard-card { padding: clamp(22px, 3vw, 30px); }
.dashboard-card > h2 { margin-bottom: 17px; font-size: 1.25rem; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 17px; border: 1px solid rgba(221,231,239,.13); border-radius: 13px; background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); }
.avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(196,243,222,.4); border-radius: 15px; color: #10221b; background: linear-gradient(145deg,#d2f6e5,#83c9ab); font-size: 18px; font-weight: 800; }
.account-summary-copy { min-width: 0; }
.account-summary-copy strong, .account-summary-copy span { display: block; overflow-wrap: anywhere; }
.account-summary-copy strong { font-size: 14px; }
.account-summary-copy span { color: var(--muted); font-size: 12px; }
.dashboard-card form { display: grid; gap: 13px; margin-top: 17px; padding: 21px; border: 1px solid rgba(221,231,239,.1); border-radius: 13px; background: rgba(12,20,29,.3); }
.dashboard-card form h2 { font-size: 1.05rem; }
.dashboard-card form .button { justify-self: start; min-width: 160px; }
.dashboard-sidebar { display: grid; gap: 15px; }
.side-card { padding: 22px; border: 1px solid rgba(222,231,239,.12); border-radius: 16px; background: rgba(20,31,43,.8); }
.side-card h2 { margin: 0 0 9px; font-size: 1rem; }
.side-card p { margin: 0; color: var(--muted); font-size: 13px; }
.side-card p + p { margin-top: 10px; }
.side-card .button { margin-top: 16px; }
.side-card .security-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent-strong); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.security-label::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(168,226,202,.6); content: ""; }
.dashboard-card #signoutButton { margin-top: 0; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 17px; border-top: 1px solid rgba(218,228,238,.12); color: #8f9baa; font-size: 12px; }
.app-footer p { margin: 0; }
.app-footer a { color: #aeb9c5; text-decoration: none; }
.app-footer a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid rgba(196,243,222,.72); outline-offset: 3px; }
button:focus-visible, a:focus-visible { border-radius: 8px; }
#statusMessage { margin-bottom: 15px; }

@media (max-width: 760px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .page { width: min(100% - 28px, 1120px); padding-bottom: 32px; }
    .site-header { height: 68px; margin-bottom: 25px; }
    .site-nav { gap: 0; }
    .site-nav a { padding: 8px 9px; font-size: 13px; }
    .hero { padding: 31px 23px; margin-bottom: 20px; border-radius: 19px; }
    .hero::before { top: -190px; right: -250px; }
    .hero-actions { display: grid; }
    .hero-actions a { width: 100%; }
    .closing-panel { align-items: stretch; flex-direction: column; padding: 22px; }
    .dashboard-hero { padding: 25px 22px; }
    .dashboard-card form { padding: 18px 15px 16px; }
    .dashboard-card form .button { width: 100%; }
    .dashboard-sidebar { grid-template-columns: 1fr; }
    .app-footer { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
