/* 
    Crafty AI - Modern Home Page Styles
    A premium, high-performance aesthetic for the frontier of Australian AI.
*/

:root {
    --home-primary: #ed7618;
    --home-primary-rgb: 237, 118, 24;
    --home-secondary: #764ba2;
    --home-secondary-rgb: 118, 75, 162;
    --home-accent: #667eea;
    --home-accent-rgb: 102, 126, 234;
    --home-glow-base: 0.25;
    --home-glow-blend: normal;
    --home-bg: #ffffff;
    --home-text: #1a1a1a;
    --home-text-muted: #666666;
    --home-card-bg: #ffffff;
    --home-card-border: rgba(0, 0, 0, 0.08);
    --home-glass-bg: rgba(255, 255, 255, 0.2);
    --home-glass-border: rgba(255, 255, 255, 0.3);
    --home-glass-highlight: rgba(255, 255, 255, 0.6);
    --home-glass-sheen: rgba(255, 255, 255, 0.4);
    --home-glass-shadow: rgba(15, 23, 42, 0.18);
    --home-glass-saturation: 160%;
    --home-glass-brightness: 1.08;
}

[data-theme="dark"] {
    --home-bg: #0f1117;
    --home-text: #f8f9fa;
    --home-text-muted: #a0aec0;
    --home-card-bg: #1a1d27;
    --home-card-border: rgba(255, 255, 255, 0.08);
    --home-glass-bg: rgba(15, 17, 23, 0.6);
    --home-glass-border: rgba(255, 255, 255, 0.14);
    --home-glass-highlight: rgba(255, 255, 255, 0.28);
    --home-glass-sheen: rgba(255, 255, 255, 0.2);
    --home-glass-shadow: rgba(0, 0, 0, 0.5);
    --home-glass-saturation: 140%;
    --home-glass-brightness: 1.05;
    --home-glow-base: 0.2;
    --home-glow-blend: screen;
}

/* Hide breadcrumbs on home page */
.breadcrumbs {
    display: none !important;
}

.modern-home-container {
    background-color: var(--home-bg);
    /* color: white; */
    overflow-x: hidden;
}

/* --- Hero Section --- */
.modern-hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    padding: 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0f1117;
}

.hero-light-pillar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-light-pillar canvas {
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: screen;
}

/* --- Animated gradient fallback for low-end devices --- */
@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.hero-light-pillar.hero-fallback-active {
    background: linear-gradient(
        135deg,
        #764ba2 0%,
        #667eea 25%,
        #f093fb 50%,
        #ed7618 75%,
        #764ba2 100%
    );
    background-size: 400% 400%;
    animation: heroGradientShift 15s ease infinite;
}

.hero-light-pillar.hero-fallback-active canvas {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-light-pillar.hero-fallback-active {
        animation: none;
        background-position: 50% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 100px;
}

.hero-au-badge {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: color-mix(in srgb, var(--home-glass-bg) 90%, white);
    backdrop-filter: blur(16px) saturate(var(--home-glass-saturation)) brightness(var(--home-glass-brightness));
    -webkit-backdrop-filter: blur(16px) saturate(var(--home-glass-saturation)) brightness(var(--home-glass-brightness));
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1px solid var(--home-glass-border);
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px var(--home-glass-shadow),
        inset 0 1px 0 var(--home-glass-highlight),
        inset 0 -12px 20px rgba(0, 0, 0, 0.1);
    animation: slideDownFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-au-badge::before,
.home-input-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(120% 80% at 100% 100%, rgba(255, 255, 255, 0.2), transparent 65%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.12) 75%, transparent);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.hero-au-badge::after,
.home-input-box::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.hero-au-badge > *,
.home-input-box > * {
    position: relative;
    z-index: 1;
}

.hero-au-badge img {
    height: 18px;
    width: auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 3rem;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

#hero-logo-img {
    filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.25))
        drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18))
        drop-shadow(0 -2px 6px rgba(255, 255, 255, 0.35));
    opacity: 0.96;
    transform: translateY(0);
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.hero-content:hover #hero-logo-img {
    filter: drop-shadow(0 22px 36px rgba(15, 23, 42, 0.28))
        drop-shadow(0 6px 12px rgba(15, 23, 42, 0.2))
        drop-shadow(0 -2px 8px rgba(255, 255, 255, 0.4));
    opacity: 1;
    transform: translateY(-2px);
}

.hero-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    isolation: isolate;
}

