/* Base Reset & Variables */
:root {
    --bg-dark: #050505;
    --bg-surface: rgba(20, 20, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(25, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
}

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

/* Ambient Background Effects */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-2 {
    top: 40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 100px) scale(0.9);
    }
}

/* Utility Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--text-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.logo:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a.btn {
    text-decoration: none;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5a6f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease-out 0.3s both;
}

.glass-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.glass-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.hero-microcopy {
    font-size: 13px;
    color: var(--text-secondary);
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: floatIn 1.2s ease-out 0.4s both;
}

.mockup-card {
    border-radius: 24px;
    padding: 0;
    max-width: 420px;
    width: 100%;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.2);
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    position: relative;
    text-align: left;
}

.hero-visual:hover .mockup-card {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.preview-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mockup-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.preview-body {
    padding: 24px;
    position: relative;
}

.preview-story {
    margin-bottom: 24px;
}

.preview-story h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
}

.preview-story p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.preview-story p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(20, 20, 25, 0), rgba(20, 20, 25, 1));
    pointer-events: none;
}

/* Section Common */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 48px;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* How It Works Section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.step {
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* CTA Section */
.cta-section {
    padding-bottom: 120px;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0) 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 40px;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.pricing-tier {
    margin-bottom: 32px;
}

.pricing-tier .price {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.pricing-tier .price span {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-tier .price-subtext {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.cta-box .hero-form {
    max-width: 450px;
    margin: 0 auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Animations Variables */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .nav-links a.btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 80px;
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .steps-container::before {
        display: none;
    }

    .mockup-card {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }

    .hero-visual:hover .mockup-card {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }

    .cta-box {
        padding: 60px 20px;
    }

    .cta-box h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}