/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Lovable Editorial Color Palette (HSL) */
    --background: hsl(40, 33%, 96%);
    --foreground: hsl(220, 20%, 12%);
    --card: hsl(40, 30%, 93%);
    --primary: hsl(32, 80%, 50%);
    --primary-foreground: hsl(40, 33%, 96%);
    --muted-foreground: hsl(220, 10%, 46%);
    --border: hsl(30, 15%, 80%);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Border Radius */
    --radius: 0.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

/* Header */
.header {
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--foreground);
}

.nav-signup {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-signup:hover {
    color: var(--foreground);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 8rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 48rem;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    animation: fade-in 0.6s ease-out forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    animation: fade-in-up 0.6s ease-out forwards;
}

.hero-title-accent {
    font-style: italic;
    color: var(--primary);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 36rem;
    margin-bottom: 2.5rem;
    animation: fade-in-up 0.6s ease-out 0.15s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fade-in-up 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.button-primary {
    background: var(--foreground);
    color: var(--background);
}

.button-primary:hover {
    opacity: 0.9;
}

.button-secondary {
    border: 2px solid var(--foreground);
    color: var(--foreground);
    background: transparent;
}

.button-secondary:hover {
    background: var(--foreground);
    color: var(--background);
}

.hero-detail {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.detail-dot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: var(--muted-foreground);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* How It Works Section */
.how-section {
    padding: 5rem 0 7rem;
    background: var(--card);
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

.title-accent {
    font-style: italic;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.step {
    padding: 0 0.5rem;
}

.step-number-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-family: var(--font-body);
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0 7rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.features-header {
    max-width: 42rem;
    margin-bottom: 4rem;
}

.features-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-top: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem 2.5rem;
}

.feature {
    padding: 0 0.5rem;
}

.feature-icon-sm {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.feature-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0 7rem;
    background: var(--foreground);
    color: var(--background);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.cta-title-accent {
    font-style: italic;
}

.cta-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    opacity: 0.7;
    max-width: 32rem;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    background: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 2px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .logo-icon {
    font-size: 1.25rem;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
