:root {
    /* Colors */
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --brand-primary: #0070FF;
    /* Darker Blue Gradient */
    --brand-accent: #003380;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));

    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 2.5rem 0;
    /* More margin */
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.header-container {
    display: flex;
    justify-content: center;
    /* Centered Logo since no nav */
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    display: flex;
    /* Ensure proper alignment if mixed with text, though now just img */
    align-items: center;
}

.logo img {
    height: 24px;
    /* Smaller logo */
    display: block;
}

.logo .dot {
    color: var(--brand-primary);
}

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
    /* Offset header */
    position: relative;
    overflow: hidden;
}

/* Background Glow */
#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Hook Text Replacement */
.hero-hook {
    margin-bottom: 3rem;
}

.hook-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hook-text-large {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--brand-primary);
}

/* Visual Mockup in Hero */
.hero-visual {
    perspective: 1000px;
}

.card-stack {
    position: relative;
    width: 300px;
    margin: 0 auto;
    height: 100px;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    background: #1a1a1a;
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.card-1 {
    transform: rotate(-5deg) translateZ(0px);
    top: 0;
    z-index: 1;
    opacity: 0.8;
}

.card-2 {
    transform: rotate(3deg) translateZ(10px);
    top: 10px;
    z-index: 2;
    opacity: 0.9;
}

.card-3 {
    transform: rotate(-2deg) translateZ(20px) translateY(10px);
    top: 20px;
    z-index: 3;
    border-color: var(--brand-primary);
}

.card-stack:hover .card-1 {
    transform: rotate(-15deg) translateZ(0px) translateX(-20px);
}

.card-stack:hover .card-2 {
    transform: rotate(10deg) translateZ(10px) translateX(20px);
}

.card-stack:hover .card-3 {
    transform: rotate(0deg) translateZ(30px) translateY(-5px) scale(1.05);
}

/* Features */
#features {
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works */
#how-it-works {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, var(--bg-color), #0a0a0a);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-side {
    flex: 1;
}

.text-side h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.steps {
    list-style: none;
    /* Fix double numbers */
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.steps li {
    position: relative;
    padding-left: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    font-weight: bold;
}

.visual-side {
    flex: 1;
}

.demo-screen {
    background: #111;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 300px;
}

.demo-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot-ui {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.typing-text {
    font-family: monospace;
    color: var(--text-muted);
    border-right: 2px solid var(--brand-primary);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards infinite;
}

.badge-pop {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: popIn 0.5s ease forwards;
    animation-delay: 3s;
    /* Wait for typing */
}

.badge-pop.delay-1 {
    animation-delay: 3.2s;
    background: rgba(139, 92, 246, 0.1);
    color: var(--brand-accent);
}

/* Newsletter */
#newsletter {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.centered-footer {
    justify-content: center;
    display: flex;
}

/* Animations */
@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
        border-right-color: var(--brand-primary);
    }

    80% {
        width: 100%;
        border-right-color: transparent;
    }

    100% {
        width: 100%;
        border-right-color: transparent;
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .steps {
        align-items: flex-start;
        text-align: left;
    }
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    /* Ensure it has height without content */
    vertical-align: text-bottom;
    /* Align nicely with text */
    background-color: #ffffff;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}