.hero-logo-stack {
    position: relative;
    z-index: 2;
}

.hero-landing-effect {
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 75px;
    height: 20px;
    transform: translateX(-25%);
    pointer-events: none;
    opacity: 0;
    filter: blur(0.2px);
    z-index: -1;
}

.hero-logo-wrap.is-landing .hero-landing-effect {
    animation: heroLandingDust 1.05s ease-out forwards;
}

.hero-landing-effect::before,
.hero-landing-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 45% 45%;
    background: radial-gradient(circle at 50% 50%, rgba(26, 28, 38, 0.55), rgba(32, 35, 48, 0.25) 40%, rgba(44, 36, 28, 0.0) 70%);
    mix-blend-mode: multiply;
}

.hero-landing-effect::after {
    inset: 6px;
    border-radius: 50% 50% 50% 50%;
    border: 2px solid rgba(90, 76, 58, 0.45);
    box-shadow:
        0 0 24px rgba(14, 16, 24, 0.35),
        0 0 40px rgba(10, 12, 18, 0.4);
    background: radial-gradient(circle at 50% 50%, rgba(110, 92, 70, 0.35), rgba(32, 28, 24, 0.05) 55%, transparent 75%);
}

#hero-logo-img.hero-logo-jump {
    animation: heroLogoJump 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--home-primary), #ff9a44);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.home-input-box {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 80%;
    max-width: 1152px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: color-mix(in srgb, var(--home-glass-bg) 90%, white);
    backdrop-filter: blur(22px) saturate(var(--home-glass-saturation)) brightness(var(--home-glass-brightness));
    -webkit-backdrop-filter: blur(22px) saturate(var(--home-glass-saturation)) brightness(var(--home-glass-brightness));
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid var(--home-glass-border);
    box-shadow: 0 22px 55px var(--home-glass-shadow),
        inset 0 1px 0 var(--home-glass-highlight),
        inset 0 -18px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.return-to-ai-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 80%;
    max-width: 1152px;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--home-primary), #f59e42);
    border: none;
    box-shadow: 0 4px 16px rgba(var(--home-primary-rgb), 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.home-input-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(var(--home-primary-rgb), 0.18),
        inset 0 1px 0 var(--home-glass-highlight),
        inset 0 -18px 30px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, rgba(var(--home-primary-rgb), 0.55), var(--home-glass-border));
}

.return-to-ai-btn:hover,
.return-to-ai-btn:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d4680f, #e88a2a);
    box-shadow: 0 8px 28px rgba(var(--home-primary-rgb), 0.45);
}

.return-to-ai-btn:focus-visible {
    outline: none;
}

#home-chat-input {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--home-text);
    font-size: 1.1rem;
    padding: 1rem;
    outline: none !important;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    caret-color: var(--home-primary);
}

#home-chat-input::placeholder {
    color: color-mix(in srgb, var(--home-text-muted) 70%, transparent);
}

#home-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--home-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home-send-btn:hover {
    transform: scale(1.05);
    background: #f97316;
}

/* --- Section General --- */
section {
    padding: 8rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--home-primary-rgb), 0.1);
    color: var(--home-primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--home-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Feature Cards (Capabilities) --- */
.features-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: 100%;
}

.features-grid .feature-card {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        flex-wrap: wrap;
    }
    .features-grid .feature-card {
        min-width: 320px;
    }
}

.feature-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-card-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--home-primary), var(--home-secondary));
    opacity: 1;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--home-primary-rgb), 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card[data-glow-card] {
    --glow-intensity: 0;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-angle: 90deg;
    --glow-base: var(--home-glow-base);
    --glow-strength: calc(var(--glow-base) + var(--glow-intensity) * 0.75);
    background:
        linear-gradient(160deg, rgba(var(--home-primary-rgb), 0.08), transparent 45%),
        var(--home-card-bg);
    border-color: color-mix(in srgb, rgba(var(--home-primary-rgb), 0.5), var(--home-card-border));
    box-shadow:
        0 18px 45px rgba(var(--home-primary-rgb), 0.14),
        0 0 0 1px rgba(var(--home-primary-rgb), 0.16);
    isolation: isolate;
}

.feature-card[data-glow-card] .feature-card__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s ease-out, filter 0.3s ease-out;
    mix-blend-mode: var(--home-glow-blend);
    filter: saturate(1.15);
}

