/* ==========================================================================
   Premium Frontend Theme
   ========================================================================== */
:root {
    --ink: #111827;
    --navy: #172033;
    --deep: #08111f;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --soft-2: #eef4ff;
    --line: #dce3ef;
    --muted: #5e6b7e;
    --muted-2: #8b98aa;
    --indigo: #3157d5;
    --indigo-dark: #1f3f9a;
    --gold: #f6b93b;
    --gold-soft: #fff4dc;
    --teal: #0f9f9a;
    --emerald: #18a058;
    --rose: #e94f64;
    --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.07);
    --shadow-md: 0 16px 36px rgba(17, 24, 39, 0.11);
    --shadow-lg: 0 26px 70px rgba(8, 17, 31, 0.22);
    --radius: 8px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', Arial, sans-serif;
    --container: 1280px;
    --transition: 220ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    color: var(--navy);
    font-family: var(--font-heading);
    line-height: 1.1;
}

p {
    color: var(--muted);
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.eyebrow {
    color: var(--indigo);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.btn {
    align-items: center;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.22);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f08b2b);
    box-shadow: 0 14px 28px rgba(240, 139, 43, 0.3);
    color: #1d2330;
}

.btn-primary:hover {
    box-shadow: 0 18px 34px rgba(240, 139, 43, 0.38);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--paper);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-heading {
    margin: 0 auto 2.4rem;
    max-width: 720px;
    text-align: center;
}

.section-heading.compact {
    margin-bottom: 1.4rem;
}

.section-heading h2,
.feature-copy h2,
.tips-intro h2,
.cta-panel h2 {
    font-size: 2.6rem;
    margin-top: 0.55rem;
}

.section-heading p,
.tips-intro p {
    font-size: 1.02rem;
    margin-top: 0.8rem;
}

.content-section {
    padding: 50px 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 227, 239, 0.82);
    left: 0;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 30;
}

.header-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 74px;
}

.logo {
    height: 72px;
    width: auto;
    background: #fefefe;
    border-radius: 12px;
    padding: 5px;
}

.main-nav ul {
    align-items: center;
    display: flex;
    gap: 1.6rem;
}

.main-nav a {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 800;
    transition: color var(--transition);
}

.main-nav a:hover {
    color: var(--indigo);
}

.nav-toggle {
    background: transparent;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    background: var(--navy);
    border-radius: 10px;
    display: block;
    height: 2px;
    transition: transform var(--transition), opacity var(--transition);
    width: 24px;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
    background: var(--deep);
    min-height: 680px;
    overflow: hidden;
    position: relative;
}

.hero-media {
    background-image:
        linear-gradient(90deg, rgba(8, 17, 31, 0.9) 0%, rgba(8, 17, 31, 0.72) 45%, rgba(8, 17, 31, 0.28) 100%),
        url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1800&q=82");
    background-position: center;
    background-size: cover;
    inset: 0;
    position: absolute;
}

.hero-section::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    inset: 0;
    opacity: 0.26;
    position: absolute;
}

.hero-container {
    min-height: 680px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    padding-top: 82px;
}

.hero-content .eyebrow {
    color: var(--gold);
}

.hero-content h1 {
    color: var(--paper);
    font-size: 4.8rem;
    margin-top: 0.85rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.16rem;
    margin-top: 1.2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.trust-strip {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.trust-strip span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.55rem 0.8rem;
}

/* ==========================================================================
   Generator
   ========================================================================== */
.generator-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 50px 20px;
}

.generator-shell {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.mode-tabs {
    background: #f4f7fc;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
}

.mode-tab {
    background: transparent;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
    padding: 0.9rem 1rem;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.mode-tab.active {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--indigo);
}

.generator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.generator-main {
    padding: 2rem;
}

.generator-aside {
    background:
        linear-gradient(145deg, rgba(23, 32, 51, 0.96), rgba(31, 63, 154, 0.92)),
        url("https://images.unsplash.com/photo-1488190211105-8b0e65b80b4e?auto=format&fit=crop&w=700&q=80");
    background-position: center;
    background-size: cover;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--paper);
    padding: 2rem;
}

.aside-label {
    color: var(--gold);
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.generator-aside h3 {
    color: var(--paper);
    font-size: 1.7rem;
    margin-top: 0.7rem;
}

.generator-aside p {
    color: rgba(255, 255, 255, 0.76);
    margin-top: 0.75rem;
}

.brief-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.brief-stack span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
}

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: block;
}

