:root {
    --bg: #fff8ef;
    --bg-deep: #f4e3cf;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #fffdf9;
    --ink: #2f2116;
    --ink-soft: #6b5545;
    --accent: #b65b35;
    --accent-2: #e49853;
    --mint: #8bbf9b;
    --border: rgba(74, 47, 30, 0.14);
    --radius: 20px;
    --shadow: 0 18px 44px rgba(70, 34, 18, 0.14);
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.5;
    background: linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 14%, rgba(182, 91, 53, 0.16), transparent 34%),
        radial-gradient(circle at 89% 18%, rgba(139, 191, 155, 0.17), transparent 36%),
        radial-gradient(circle at 40% 90%, rgba(228, 152, 83, 0.16), transparent 30%);
    animation: drift 15s ease-in-out infinite alternate;
}

.landing {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.2rem 1rem 3.6rem;
}

.hero {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    padding: 1.4rem 1rem 2rem;
    text-align: center;
    overflow: clip;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: -1;
}

.hero::before {
    width: 14rem;
    height: 14rem;
    background: rgba(182, 91, 53, 0.16);
    top: -6rem;
    right: -5rem;
}

.hero::after {
    width: 11rem;
    height: 11rem;
    background: rgba(139, 191, 155, 0.22);
    left: -4rem;
    bottom: -4rem;
}

.lang-switch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(44, 36, 25, 0.14);
    background: #fff;
    box-shadow: 0 5px 16px rgba(44, 36, 25, 0.1);
}

.lang-btn {
    margin: 0;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
    background: rgba(182, 91, 53, 0.12);
    color: var(--ink);
}

.lang-btn.is-active {
    background: var(--accent);
    color: #fff;
}

.lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.brand-logo {
    width: min(320px, 75vw);
    height: auto;
    display: block;
    margin: 0 auto 0.7rem;
    border-radius: 14px;
    transform: translateY(6px);
    opacity: 0;
    animation: lift-in 0.7s ease-out forwards;
}

.kicker {
    margin: 0.3rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0;
    animation: fade-up 0.65s 0.1s ease-out forwards;
}

h1 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.95rem, 6vw, 3.4rem);
    line-height: 1.07;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fade-up 0.65s 0.18s ease-out forwards;
}

.subtitle {
    max-width: 44rem;
    margin: 0.95rem auto 0;
    color: var(--ink-soft);
    font-size: 1rem;
    opacity: 0;
    animation: fade-up 0.65s 0.26s ease-out forwards;
}

.actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fade-up 0.65s 0.34s ease-out forwards;
}

.button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.15rem;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.01);
}

.button.primary {
    color: #fff;
    background: linear-gradient(180deg, var(--accent) 0%, #9c4a2a 100%);
    box-shadow: 0 12px 18px rgba(182, 91, 53, 0.24);
}

.button.primary:hover {
    box-shadow: 0 14px 24px rgba(182, 91, 53, 0.32);
}

.button.ghost {
    color: var(--ink);
    border-color: var(--border);
    background: #fffdfb;
}

.hero-pills {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-pills span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5a4535;
    border-radius: 999px;
    border: 1px solid rgba(74, 47, 30, 0.18);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.32rem 0.68rem;
    animation: pulse 3.5s ease-in-out infinite;
}

.hero-pills span:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-pills span:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-pills span:nth-child(4) {
    animation-delay: 0.9s;
}

.hero-pills span:nth-child(5) {
    animation-delay: 1.2s;
}

.features,
.examples,
.feedback {
    margin-top: 1.2rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.78rem;
}

.feature {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-solid);
    box-shadow: 0 10px 24px rgba(47, 33, 22, 0.08);
    padding: 1.05rem;
}

.feature h2 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.32rem;
}

.feature p {
    margin: 0.45rem 0 0;
    color: var(--ink-soft);
}

.section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 0.9rem;
}

.section-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent);
}

.section-head h2 {
    margin: 0.35rem 0 0.4rem;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.5rem, 4.6vw, 2.25rem);
}