.feature-card[data-glow-card] .feature-card__glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(var(--home-primary-rgb), 0.7), transparent 70%),
        radial-gradient(130% 90% at 100% 0%, rgba(var(--home-secondary-rgb), 0.55), transparent 72%),
        radial-gradient(130% 90% at 50% 120%, rgba(var(--home-accent-rgb), 0.5), transparent 70%),
        radial-gradient(60% 60% at var(--glow-x) var(--glow-y), rgba(255, 255, 255, 0.35), transparent 65%);
}

.feature-card[data-glow-card] .feature-card__glow::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        inset 0 0 18px rgba(var(--home-primary-rgb), 0.45),
        inset 0 0 38px rgba(var(--home-secondary-rgb), 0.32),
        inset 0 0 60px rgba(var(--home-accent-rgb), 0.25),
        0 0 20px rgba(var(--home-primary-rgb), 0.18),
        0 0 34px rgba(var(--home-secondary-rgb), 0.12);
    opacity: var(--glow-strength);
    -webkit-mask-image: conic-gradient(from var(--glow-angle) at center, transparent 4%, black 20%, black 80%, transparent 96%);
    mask-image: conic-gradient(from var(--glow-angle) at center, transparent 4%, black 20%, black 80%, transparent 96%);
}

@media (hover: hover) {
    .feature-card[data-glow-card]:hover {
        --glow-intensity: 0.6;
    }
}

