:root {
    --bg-dark: #09090b;
    --surface: rgba(24, 24, 27, 0.65);
    --surface-solid: #18181b;
    --surface-border: rgba(63, 63, 70, 0.4);
    --surface-hover: rgba(39, 39, 42, 0.8);

    --primary: #c084fc;
    --primary-glow: rgba(192, 132, 252, 0.3);
    --primary-hover: #d8b4fe;

    --secondary: #38bdf8;
    --secondary-glow: rgba(56, 189, 248, 0.3);

    --text-main: #f8fafc;
    --text-muted: #a1a1aa;

    --success: #10b981;
    --error: #ef4444;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(192, 132, 252, 0.15);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(56, 189, 248, 0.1);
    top: 40%;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.08);
    /* Violet */
    bottom: -200px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Glass Panel Base */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.primary-btn:hover::before {
    transform: translateX(100%);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lg-btn {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
}

.btn-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.primary-btn:hover .btn-icon {
    transform: translate(3px, -3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-logo {
    height: 40px;
}

.form-logo {
    height: 52px;
    margin: 0 auto 1.25rem;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Main Layout */
main {
    flex: 1;
    padding-top: 5rem;
    /* Offset for fixed nav */
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Graphic */
.hero-visual {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp 1s ease-out 0.2s both;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1rem;
}

.mac-dots {
    display: flex;
    gap: 6px;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b5563;
}

.mac-dots span:nth-child(1) {
    background: #ef4444;
}

.mac-dots span:nth-child(2) {
    background: #f59e0b;
}

.mac-dots span:nth-child(3) {
    background: #10b981;
}

.visual-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.visual-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.full {
    width: 100%;
}

.three-quarter {
    width: 75%;
}

.half {
    width: 50%;
}

.status-badge.success-mock {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.01));
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(192, 132, 252, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bg-primary-light {
    background: rgba(192, 132, 252, 0.15);
    color: var(--primary);
}

.bg-secondary-light {
    background: rgba(56, 189, 248, 0.15);
    color: var(--secondary);
}

.bg-accent-light {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Form Section Wrapper */
.generator-section {
    padding: 5rem 0 8rem;
}

.container-form {
    max-width: 750px;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}



.form-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Form Inner Styles */
.glass-form {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-left: 0.25rem;
    transition: color 0.3s;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(161, 161, 170, 0.5);
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(0, 0, 0, 0.8);
}

.form-group:focus-within label {
    color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
}

.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--surface-border);
}

.section-divider span {
    padding: 0 1rem;
}

.form-actions {
    margin-top: 2.5rem;
}

.spinner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeUp 0.3s ease-out;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* Form submission loading state */
.primary-btn.loading .btn-text,
.primary-btn.loading .btn-icon {
    opacity: 0;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 56px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
}

.copyright {
    color: rgba(161, 161, 170, 0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* simple mobile nav: just logo */
    }

    .footer-clean {
        gap: 1.25rem;
    }
}