/* ===================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================== */
:root {
    /* Colors */
    --color-bg-primary: #0D0D0D;
    --color-bg-secondary: #1A1A1A;
    --color-bg-card: #151515;

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-text-muted: #666666;

    --color-accent-primary: #D4FF00;
    --color-accent-hover: #E5FF33;
    --color-accent-glow: rgba(212, 255, 0, 0.08);

    --color-border-default: #2A2A2A;
    --color-border-subtle: #1F1F1F;

    --color-badge-bg: #1F2A1F;
    --color-badge-text: #8FBC8F;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
    --spacing-6xl: 12rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(212, 255, 0, 0.15);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--spacing-4xl);
    color: var(--color-text-primary);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: var(--spacing-4xl) 0 var(--spacing-4xl);
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-badge-bg);
    color: var(--color-badge-text);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-2xl);
    justify-content: center;
}

.badge-icon {
    color: var(--color-badge-text);
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto var(--spacing-3xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: var(--spacing-lg) var(--spacing-2xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-default);
}

.btn-secondary:hover {
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.status-badge {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

.trust-bar {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-6xl);
    flex-wrap: wrap;
}

.separator {
    color: var(--color-border-default);
}

/* ===================================
   PRODUCT SCREENSHOT
   =================================== */
.product-mockup {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.product-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--color-border-default);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-screenshot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(212, 255, 0, 0.15);
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */
.how-it-works {
    padding: var(--spacing-3xl) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 1100px;
    margin: 0 auto;
}


.step-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 8rem;
    font-weight: var(--font-weight-extrabold);
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.step-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent-primary);
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.step-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* ===================================
   PROBLEM & SOLUTION SECTION
   =================================== */
.problem-solution {
    padding: var(--spacing-6xl) 0;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

.ps-card {
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    border: 2px solid var(--color-border-default);
    transition: all 0.3s ease;
}

.problem-card {
    border-color: rgba(220, 38, 38, 0.3);
}

.problem-card:hover {
    border-color: rgba(220, 38, 38, 0.5);
}

.solution-card {
    border-color: var(--color-accent-glow);
}

.solution-card:hover {
    border-color: var(--color-accent-primary);
    box-shadow: var(--shadow-glow);
}

.ps-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-muted);
}

.ps-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-secondary);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

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

.footer-copyright {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 95%;
        margin: 0 auto;
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .ps-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-mockup {
        max-width: 280px;
    }

    /* Smaller step cards on mobile - reduced padding, same content size */
    .step-card {
        padding: var(--spacing-lg);
        max-width: 80%;
        margin: 0 auto;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--spacing-md);
    }

    .step-icon svg {
        width: 24px;
        height: 24px;
    }

    .step-number {
        font-size: 5rem;
    }

    /* Smaller problem/solution cards on mobile */
    .ps-card {
        padding: var(--spacing-xl);
        max-width: 80%;
        margin: 0 auto;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Apply animations to elements */
.hero-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.trust-bar {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.product-mockup {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.product-screenshot {
    animation: float 4s ease-in-out infinite;
    will-change: transform;
}

.badge {
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    animation: pulse 2s ease-in-out infinite;
}

.logo-image {
    animation: float 3s ease-in-out infinite;
}

.step-card:nth-child(1) {
    animation: slideInLeft 0.6s ease-out;
}

.step-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.step-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.step-card:nth-child(4) {
    animation: slideInRight 0.6s ease-out 0.6s both;
}

.ps-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover animation enhancements */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 255, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover::before {
    width: 400px;
    height: 400px;
}

/* Disabled State */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: var(--color-bg-secondary) !important;
    color: var(--color-text-muted) !important;
    box-shadow: none !important;
    border: 1px solid var(--color-border-subtle);
}

.btn-disabled svg {
    display: none;
    /* Hide icon for disabled state if desired, or keep it */
}

/* Enhanced card hover effects */
.step-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.ps-card {
    transition: all 0.3s ease;
}

.ps-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   MODAL FORM
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-xl);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.modal-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2xl);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-field label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: var(--spacing-lg);
    background-color: var(--color-accent-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-md);
}

.form-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.form-submit:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-container {
        padding: var(--spacing-2xl);
        max-width: 100%;
    }

    .modal-title {
        font-size: var(--font-size-xl);
    }
}

/* ===================================
   CHAT FEATURE TILE
   =================================== */
.chat-feature {
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(145deg, var(--color-bg-card), rgba(56, 189, 248, 0.05));
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.chat-feature:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
    transform: translateY(-4px);
}

.chat-feature .step-icon {
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.chat-feature .step-label {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-card:nth-child(5) {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* ===================================
   STAR BACKGROUND ANIMATION
   =================================== */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
}

.star {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    will-change: transform, opacity;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 8px rgba(130, 200, 255, 0.4);
    }
}