@media (hover: none) {
    .feature-card[data-glow-card] {
        --glow-intensity: 0.5;
    }
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(var(--home-primary-rgb), 0.1);
    color: var(--home-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: white;
    color: var(--home-primary);
    transform: scale(1.1) rotate(-5deg);
}

.feature-badge {
    position: static;
    background: rgba(var(--home-primary-rgb), 0.12);
    color: var(--home-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.feature-content {
    flex: 1 1 auto;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--home-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.highlight-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--home-text-muted);
}

.highlight-item i {
    color: var(--home-primary);
    font-size: 0.7rem;
}

.feature-cta-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--home-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-cta-text i {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-cta-text i {
    transform: translateX(5px);
}

/* --- Domain Cards (Australia) --- */
.domains-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5rem;
    width: 100%;
}

.domain-card {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 2rem;
    position: relative;
    border-radius: 24px;
    background: var(--home-card-bg);
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    outline: none;
    --domain-x: 50%;
    --domain-y: 50%;
}

.domain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 120% at var(--domain-x) var(--domain-y), rgba(var(--home-primary-rgb), 0.16), transparent 55%),
        radial-gradient(120% 120% at 0% 0%, rgba(var(--home-secondary-rgb), 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.domain-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.domain-card > * {
    position: relative;
    z-index: 2;
}

.domain-card:hover,
.domain-card:focus-visible,
.domain-card.is-active {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 18px 50px rgba(var(--home-primary-rgb), 0.16),
        0 8px 20px rgba(15, 23, 42, 0.12);
    border-color: rgba(var(--home-primary-rgb), 0.35);
}

.domain-card:hover::before,
.domain-card:focus-visible::before,
.domain-card.is-active::before {
    opacity: 1;
}

.domain-card:hover::after,
.domain-card:focus-visible::after,
.domain-card.is-active::after {
    opacity: 1;
}

.domain-card:focus-visible {
    box-shadow:
        0 0 0 3px rgba(var(--home-primary-rgb), 0.25),
        0 18px 50px rgba(var(--home-primary-rgb), 0.16);
}

.domain-icon {
    font-size: 2.5rem;
    color: var(--home-primary);
    margin-bottom: 1.5rem;
    transition: transform 0.35s ease, color 0.35s ease;
}

.domain-card:hover .domain-icon,
.domain-card.is-active .domain-icon {
    transform: translateY(-4px) scale(1.05);
    color: color-mix(in srgb, var(--home-primary) 75%, #ff9a44);
}

.domain-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.domain-card p {
    color: var(--home-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.domain-card h4,
.domain-card p {
    transition: color 0.3s ease;
}

.domain-card.is-active h4,
.domain-card.is-active p {
    color: var(--home-text);
}

.domain-tech {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.domain-tech span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: var(--home-card-border);
    border-radius: 100px;
    color: var(--home-text-muted);
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-grid .feature-card {
    text-align: center;
    /* padding: 3.5rem 2.5rem; */
}

.pricing-grid h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-grid .price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--home-text);
    margin: 1.5rem 0;
    line-height: 1;
}

.pricing-grid .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--home-text-muted);
}

.pricing-grid ul {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    text-align: left;
}

.pricing-grid li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.pricing-grid li i {
    color: #10b981;
}

.pricing-grid .feature-card .trust {
    color: var(--home-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
}

.pricing-grid .feature-card .trust .stripe-badge {
    width: 96px;
    height: auto;
    display: block;
    margin: 0.35rem auto 0;
}

/* Stripe badge theme toggles (use site theme instead of system scheme) */
[data-theme="dark"] .pricing-grid .feature-card .trust .stripe-badge-light { display: none; }
[data-theme="dark"] .pricing-grid .feature-card .trust .stripe-badge-dark { display: block; }
[data-theme="light"] .pricing-grid .feature-card .trust .stripe-badge-dark { display: none; }
[data-theme="light"] .pricing-grid .feature-card .trust .stripe-badge-light { display: block; }

/* Default to light badge unless dark theme is active */
.pricing-grid .feature-card .trust .stripe-badge-dark { display: none; }

.feature-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--home-text);
    color: var(--home-bg);
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.feature-cta:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.pricing-grid .featured {
    border: 2px solid var(--home-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(var(--home-primary-rgb), 0.1);
}

.pricing-grid .featured .feature-cta {
    background: var(--home-primary);
    color: white;
}

/* --- Final CTA --- */
.final-cta-section {
    position: relative;
    padding: 10rem 2rem;
    text-align: center;
    background: var(--home-text);
    color: var(--home-bg);
    overflow: hidden;
    isolation: isolate;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--home-primary-rgb), 0.2), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta-header p {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-bottom: 4rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: var(--home-primary);
    color: white;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-disclaimer {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* --- Animations --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroLogoJump {
    0%,
    18% {
        transform: translateY(0);
    }
    42% {
        transform: translateY(-60px);
    }
    70% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes heroLandingDust {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.7);
        filter: blur(2px);
    }
    20% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.05);
        filter: blur(0.6px);
    }
    55% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.15);
        filter: blur(0.4px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.35);
        filter: blur(1.2px);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .modern-hero-section {
        padding: 1rem;
    }
    
    .hero-title {
        margin-bottom: 2rem;
    }

    .domains-grid {
        flex-wrap: wrap;
    }

    .domains-grid .domain-card {
        min-width: 280px;
    }

    .pricing-grid .featured {
        transform: none;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .return-to-ai-btn {
        width: 100%;
    }
}

/* --- Dark mode overrides for home page --- */
[data-theme="dark"] .modern-hero-section {
    --home-bg: #ffffff;
    --home-text: #1a1a1a;
    --home-text-muted: #666666;
    --home-card-bg: #ffffff;
    --home-card-border: rgba(0, 0, 0, 0.08);
    --home-glass-bg: rgba(255, 255, 255, 0.2);
    --home-glass-border: rgba(255, 255, 255, 0.3);
    --home-glass-highlight: rgba(255, 255, 255, 0.6);
    --home-glass-sheen: rgba(255, 255, 255, 0.4);
    --home-glass-shadow: rgba(15, 23, 42, 0.18);
    --home-glass-saturation: 160%;
    --home-glass-brightness: 1.08;
    --home-glow-base: 0.25;
    --home-glow-blend: normal;
    color: var(--home-text);
}

[data-theme="dark"] .feature-card {
    color: var(--home-text);
}

[data-theme="dark"] .feature-content h3,
[data-theme="dark"] .pricing-grid h3,
[data-theme="dark"] .pricing-grid li {
    color: #ffffff;
}

[data-theme="dark"] .feature-card[data-glow-card] .feature-card__glow::before {
    background:
        radial-gradient(130% 90% at 0% 0%, rgba(var(--home-primary-rgb), 0.7), transparent 70%),
        radial-gradient(130% 90% at 100% 0%, rgba(var(--home-secondary-rgb), 0.55), transparent 72%),
        radial-gradient(130% 90% at 50% 120%, rgba(var(--home-accent-rgb), 0.5), transparent 70%),
        radial-gradient(60% 60% at var(--glow-x) var(--glow-y), rgba(0, 0, 0, 0.35), transparent 65%);
}

[data-theme="dark"] .cta-button.secondary {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .final-cta-section {
    background: #0b0f16;
    color: #f8f9fa;
}

[data-theme="dark"] .final-cta-section .cta-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(var(--home-primary-rgb), 0.12), transparent 70%);
}

[data-theme="dark"] .final-cta-section .cta-pattern {
    opacity: 0.2;
}
