/* ========================================================================
   NAMELIX — Design System (Aurora-inspired)
   Light theme · Mint/Teal primary · Gradient accents · Glow shadows
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================== TOKENS ================================== */

:root {
    /* Surfaces */
    --background:           #f7fbfa;
    --foreground:           #0f1c24;
    --card:                 #ffffff;
    --card-foreground:      #0f1c24;
    --muted:                #eef5f4;
    --muted-foreground:     #65737c;
    --accent:               #d8efe4;
    --accent-foreground:    #14232c;
    --border:               #dde7e5;
    --input:                #dde7e5;
    --ring:                 #1cbfa7;

    /* Brand & accents */
    --primary:              #1cbfa7;     /* mint-teal */
    --primary-foreground:   #07171a;
    --secondary:            #e6f3f0;
    --secondary-foreground: #14232c;
    --destructive:          #e25555;

    --mint:                 #33d6ad;
    --lime:                 #b9e85b;
    --ocean:                #2e599a;
    --sun:                  #f5cc4f;
    --rose:                 #e87b7b;
    --violet:               #8b5cf6;

    /* Gradients */
    --gradient-hero:    linear-gradient(135deg, #33d6ad 0%, #44b5c9 50%, #3d6cb6 100%);
    --gradient-mint:    linear-gradient(135deg, #b9e85b 0%, #1cbfa7 100%);
    --gradient-sunset:  linear-gradient(135deg, #f5cc4f 0%, #e87b7b 100%);
    --gradient-ocean:   linear-gradient(135deg, #1cbfa7 0%, #2e599a 100%);
    --gradient-rose:    linear-gradient(135deg, #e87b7b 0%, #8b5cf6 100%);

    /* Effects */
    --shadow-glow:      0 20px 60px -20px rgba(28, 191, 167, 0.45);
    --shadow-soft:      0 8px 30px -10px rgba(46, 89, 154, 0.18);
    --shadow-card:      0 1px 3px 0 rgba(15, 28, 36, 0.08), 0 1px 2px -1px rgba(15, 28, 36, 0.06);
    --shadow-card-lg:   0 10px 25px -8px rgba(15, 28, 36, 0.12), 0 6px 10px -6px rgba(15, 28, 36, 0.06);

    /* Geometry */
    --radius:           0.75rem;
    --radius-sm:        0.5rem;
    --radius-xs:        0.375rem;
    --radius-lg:        1rem;
    --radius-2xl:       1.25rem;
    --radius-3xl:       1.75rem;
    --radius-full:      9999px;

    /* Typography */
    --font:             'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display:     'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-mono:        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Legacy compatibility — old views may reference these var names */
:root {
    --text:             var(--foreground);
    --text-muted:       var(--muted-foreground);
    --text-dim:         var(--muted-foreground);
    --dark:             var(--foreground);
    --dark-card:        var(--card);
    --dark-surface:     var(--muted);
    --dark-border:      var(--border);
    --glass:            rgba(255, 255, 255, 0.6);
    --glass-border:     rgba(15, 28, 36, 0.08);
    --accent-blue:      var(--ocean);
    --accent-violet:    var(--violet);
    --accent-amber:     var(--sun);
    --accent-rose:      var(--rose);
    --primary-dark:     #149780;
    --primary-glow:     rgba(28, 191, 167, 0.18);
    --font:             'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono:        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --radius-xs:        0.375rem;
}

/* Modern oklch fallback override for capable browsers */
@supports (color: oklch(50% 0.1 200)) {
    :root {
        --background:           oklch(99% 0.005 180);
        --foreground:           oklch(16% 0.04 200);
        --card:                 oklch(100% 0 0);
        --card-foreground:      oklch(16% 0.04 200);
        --muted:                oklch(97% 0.015 180);
        --muted-foreground:     oklch(48% 0.03 200);
        --accent:               oklch(94% 0.06 165);
        --accent-foreground:    oklch(20% 0.05 200);
        --border:               oklch(92% 0.02 180);
        --input:                oklch(92% 0.02 180);
        --ring:                 oklch(72% 0.17 175);
        --primary:              oklch(72% 0.17 175);
        --primary-foreground:   oklch(12% 0.05 200);
        --secondary:            oklch(96% 0.03 175);
        --secondary-foreground: oklch(20% 0.05 200);
        --destructive:          oklch(62% 0.23 25);
        --mint:                 oklch(78% 0.18 165);
        --lime:                 oklch(88% 0.2 140);
        --ocean:                oklch(45% 0.12 220);
        --sun:                  oklch(85% 0.17 85);
        --rose:                 oklch(72% 0.18 15);
        --gradient-hero:    linear-gradient(135deg, oklch(78% 0.18 165) 0%, oklch(70% 0.15 195) 50%, oklch(55% 0.14 240) 100%);
        --gradient-mint:    linear-gradient(135deg, oklch(88% 0.2 140), oklch(72% 0.17 175));
        --gradient-sunset:  linear-gradient(135deg, oklch(85% 0.17 85), oklch(72% 0.18 15));
        --gradient-ocean:   linear-gradient(135deg, oklch(72% 0.17 175), oklch(45% 0.12 220));
        --gradient-rose:    linear-gradient(135deg, oklch(72% 0.18 15), oklch(60% 0.2 290));
        --shadow-glow:      0 20px 60px -20px oklch(72% 0.17 175 / 0.45);
        --shadow-soft:      0 8px 30px -10px oklch(45% 0.12 220 / 0.18);
    }
}

/* ============================== RESET =================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-feature-settings: "cv02","cv03","cv04","cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img, svg, video, canvas { max-width: 100%; display: block; }

::selection { background: var(--primary); color: var(--primary-foreground); }

/* Subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--background); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

/* ============================== UTILITIES =============================== */

.text-gradient-mint {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-sunset {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-hero   { background: var(--gradient-hero); }
.bg-gradient-mint   { background: var(--gradient-mint); }
.bg-gradient-sunset { background: var(--gradient-sunset); }
.bg-gradient-ocean  { background: var(--gradient-ocean); }
.bg-gradient-rose   { background: var(--gradient-rose); }

.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* Decorative grid pattern (for hero backgrounds) */
.bg-grid {
    background-image:
        linear-gradient(90deg, rgba(28, 191, 167, 0.10) 1px, transparent 1px),
        linear-gradient(rgba(28, 191, 167, 0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 50%, transparent 100%);
            mask-image: radial-gradient(70% 55% at 50% 30%, #000 50%, transparent 100%);
}

/* Soft colored blob — drops behind hero/CTA blocks */
.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

/* Page container — width-cap like the reference's `container-page` */
.container,
.container-page {
    width: 100%;
    max-width: 1200px;
    padding-inline: 1.5rem;
    margin-inline: auto;
}

/* Bootstrap container override for consistency */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1200px; }
}

/* ============================== NAVBAR ================================== */

.nav-main {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    padding: 0;
    background: rgba(247, 251, 250, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
            backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(221, 231, 229, 0.7);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-main > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground) !important;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.nav-brand .brand-dot {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.nav-brand .brand-dot::before {
    content: '✦';
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.nav-brand .brand-mark {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--foreground);
    background: var(--muted);
}

.nav-links a.active {
    color: var(--foreground);
    background: var(--accent);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    padding: 0 0.875rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-mint) !important;
    color: var(--primary-foreground) !important;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--primary-foreground) !important;
    background: var(--gradient-mint) !important;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-login:hover { background: var(--muted); color: var(--foreground); }

.nav-toggle {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 80vh; padding-block: 0.75rem; }
    .nav-links a, .nav-links .nav-cta, .nav-links .nav-login {
        padding: 0.75rem 1rem;
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius-sm);
        height: auto;
    }
}

/* ============================== HERO ==================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    padding: 5rem 0 6rem;
}

.hero-section .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(28, 191, 167, 0.10) 1px, transparent 1px),
        linear-gradient(rgba(28, 191, 167, 0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 50%, transparent 100%);
            mask-image: radial-gradient(70% 55% at 50% 30%, #000 50%, transparent 100%);
    opacity: 0.7;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}

.hero-section::before {
    background: var(--gradient-mint);
    top: -8rem;
    left: -5rem;
    width: 24rem;
    height: 24rem;
}

.hero-section::after {
    background: var(--gradient-sunset);
    top: 2.5rem;
    right: -5rem;
    width: 20rem;
    height: 20rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    padding-inline: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.hero-badge .badge-dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(28, 191, 167, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.25); opacity: 0.75; }
}

.hero-title {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--foreground);
}

.hero-title .highlight {
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 1.25rem auto 0;
    max-width: 36rem;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Hero search — large pill input with embedded CTA */
.hero-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem auto 0;
    max-width: 36rem;
    padding: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
    .hero-search { flex-direction: row; align-items: center; }
}

.hero-search input {
    flex: 1;
    height: 2.75rem;
    padding: 0 1rem;
    background: transparent;
    border: 0;
    outline: none;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--foreground);
}

.hero-search input::placeholder { color: var(--muted-foreground); }

.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.75rem;
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-generate:hover { opacity: 0.92; transform: translateY(-1px); color: var(--primary-foreground); }
.btn-generate:active { transform: translateY(0); }

/* Hero stats row under the search */
.hero-stats {
    margin: 3rem auto 0;
    max-width: 36rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.hero-stat { text-align: center; }

.hero-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat-label {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* Inner page hero (about, contact, login, register, pricing) — smaller, gradient bg */
.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(28, 191, 167, 0.08) 0%, var(--background) 50%, rgba(216, 239, 228, 0.4) 100%);
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: -6rem;
    left: -4rem;
    width: 18rem;
    height: 18rem;
    background: var(--gradient-mint);
    filter: blur(60px);
    opacity: 0.35;
    border-radius: 9999px;
    pointer-events: none;
}

.inner-hero > .container {
    position: relative;
    z-index: 1;
}

.inner-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.inner-hero p {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    max-width: 40rem;
}

/* ============================== SECTIONS ================================ */

.section {
    padding: 5rem 0;
    position: relative;
}

.section-dark {
    background: var(--background);
}

.section-surface {
    background: linear-gradient(135deg, rgba(216, 239, 228, 0.3) 0%, var(--background) 50%, rgba(28, 191, 167, 0.05) 100%);
    border-block: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3.5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.section-subtitle {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    max-width: 36rem;
}

/* ============================== FEATURE GRID ============================ */

.feature-grid {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(28, 191, 167, 0.3);
}

.feature-card h3 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.feature-card p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    color: var(--primary-foreground);
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
}

.feature-icon.green  { background: var(--gradient-mint); }
.feature-icon.blue   { background: var(--gradient-ocean); }
.feature-icon.violet { background: var(--gradient-rose); }
.feature-icon.amber  { background: var(--gradient-sunset); }
.feature-icon.rose   { background: linear-gradient(135deg, var(--rose), var(--violet)); }

/* ============================== STEPS =================================== */

.steps-row {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }

.step-item {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.step-item::after {
    content: '';
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: var(--gradient-mint);
    opacity: 0.2;
    filter: blur(40px);
}

.step-item:nth-child(2)::after { background: var(--gradient-ocean); }
.step-item:nth-child(3)::after { background: var(--gradient-sunset); }

.step-item > * { position: relative; z-index: 1; }

.step-num {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-xs);
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.step-item:nth-child(2) .step-num { background: var(--gradient-ocean); }
.step-item:nth-child(3) .step-num { background: var(--gradient-sunset); }

.step-item h4 {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

.step-item p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============================== CTA BLOCK =============================== */

.cta-block {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: var(--radius-3xl);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gradient-hero);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) { .cta-block { padding: 4rem; } }

.cta-block::before,
.cta-block::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.cta-block::before {
    top: -2.5rem; left: -2.5rem;
    width: 10rem; height: 10rem;
    background: rgba(255, 255, 255, 0.3);
}

.cta-block::after {
    bottom: -2.5rem; right: -2.5rem;
    width: 10rem; height: 10rem;
    background: rgba(255, 255, 255, 0.2);
}

.cta-block > * { position: relative; z-index: 1; }

.cta-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--primary-foreground);
}

.cta-block p {
    margin-top: 0.75rem;
    color: rgba(7, 23, 26, 0.85);
    font-size: 1rem;
}

.cta-block .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    height: 2.5rem;
    padding: 0 2rem;
    background: var(--card);
    color: var(--foreground);
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-block .btn-cta-secondary:hover { opacity: 0.92; transform: translateY(-1px); }

/* Quick "no signup / free / etc" tag row used on home */
.tag-row {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
    list-style: none;
    margin: 0; padding: 0;
}

@media (min-width: 640px) { .tag-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .tag-row { grid-template-columns: repeat(4, 1fr); } }

.tag-row li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    font-size: 0.875rem;
    color: var(--foreground);
}

.tag-row li i { color: var(--primary); }

/* ============================== FORMS / CARDS =========================== */

.form-card {
    max-width: 32rem;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) { .form-card { padding: 2.5rem; } }

.form-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.95rem;
    box-shadow: 0 1px 2px 0 rgba(15, 28, 36, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(28, 191, 167, 0.18);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-foreground); }

.btn-primary-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.625rem;
    padding: 0 1.5rem;
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-primary-full:hover { opacity: 0.92; transform: translateY(-1px); color: var(--primary-foreground); }
.btn-primary-full:active { transform: translateY(0); }

.alert-success {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(28, 191, 167, 0.1);
    border: 1px solid rgba(28, 191, 167, 0.3);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-size: 0.875rem;
}

.alert-error {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: rgba(226, 85, 85, 0.08);
    border: 1px solid rgba(226, 85, 85, 0.3);
    border-radius: var(--radius-sm);
    color: var(--destructive);
    font-size: 0.875rem;
}

/* ============================== GENERATE PAGE =========================== */

.generate-page { padding: 0; }

.generate-page .inner-hero { padding: 3.5rem 0; }

.config-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) { .config-card { padding: 2rem; } }

.config-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.config-input {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.95rem;
    box-shadow: 0 1px 2px 0 rgba(15, 28, 36, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(28, 191, 167, 0.18);
}

textarea.config-input { resize: vertical; min-height: 80px; }

.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.style-chip {
    padding: 0.375rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: 9999px;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.style-chip:hover { background: var(--accent); }

.style-chip.active {
    background: var(--gradient-mint);
    border-color: transparent;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.randomness-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.randomness-option {
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.randomness-option:hover { background: var(--accent); }

.randomness-option.active {
    border-color: var(--primary);
    background: rgba(28, 191, 167, 0.08);
}

.randomness-option .level {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.randomness-option .desc {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Generate page: two-column layout (config / suggestions) */
.generate-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .generate-grid { grid-template-columns: 1fr 1.2fr; }
}

.suggestions-panel {
    display: grid;
    place-items: center;
    background: rgba(238, 245, 244, 0.5);
    border: 1px dashed var(--border);
    border-radius: var(--radius-2xl);
    padding: 4rem 1.5rem;
    text-align: center;
}

.suggestions-panel .empty-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.suggestions-panel p {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ============================== PRICING ================================ */

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-lg); }

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-glow);
}

.pricing-badge-tag {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.pricing-card h4 {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    letter-spacing: 0;
}

.pricing-card .price {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.pricing-card .price span {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-features li {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.pricing-features li i {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.25rem;
}

.btn-pricing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    height: 2.375rem;
    padding: 0 1rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(15, 28, 36, 0.04);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.btn-pricing:hover { background: var(--accent); color: var(--foreground); }

.btn-pricing.primary {
    background: var(--gradient-mint);
    border-color: transparent;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-pricing.primary:hover { opacity: 0.92; color: var(--primary-foreground); }

/* ============================== CONTACT GRID ============================ */

.contact-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-info-item .feature-icon { width: 2.75rem; height: 2.75rem; flex-shrink: 0; }

.contact-info-item .label-title {
    font-family: var(--font);
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.95rem;
}

.contact-info-item .label-sub {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================== RESULTS / NAME CARDS ==================== */

.name-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) { .name-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .name-grid { grid-template-columns: repeat(3, 1fr); } }

.name-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.name-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(28, 191, 167, 0.3);
}

.name-card-inner { padding: 1.5rem; min-height: 11rem; display: flex; align-items: center; justify-content: center; }

.name-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.025em;
    text-align: center;
}

.name-card-footer {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.name-card-actions { display: flex; gap: 0.375rem; }

.card-action-btn,
.card-domain-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.card-action-btn:hover,
.card-domain-btn:hover {
    background: var(--accent);
    color: var(--foreground);
    border-color: var(--primary);
}

.card-domain-btn {
    width: auto;
    padding: 0 0.75rem;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Filter chips on the results page */
.filter-chip {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover { background: var(--accent); color: var(--foreground); }

.filter-chip.active {
    background: var(--gradient-mint);
    border-color: transparent;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

/* ============================== MODALS ================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 28, 36, 0.5);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.domain-modal {
    width: 100%;
    max-width: 28rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-lg);
    overflow: hidden;
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.modal-overlay.active .domain-modal { transform: translateY(0); }

.domain-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.domain-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 2rem; height: 2rem;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-xs);
    color: var(--muted-foreground);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover { background: var(--muted); color: var(--foreground); }

.domain-modal-body { padding: 1.5rem; }

.domain-modal-body .tld-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
}

.tld-option {
    display: flex;
    flex-direction: column;
    padding: 0.875rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tld-option:hover {
    background: var(--card);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.tld-option .tld-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--foreground);
}

.tld-option .tld-price {
    margin-top: 0.125rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.domain-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--muted);
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

/* ============================== FOOTER ================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, var(--background) 0%, rgba(216, 239, 228, 0.4) 50%, rgba(28, 191, 167, 0.05) 100%);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 18rem;
    height: 18rem;
    background: var(--gradient-mint);
    border-radius: 9999px;
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
    padding-block: 3.5rem;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .site-footer > .container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.footer-brand .brand-row .brand-dot {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.footer-brand .brand-row .brand-dot::before {
    content: '✦';
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand .footer-tagline {
    margin-top: 1rem;
    max-width: 24rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.footer-socials a {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    background: var(--gradient-mint);
    color: var(--primary-foreground);
    border-color: transparent;
}

.footer-col h4 {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.footer-col ul {
    margin: 0.875rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--foreground); }

/* Legacy flat footer-links row — kept for compatibility */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
}

.footer-links a:hover { color: var(--foreground); }

.site-footer .footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}

.site-footer .footer-bottom > .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .site-footer .footer-bottom > .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================== ANIMATIONS ============================== */

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

.fade-up { animation: fade-up 0.6s ease both; }

/* ============================== RESPONSIVE FIXES ======================== */

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .hero-section { padding: 3.5rem 0 4.5rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
    .config-card { padding: 1.5rem; }
}

/* ============================== SAVED GRID ============================== */

.saved-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) { .saved-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .saved-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================== PRINT =================================== */

@media print {
    .nav-main, .site-footer, .nav-toggle, .modal-overlay { display: none !important; }
    .hero-section::before, .hero-section::after { display: none !important; }
    body { background: #fff; color: #000; }
}