.section-head p {
    margin: 0;
    color: var(--ink-soft);
}

.example-groups {
    display: grid;
    gap: 0.85rem;
}

.example-group {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 253, 249, 0.78);
    box-shadow: 0 8px 20px rgba(47, 33, 22, 0.08);
    overflow: hidden;
}

.example-group-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 243, 0.85));
}

.example-group-summary::-webkit-details-marker {
    display: none;
}

.example-group-summary h3 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.18rem;
}

.example-group-summary p {
    margin: 0.18rem 0 0;
    color: var(--ink-soft);
    font-size: 0.87rem;
    max-width: 52rem;
}

.example-group-toggle {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 47, 30, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    background: #fffdf9;
    transition: transform 0.18s ease;
}

.example-group[open] .example-group-toggle {
    transform: rotate(180deg);
}

.example-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0 0.9rem 0.9rem;
}

.examples .example-tier,
.examples .tier {
    background: #fffdf9;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(47, 33, 22, 0.08);
    border: 1px solid rgba(44, 36, 25, 0.09);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.examples .example-tier:hover,
.examples .tier:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(47, 33, 22, 0.12);
}

.examples .example-tier-header,
.examples .tier-header {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(44, 36, 25, 0.08);
    background: linear-gradient(90deg, rgba(107, 143, 113, 0.14), transparent);
    border-left: 4px solid #6b8f71;
}

.examples .example-tier-emoji,
.examples .tier-emoji {
    font-size: 1.2rem;
}

.examples .example-tier-header h3,
.examples .tier-header h3 {
    margin: 0;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.08rem;
}

.examples .example-tier-header p,
.examples .tier-header p {
    margin: 0.12rem 0 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.example-prompt {
    padding: 0.95rem 1rem 0.2rem;
}

.label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    color: var(--accent);
}

.example-prompt p:last-child {
    margin: 0.38rem 0 0;
    padding: 0.62rem 0.74rem;
    border-radius: 12px;
    background: rgba(44, 36, 25, 0.05);
    color: var(--ink);
}

.examples .example-rec,
.examples .rec {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(44, 36, 25, 0.08);
}

.examples .example-rec h4,
.examples .rec-title {
    margin: 0;
    font-size: 1rem;
}

.examples .example-rec-meta,
.examples .rec-meta {
    margin: 0.3rem 0 0.48rem;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.examples .example-score,
.examples .score {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    background: rgba(44, 36, 25, 0.06);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
}

.examples .example-reason,
.examples .reasoning {
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    color: var(--ink);
}

.feedback-form {
    max-width: 40rem;
    margin: 0 auto;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    box-shadow: 0 12px 28px rgba(47, 33, 22, 0.1);
    padding: 1rem;
}

.feedback-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.feedback-form textarea {
    width: 100%;
    border: 1px solid rgba(74, 47, 30, 0.2);
    border-radius: 14px;
    padding: 0.72rem 0.85rem;
    font: inherit;
    background: #fff;
    resize: vertical;
    min-height: 6.2rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 91, 53, 0.15);
}

.feedback-form .button {
    margin-top: 0.8rem;
}

.feedback-status {
    min-height: 1.4em;
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 0 1rem 2rem;
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(6px);
    padding: 1rem;
    text-align: center;
}

.footer-inner p {
    margin: 0.1rem 0;
}

.footer-inner p:first-child {
    font-weight: 800;
}

.footer-links {
    margin-top: 0.5rem;
    display: inline-flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lift-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes drift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.04) translate(-1.4%, 0.8%);
    }
}

@media (min-width: 760px) {
    .landing {
        padding: 3.1rem 1.5rem 4.1rem;
    }

    .hero {
        padding: 2.2rem 2rem 2.3rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .example-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feedback-form {
        padding: 1.2rem;
    }
}

@media (max-width: 520px) {
    .lang-switch {
        position: static;
        margin: 0 auto 0.9rem;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