.form-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    position: relative;
}

.form-group label,
.chat-brief label {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 900;
}

.form-group input,
.form-group select,
.chat-brief textarea {
    background: var(--paper);
    border: 1px solid #cfd8e6;
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 50px;
    outline: none;
    padding: 0.86rem 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235e6b7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.9rem center;
    background-repeat: no-repeat;
    padding-right: 2.6rem;
}

.form-group input:focus,
.form-group select:focus,
.chat-brief textarea:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.12);
}

.native-select-hidden {
    display: none;
}

.custom-select {
    position: relative;
    z-index: 3;
}

.custom-select.open {
    z-index: 20;
}

.custom-select-trigger {
    align-items: center;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #cfd8e6;
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    min-height: 50px;
    padding: 0.86rem 0.95rem;
    text-align: left;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    width: 100%;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: rgba(49, 87, 213, 0.7);
    box-shadow: 0 0 0 4px rgba(49, 87, 213, 0.1);
}

.custom-select-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-icon {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    margin-left: 0.75rem;
    transform: scaleX(1.15);
    transition: transform var(--transition), color var(--transition);
    width: 22px;
}

.custom-select.open .custom-select-icon {
    color: var(--indigo);
    transform: rotate(180deg) scaleX(1.15);
}

.custom-select-list {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(49, 87, 213, 0.22);
    border-radius: var(--radius);
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
    left: 0;
    max-height: 290px;
    opacity: 0;
    overflow: auto;
    padding: 0.45rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.custom-select.open .custom-select-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-select-option {
    align-items: center;
    background: transparent;
    border-radius: 7px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    width: 100%;
}

.custom-select-option:hover,
.custom-select-option:focus {
    background: var(--soft-2);
    color: var(--indigo);
    outline: none;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(49, 87, 213, 0.12), rgba(15, 159, 154, 0.1));
    color: var(--indigo-dark);
}

.custom-select-option.selected::after {
    background: var(--indigo);
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    margin-left: 0.75rem;
    width: 7px;
}

.custom-value-field {
    animation: fadeUp 180ms ease both;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(49, 87, 213, 0.18);
    border-left: 3px solid var(--indigo);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    padding: 0.85rem;
}

