:root {
    --ink: #f8fafc;
    --muted: #aab4bd;
    --line: rgba(255, 255, 255, 0.18);
    --panel: rgba(7, 12, 15, 0.72);
    --teal: #2dd4bf;
    --gold: #f4b83c;
    --coral: #ff6b5f;
    --dark: #040709;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Instrument Serif", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--dark);
    color: var(--ink);
    font-family: var(--font);
}

body {
    margin: 0;
    min-height: 100svh;
    overflow-x: hidden;
}

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

button,
input {
    font: inherit;
}

.site-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 0;
    padding: 18px clamp(20px, 5vw, 72px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 0.65rem;
    letter-spacing: 0;
}

.brand img {
    height: 34px;
    width: 34px;
}

.site-header nav {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    color: rgba(248, 250, 252, 0.76);
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink) !important;
    padding: 0.72rem 1rem;
}

.hero {
    min-height: 100svh;
    overflow: hidden;
    padding: 104px clamp(20px, 5vw, 72px) 56px;
    position: relative;
}

.hero-media,
.hero-media img,
.hero-shade {
    inset: 0;
    position: absolute;
}

.hero-media img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.hero-shade {
    background:
        radial-gradient(circle at 72% 58%, rgba(244, 184, 60, 0.12), transparent 29%),
        linear-gradient(90deg, rgba(4, 7, 9, 0.98) 0%, rgba(4, 7, 9, 0.88) 37%, rgba(4, 7, 9, 0.34) 72%, rgba(4, 7, 9, 0.58) 100%),
        linear-gradient(180deg, rgba(4, 7, 9, 0.46), rgba(4, 7, 9, 0.88));
}

.hero-inner {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-family: var(--serif);
    font-size: clamp(5rem, 14vw, 11.5rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.78;
    margin-bottom: 1.15rem;
}

.hero-line {
    color: rgba(248, 250, 252, 0.82);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.35;
    margin-bottom: 1.6rem;
    max-width: 640px;
}

.has-result .hero {
    padding-top: 86px;
}

.has-result h1 {
    font-size: clamp(4.7rem, 9.5vw, 8.2rem);
}

.has-result .hero-line {
    margin-bottom: 1rem;
}

.generator {
    backdrop-filter: blur(22px);
    background: linear-gradient(135deg, rgba(5, 12, 15, 0.76), rgba(12, 20, 24, 0.54));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    max-width: 760px;
    padding: 18px;
}

.generator > label {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.prompt-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 164px;
}

.prompt-row input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--ink);
    min-height: 56px;
    outline: none;
    padding: 0 1rem;
    width: 100%;
}

.prompt-row input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.prompt-row input::placeholder {
    color: rgba(248, 250, 252, 0.46);
}

.prompt-row button,
.result-actions a {
    align-items: center;
    background: linear-gradient(135deg, var(--teal), var(--gold));
    border: 0;
    border-radius: 8px;
    color: #071012;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 0.55rem;
    justify-content: center;
    min-height: 56px;
    padding: 0 1rem;
}

.prompt-row button:disabled,
.prompt-row input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.prompt-row svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 18px;
}

.mode-switch {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
}

.mode-switch label {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.82);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0 1rem;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mode-switch label:hover {
    transform: translateY(-1px);
}

.mode-switch label.is-selected {
    border-color: var(--teal);
    color: var(--ink);
}

.mode-switch input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.message,
.result {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 16px;
    padding-top: 16px;
}

.message {
    color: rgba(248, 250, 252, 0.82);
}

.message a {
    color: var(--teal);
    font-weight: 900;
    margin-left: 0.35rem;
}

.result {
    animation: reveal 420ms ease both;
}

.result > div:first-child {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.result p {
    color: var(--ink);
    font-size: clamp(0.98rem, 1.25vw, 1.12rem);
    line-height: 1.36;
    margin-bottom: 1rem;
    max-width: 680px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-actions a + a {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ink);
}

.proof {
    align-items: end;
    background: #f8fafc;
    color: #071012;
    display: grid;
    gap: clamp(20px, 5vw, 84px);
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.65fr);
    padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.proof .eyebrow {
    color: #0f766e;
}

.proof h2 {
    font-size: clamp(2.1rem, 5vw, 5.5rem);
    letter-spacing: 0;
    line-height: 0.94;
    margin-bottom: 0;
}

.proof > p {
    color: #334155;
    font-size: clamp(1.06rem, 1.4vw, 1.22rem);
    line-height: 1.55;
    margin-bottom: 0.35rem;
}

.tool-rail {
    background: #071012;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-rail a {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink);
    min-height: 184px;
    padding: 28px;
    transition: background 180ms ease;
}

.tool-rail a:hover {
    background: rgba(45, 212, 191, 0.08);
}

.tool-rail span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 2.2rem;
    text-transform: uppercase;
}

.tool-rail strong {
    display: block;
    font-size: clamp(1.25rem, 2vw, 2rem);
    letter-spacing: 0;
    line-height: 1.05;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-inner {
        animation: rise 680ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero-media img {
        animation: slow-scale 16s ease-out both;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slow-scale {
        from {
            transform: scale(1.03);
        }
        to {
            transform: scale(1);
        }
    }
}

@media (max-width: 860px) {
    .site-header {
        padding: 14px 20px;
    }

    .site-header nav a:first-child {
        display: none;
    }

    .hero {
        padding: 92px 20px 32px;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(4, 7, 9, 0.82) 0%, rgba(4, 7, 9, 0.94) 42%, rgba(4, 7, 9, 0.82) 100%),
            linear-gradient(90deg, rgba(4, 7, 9, 0.96), rgba(4, 7, 9, 0.46));
    }

    h1 {
        font-size: clamp(4.8rem, 22vw, 7rem);
    }

    .has-result h1 {
        font-size: clamp(3.5rem, 17vw, 5.2rem);
    }

    .generator {
        padding: 14px;
    }

    .prompt-row {
        grid-template-columns: 1fr;
    }

    .tool-rail,
    .proof {
        grid-template-columns: 1fr;
    }

    .tool-rail a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        min-height: 138px;
    }
}

@media (max-width: 430px) {
    .brand span {
        max-width: 126px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 0.65rem 0.8rem;
    }

    .hero-line {
        font-size: 1.08rem;
    }
}
