/* Public landing + privacy styling. Matches the login page background: a dark
 * navy gradient with an optional starfield canvas layered behind the content.
 * Header sits transparent on top of the dark background; the transparent
 * (no-background) Wisedeals logo is used. White cards keep the layout readable. */

:root {
    --wd-navy: #264b6d;
    --wd-navy-deep: #16304a;
    --wd-text: #1d1d1f;
    --wd-text-light: #f5f7fa;
    --wd-muted: #a8b3c4;
    --wd-card: #ffffff;
    --wd-border: rgba(255, 255, 255, 0.14);
}

* {
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    color: var(--wd-text-light);
    background: #0b1220;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark navy gradient background, matching the login scene. */
body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 520px at 18% 16%, rgba(110, 190, 255, 0.26), rgba(0,0,0,0) 62%),
        radial-gradient(980px 520px at 86% 40%, rgba(140, 160, 255, 0.18), rgba(0,0,0,0) 60%),
        radial-gradient(900px 520px at 50% 105%, rgba(0, 0, 0, 0.28), rgba(0,0,0,0) 62%),
        linear-gradient(135deg, #0f2a45, #111827);
    background-attachment: fixed;
}

.public-scene {
    position: relative;
    z-index: 1;
}

/* Optional starfield canvas, sits behind content. */
.public-universe {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(120, 180, 255, 0.10));
}

/* The login/registration pages set <body class="loginScene"> to
 * display:grid with place-items:start center and a body padding, so the header
 * is inset from the viewport edges and shrinks to content width. To make it a
 * true full-bleed banner matching the landing/privacy pages, we:
 *  - move the body padding onto the grid children that need it (the card),
 *    not the body itself, so the header can span the full viewport width;
 *  - force a single 1fr grid column so stretch actually reaches the edges. */
body.loginScene {
    grid-template-columns: 1fr;
    padding: 0 !important;
}

/* The card keeps its own padding so it isn't flush against the viewport. */
body.loginScene .login-container.cardWrap {
    padding: clamp(18px, 4vw, 44px);
}

/* --- Header --- */
.public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100vw;
    /* Center the full-bleed banner within the grid column. */
    justify-self: center;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background: rgba(15, 42, 69, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wd-border);
}

.public-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-brand {
    display: inline-flex;
    align-items: center;
}

.public-brand__logo {
    height: 40px;
    width: auto;
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--wd-text-light);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.public-nav__link:hover {
    background: rgba(255, 255, 255, 0.10);
}

.public-nav__link--primary {
    background: linear-gradient(135deg, var(--wd-navy) 0%, var(--wd-navy-deep) 100%);
    color: #fff;
}

.public-nav__link--primary:hover {
    background: linear-gradient(135deg, var(--wd-navy-deep) 0%, var(--wd-navy) 100%);
    color: #fff;
}

/* --- Hero --- */
.hero {
    padding: 96px 24px 64px;
    text-align: center;
}

.hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    color: #fff;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--wd-muted);
    line-height: 1.6;
    margin: 0 0 32px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wd-navy) 0%, var(--wd-navy-deep) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* --- Features --- */
.features {
    padding: 48px 24px 80px;
}

.features__grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--wd-card);
    color: var(--wd-text);
    border: 1px solid var(--wd-border);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wd-navy) 0%, var(--wd-navy-deep) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.feature-card h2 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--wd-navy-deep);
}

.feature-card p {
    font-size: 15px;
    color: #5a5a5e;
    line-height: 1.6;
    margin: 0;
}

/* --- Privacy policy --- */
.policy {
    padding: 64px 24px;
}

.policy__inner {
    max-width: 760px;
    margin: 0 auto;
    background: var(--wd-card);
    color: var(--wd-text);
    border: 1px solid var(--wd-border);
    border-radius: 18px;
    padding: 48px 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.policy h1 {
    font-size: 32px;
    color: var(--wd-navy-deep);
    margin: 0 0 4px;
}

.policy__updated {
    color: #86868b;
    font-size: 13px;
    margin: 0 0 32px;
}

.policy h2 {
    font-size: 19px;
    color: var(--wd-navy-deep);
    margin: 28px 0 10px;
}

.policy p, .policy ul {
    font-size: 15px;
    line-height: 1.65;
    color: var(--wd-text);
}

.policy ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}

.policy li {
    margin-bottom: 6px;
}

.policy a {
    color: var(--wd-navy);
    font-weight: 600;
    text-decoration: none;
}

.policy a:hover {
    text-decoration: underline;
}

.policy code {
    background: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* --- Footer --- */
.public-footer {
    border-top: 1px solid var(--wd-border);
    background: rgba(15, 42, 69, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 28px 24px;
    margin-top: 32px;
}

.public-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}

.public-footer__logo {
    height: 28px;
    width: auto;
}

.public-footer__nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.public-footer__nav a {
    color: var(--wd-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.public-footer__nav a:hover {
    text-decoration: underline;
}

.public-footer__copy {
    font-size: 13px;
    color: var(--wd-muted);
    margin: 0;
}

@media (max-width: 640px) {
    .hero { padding: 64px 20px 40px; }
    .features { padding: 32px 20px 56px; }
    .policy__inner { padding: 32px 24px; }
    .public-brand__logo { height: 32px; }
}