.custom-value-field label {
    color: var(--indigo-dark);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.custom-value-field input {
    min-height: 46px;
}

.chat-brief {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-brief textarea {
    min-height: 178px;
    resize: vertical;
}

.suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.suggestion-chip {
    background: var(--soft-2);
    border: 1px solid #d5e1fa;
    border-radius: 999px;
    color: var(--indigo-dark);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.55rem 0.8rem;
    transition: background var(--transition), transform var(--transition);
}

.suggestion-chip:hover {
    background: #e5edff;
    transform: translateY(-1px);
}

.form-bottom-row {
    align-items: end;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(160px, 240px) minmax(220px, 1fr);
    margin-top: 1.4rem;
    padding-top: 1.4rem;
}

.generate-button {
    border-radius: var(--radius);
    min-height: 52px;
    width: 100%;
}

.generate-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.button-spinner {
    animation: spin 1s linear infinite;
    border: 2px solid rgba(29, 35, 48, 0.22);
    border-radius: 50%;
    border-top-color: #1d2330;
    display: inline-block;
    height: 18px;
    width: 18px;
}

/* ==========================================================================
   Results
   ========================================================================== */
.results-container {
    background: var(--paper);
    padding: 50px 20px;
}

.loading-state {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto 1.8rem;
    max-width: 600px;
    padding: 1.2rem;
}

.spinner {
    animation: spin 1s linear infinite;
    border: 3px solid rgba(49, 87, 213, 0.16);
    border-radius: 50%;
    border-top-color: var(--indigo);
    display: inline-block;
    height: 28px;
    width: 28px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-box {
    background: #fff3f5;
    border: 1px solid rgba(233, 79, 100, 0.34);
    border-radius: var(--radius);
    color: #9a2638;
    margin: 0 auto 1.8rem;
    max-width: 680px;
    padding: 1.1rem 1.2rem;
    text-align: center;
}

.error-box p {
    color: #9a2638;
}

.names-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.name-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    opacity: 0;
    padding: 1.25rem;
    transform: translateY(10px);
    transition: opacity 320ms ease, transform 320ms ease, border-color var(--transition), box-shadow var(--transition);
}

.name-card.result-visible {
    opacity: 1;
    transform: translateY(0);
}

.name-card:hover {
    border-color: rgba(49, 87, 213, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.school-name {
    color: var(--navy);
    font-size: 1.35rem;
}

.badge {
    background: var(--gold-soft);
    border: 1px solid rgba(246, 185, 59, 0.34);
    border-radius: 999px;
    color: #87540f;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.32rem 0.58rem;
}

.school-tagline {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 0.85rem;
}

.school-meaning {
    flex: 1;
    font-size: 0.92rem;
    margin-top: 0.7rem;
}

.copy-btn {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    min-height: 42px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.copy-btn:hover {
    background: var(--soft-2);
    border-color: rgba(49, 87, 213, 0.35);
    color: var(--indigo);
}

.copy-btn.copied {
    background: #e9fbf2;
    border-color: rgba(24, 160, 88, 0.3);
    color: var(--emerald);
}

/* ==========================================================================
   Feature Sections
   ========================================================================== */
.what-section {
    background: var(--soft);
}

.split-feature {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
}

.feature-copy p {
    font-size: 1.02rem;
    margin-top: 1rem;
}

.feature-points {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.feature-points span {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    display: flex;
    font-weight: 900;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
}

.feature-points span::before {
    background: var(--teal);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 9px;
    width: 9px;
}

.feature-image-wrap {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-height: 440px;
    overflow: hidden;
    position: relative;
}

.feature-image-wrap img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.feature-image-wrap::after {
    background: linear-gradient(180deg, transparent 40%, rgba(8, 17, 31, 0.76));
    content: "";
    inset: 0;
    position: absolute;
}

.image-note {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: var(--radius);
    bottom: 1rem;
    box-shadow: var(--shadow-md);
    left: 1rem;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    z-index: 2;
}

.image-note strong,
.image-note span {
    display: block;
}

.image-note strong {
    color: var(--navy);
}

.image-note span {
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps-section {
    background: var(--paper);
}

.steps-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 260px;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.step-card::before {
    background: linear-gradient(135deg, rgba(246, 185, 59, 0.28), rgba(15, 159, 154, 0.14));
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.step-card:hover {
    background: #f8fbff;
    border-color: rgba(49, 87, 213, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.step-number {
    align-items: center;
    background: var(--navy);
    border-radius: 999px;
    color: var(--paper);
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.step-card h3 {
    font-size: 1.35rem;
    margin-top: 1.2rem;
}

.step-card p {
    margin-top: 0.8rem;
}

/* ==========================================================================
   Categories and Styles
   ========================================================================== */
.category-style-section {
    background:
        linear-gradient(180deg, var(--soft) 0%, #ffffff 100%);
}

.strategy-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strategy-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-height: 240px;
    padding: 1.25rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.strategy-card:hover {
    border-color: rgba(15, 159, 154, 0.38);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.strategy-icon {
    color: var(--indigo);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 900;
}

.strategy-card h3 {
    font-size: 1.2rem;
    margin-top: 0.75rem;
}

.strategy-card p {
    font-size: 0.94rem;
    margin-top: 0.7rem;
}

.style-board {
    align-items: center;
    background: var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 320px 1fr;
    margin-top: 1.3rem;
    padding: 1.6rem;
}

.style-board .eyebrow {
    color: var(--gold);
}

.style-board h3 {
    color: var(--paper);
    font-size: 1.55rem;
    margin-top: 0.45rem;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.style-tags span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--paper);
    font-weight: 800;
    padding: 0.66rem 0.85rem;
}

/* ==========================================================================
   Examples
   ========================================================================== */
.examples-section {
    background: var(--paper);
}

.example-tabs {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.2rem;
    padding: 0.45rem;
}

.example-tab {
    background: transparent;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
    padding: 0.85rem 0.75rem;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.example-tab.active {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    color: var(--indigo);
}

.example-panel {
    display: none;
}

.example-panel.active {
    animation: fadeUp 240ms ease both;
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.example-list {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 1.2rem;
}

.example-list li {
    background: var(--soft);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0.6rem 0.8rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.example-list li:hover {
    background: var(--gold-soft);
    border-color: rgba(246, 185, 59, 0.32);
    transform: translateY(-2px);
}

/* ==========================================================================
   Tips
   ========================================================================== */
.tips-section {
    background: var(--soft);
}

.tips-layout {
    align-items: start;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
}

.tips-intro {
    position: sticky;
    top: 110px;
}

.tips-timeline {
    display: grid;
    gap: 0.85rem;
}

.tip-item {
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 1rem;
    grid-template-columns: 52px 1fr;
    padding: 1.15rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.tip-item:hover {
    border-color: rgba(49, 87, 213, 0.32);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.tip-item>span {
    align-items: center;
    background: var(--gold-soft);
    border-radius: 999px;
    color: #87540f;
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.tip-item h3 {
    font-size: 1.2rem;
}

.tip-item p {
    margin-top: 0.35rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
    background: var(--paper);
}

.faq-container {
    display: grid;
    gap: 0.75rem;
    margin: 0 auto;
    max-width: 860px;
}

.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.04);
    overflow: hidden;
}

.faq-question {
    align-items: center;
    background: var(--paper);
    color: var(--navy);
    cursor: pointer;
    display: flex;
    font-weight: 900;
    gap: 1rem;
    justify-content: space-between;
    min-height: 62px;
    padding: 1rem 1.1rem;
    text-align: left;
    width: 100%;
}

.faq-icon {
    align-items: center;
    color: var(--indigo);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    transition: transform var(--transition), color var(--transition);
    width: 26px;
}

.faq-item.open .faq-icon {
    color: var(--gold);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
}

.faq-answer p {
    border-top: 1px solid var(--line);
    padding: 1rem 1.1rem 1.2rem;
}

/* ==========================================================================
   CTA and Footer
   ========================================================================== */
.cta-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
    padding: 0 0 50px;
}

.cta-panel {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(31, 63, 154, 0.92)),
        url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1300&q=80");
    background-position: center;
    background-size: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 2rem;
}

.cta-panel .eyebrow {
    color: var(--gold);
}

.cta-panel h2 {
    color: var(--paper);
    max-width: 640px;
}

.site-footer {
    background: #07101d;
    color: var(--paper);
    padding: 4.2rem 0 1.6rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.7fr repeat(3, 1fr);
}

.footer-logo {
    color: var(--paper);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.66);
    margin-top: 1rem;
    max-width: 380px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-column h3 {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    transition: color var(--transition), transform var(--transition);
}

.footer-column a:hover {
    color: var(--paper);
    transform: translateX(3px);
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.4rem;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.86rem;
}

.footer-bottom a:hover {
    color: var(--paper);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .generator-layout {
        grid-template-columns: 1fr;
    }

    .generator-aside {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

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

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

    .split-feature,
    .tips-layout,
    .style-board {
        grid-template-columns: 1fr;
    }

    .tips-intro {
        position: static;
    }

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

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        display: none;
        left: 0;
        padding: 0.75rem 20px 1rem;
        position: absolute;
        right: 0;
        top: 74px;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0.2rem;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
    }

    .hero-section,
    .hero-container {
        min-height: 640px;
    }

    .hero-content {
        padding-top: 5.4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.02rem;
    }

    .section-heading h2,
    .feature-copy h2,
    .tips-intro h2,
    .cta-panel h2 {
        font-size: 2.15rem;
    }

    .content-section {
        padding: 4.4rem 0;
    }

    .generator-section {
        padding: 4rem 0;
    }

    .generator-main,
    .generator-aside {
        padding: 1.25rem;
    }

    .form-grid,
    .form-bottom-row,
    .names-grid,
    .steps-grid,
    .strategy-grid,
    .example-list,
    .tips-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .example-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.55rem;
        scroll-snap-type: x mandatory;
    }

    .example-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .feature-image-wrap {
        min-height: 360px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 520px) {
    .brand-mark span:last-child {
        max-width: 170px;
    }

    .hero-section {
        padding-bottom: 2.5rem;
    }

    .hero-section,
    .hero-container {
        min-height: 610px;
    }

    .hero-content h1 {
        font-size: 2.55rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .mode-tabs {
        grid-template-columns: 1fr;
    }

    .trust-strip span,
    .style-tags span {
        width: 100%;
    }

    .tip-item {
        grid-template-columns: 1fr;
    }
}