/* ============================================================
   Plastic Brains – Landing Page
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Base ---------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: hsl(0, 0%, 5%);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(
            160deg,
            hsla(357, 100%, 93%, 1) 0%,
            hsla(354, 54%, 89%, 1) 40%,
            hsl(206.67, 17.65%, 90%) 100%
        );
    background-attachment: fixed;
}

/* ---------- Background circles (mirrors app's GlassMorphismWithCircle) ---------- */
.bg-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

.bg-circle--top-left {
    width: 480px;
    height: 480px;
    top: -80px;
    left: -120px;
    background: hsla(210, 100%, 67%, 0.18);
}

.bg-circle--bottom-right {
    width: 520px;
    height: 520px;
    bottom: -120px;
    right: -120px;
    background: hsla(357, 80%, 78%, 0.16);
}

/* ---------- Layout ---------- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 680px;
}

/* ---------- Card (frosted glass — mirrors FrostedCard) ---------- */
.card {
    background: hsla(0, 0%, 100%, 0.61);
    border: 1px solid hsla(0, 0%, 100%, 0.23);
    border-radius: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 1px 0 hsla(0, 0%, 100%, 0.60) inset,
        0 2px 16px hsla(219, 67%, 73%, 0.14),
        0 4px 32px hsla(0, 0%, 0%, 0.05);
}

/* ---------- Divider ---------- */
.divider {
    height: 1px;
    background: hsla(0, 0%, 0%, 0.06);
    margin: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:hover  { opacity: 0.80; transform: translateY(-1px); }
.btn:active { opacity: 0.70; transform: translateY(0); }

.btn--primary {
    background: hsl(0, 0%, 5%);
    color: hsl(0, 0%, 100%);
    border-color: hsl(0, 0%, 5%);
}

.btn--sm  { padding: 9px 16px; font-size: 14px; }
.btn--lg  { padding: 15px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 13px 0;
    background: hsla(0, 0%, 100%, 0.48);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.28);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nav__logo {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: contain;
}

.nav__logo--sm { width: 24px; height: 24px; border-radius: 6px; }

.nav__name {
    font-size: 15px;
    font-weight: 700;
    color: hsl(0, 0%, 5%);
}

.nav__name--sm { font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    margin: 0 auto 28px;
}

.hero__heading {
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: hsl(0, 0%, 5%);
    margin-bottom: 20px;
}

.hero__subtext {
    font-size: 17px;
    line-height: 1.7;
    color: hsla(0, 0%, 0%, 0.60);
    margin-bottom: 36px;
}

.hero__footnote {
    margin-top: 16px;
    font-size: 13px;
    color: hsla(0, 0%, 0%, 0.38);
}

/* ---------- Sections ---------- */
.section {
    padding: 64px 0;
    position: relative;
    z-index: 1;
}

.section--cta { padding-bottom: 80px; }

.section__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: hsla(0, 0%, 0%, 0.40);
    margin-bottom: 14px;
}

/* ---------- List items (mirrors SettingsRow pattern) ---------- */
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px;
}

.list-item__num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: hsl(0, 0%, 5%);
    color: hsl(0, 0%, 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.list-item__title {
    font-size: 15px;
    font-weight: 700;
    color: hsl(0, 0%, 5%);
    margin-bottom: 4px;
}

.list-item__body {
    font-size: 15px;
    line-height: 1.55;
    color: hsla(0, 0%, 0%, 0.60);
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature {
    padding: 22px 20px;
}

.feature__title {
    font-size: 15px;
    font-weight: 700;
    color: hsl(0, 0%, 5%);
    margin-bottom: 6px;
}

.feature__body {
    font-size: 14px;
    line-height: 1.6;
    color: hsla(0, 0%, 0%, 0.60);
}

/* ---------- CTA ---------- */
.cta-card {
    padding: 44px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-card__heading {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: hsl(0, 0%, 5%);
}

.cta-card__body {
    font-size: 15px;
    color: hsla(0, 0%, 0%, 0.55);
    margin-bottom: 4px;
}

/* ---------- Links ---------- */
.link {
    color: hsl(220, 90%, 50%);
    text-decoration: underline;
    text-decoration-color: hsla(220, 90%, 50%, 0.30);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s;
}
.link:hover { text-decoration-color: hsl(220, 90%, 50%); }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    padding: 28px 0 32px;
    border-top: 1px solid hsla(0, 0%, 0%, 0.07);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-size: 14px;
    color: hsla(0, 0%, 0%, 0.55);
    transition: color 0.15s;
}
.footer__link:hover { color: hsl(0, 0%, 5%); }

.footer__copy {
    font-size: 12px;
    color: hsla(0, 0%, 0%, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .hero { padding: 64px 0 56px; }
    .section { padding: 48px 0; }

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

    .footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }

    .btn--lg { width: 100%; }

    .cta-card { padding: 32px 20px; }
}
