/* Good Quality design tokens (from goodquality.tech) */
:root {
    --navy: #2F2E63;
    --navy-dark: #242350;
    --orange: #F2994A;
    --orange-hover: #F19C50;
    --ink: #151718;
    --text: #333333;
    --muted: #6A6A74;
    --grey: #828282;
    --light: #FBFBFB;
    --surface: #F5F5F5;
    --line: #E6E6EE;
    --white: #FFFFFF;

    --font-heading: "Poppins", sans-serif;
    --font-label: "Arimo", sans-serif;
    --font-mono: "Courier Prime", monospace;
    --font-body: "Roboto", sans-serif;

    --radius: 10px;
    --radius-lg: 18px;
    --shadow-header: 0px 6px 30px -4px rgba(0, 0, 0, .05);
    --shadow-btn: 0px 9px 14px 0px rgba(89, 86, 233, .19);
    --shadow-card: 0 20px 50px -20px rgba(47, 46, 99, .25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    font-family: var(--font-label);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: background-color .25s, transform .2s, box-shadow .25s;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-btn);
    padding: 18px 40px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--orange-hover);
}

.btn-primary:active {
    transform: scale(.97);
}

.btn-block {
    width: 100%;
}

.btn-primary .fa-refresh {
    transition: transform .5s;
}

.btn-primary:hover .fa-refresh {
    transform: rotate(180deg);
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    transition: box-shadow .25s;
}

.site-header.scrolled {
    box-shadow: var(--shadow-header);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 96px;
}

.logo img {
    width: 190px;
}

.header-cta {
    margin-left: auto;
    padding: 14px 28px;
    font-size: 14px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    padding: 90px 0 170px;
    text-align: center;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47, 46, 99, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 46, 99, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 153, 74, .22), transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    margin: 16px 0 20px;
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #000;
}

.accent {
    color: var(--navy);
    background: linear-gradient(transparent 68%, rgba(242, 153, 74, .45) 68%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.lead {
    max-width: 640px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.hero-badges .fa {
    color: var(--orange);
}

/* Generator cards */
.generators {
    position: relative;
    z-index: 2;
    margin-top: -110px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1040px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px -22px rgba(47, 46, 99, .35);
}

.card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    font-size: 24px;
    color: var(--white);
    background: var(--navy);
    border-radius: 14px;
}

.card-eyebrow {
    display: block;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
}

.card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.result {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.result-value {
    flex: 1;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    padding: 0 16px;
    font-family: var(--font-mono);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--navy);
    background: var(--light);
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    white-space: nowrap;
    transition: border-color .3s, background-color .3s;
}

.result-value:empty::before {
    content: "— — — — —";
    font-weight: 400;
    letter-spacing: 2px;
    color: #C4C4CF;
}

.result-value:not(:empty) {
    border-style: solid;
    border-color: rgba(47, 46, 99, .2);
    background: var(--white);
}

.result-value.flash {
    animation: flash .6s ease-out;
}

@keyframes flash {
    0% { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(242, 153, 74, .2); }
    100% { box-shadow: 0 0 0 0 rgba(242, 153, 74, 0); }
}

.copy-btn {
    flex-shrink: 0;
    width: 76px;
    font-size: 22px;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color .2s, border-color .2s, background-color .2s;
}

.copy-btn:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.copy-btn.copied {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
}

/* Features */
.features {
    padding: 110px 0 120px;
    text-align: center;
}

.features h2 {
    margin: 12px 0 56px;
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1040px;
    margin: 0 auto;
}

.feature {
    padding: 36px 28px;
    text-align: left;
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .3s, background-color .3s;
}

.feature:hover {
    background: var(--white);
    border-color: var(--orange);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--orange);
    background: rgba(242, 153, 74, .12);
    border-radius: 12px;
}

.feature h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: var(--light);
    padding: 50px 0 30px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 236px;
    margin-bottom: 60px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
}

.footer-nav a {
    position: relative;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--white);
    padding: 4px 0;
}

.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    opacity: 0;
    transition: opacity .25s;
}

.footer-nav a:hover::after {
    opacity: 1;
}

.social {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social a {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    font-size: 22px;
    color: var(--light);
    border: 1px solid var(--light);
    border-radius: 50%;
    transition: color .2s, border-color .2s;
}

.social a:hover {
    color: var(--orange);
    border-color: var(--orange);
}

.footer-divider {
    width: 60%;
    margin: 40px auto 24px;
    border: 0;
    border-top: 1px solid var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 16px;
    color: var(--light);
}

.footer-bottom p + p {
    font-size: 14px;
    opacity: .75;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-label);
    font-weight: 700;
    color: var(--white);
    background: var(--ink);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity .25s, transform .25s;
}

.toast .fa {
    color: var(--orange);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 960px) {
    .header-inner {
        height: 80px;
    }

    .logo img {
        width: 160px;
    }

    .header-cta {
        padding: 12px 20px;
        font-size: 13px;
    }

    .cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        max-width: 560px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 150px;
    }

    .card {
        padding: 24px 20px;
    }

    .result-value {
        height: 64px;
        letter-spacing: 2px;
    }

    .copy-btn {
        width: 64px;
    }

    .features {
        padding: 80px 0;
    }

    .logo img {
        width: 130px;
    }

    .footer-logo {
        margin-bottom: 36px;
    }

    .footer-nav a {
        font-size: 16px;
    }

    .footer-divider {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
