@import url('./font.css');

/* Design System Variables */
:root {
    /* Colors (HSL format) */
    --background: 0 0% 100%;
    --foreground: 0 0% 0%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 0%;
    --primary: 0 0% 0%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 0 0% 20%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 10%;
    --muted: 0 0% 95%;
    --muted-foreground: 0 0% 45%;
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 10%;
    --border: 0 0% 90%;
    --ring: 0 0% 0%;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(0 0% 0%), hsl(0 0% 20%));
    --gradient-hero: linear-gradient(135deg, hsl(0 0% 0%), hsl(0 0% 10%), hsl(0 0% 20%));
    --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%), hsl(0 0% 98%));

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsl(0 0% 0% / 0.15);
    --shadow-glow: 0 0 40px hsl(0 0% 0% / 0.3);

    /* Layout */
    --radius: 0.5rem;
    --container-max-width: 1200px;
    --container-padding: 1rem;
}

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

body {
    line-height: 1.5;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    overflow-x: hidden;
}

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

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Button Variants */
.btn-hero {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn-hero:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-outline-hero {
    border: 2px solid hsl(var(--primary));
    background: hsl(var(--background));
    color: hsl(var(--primary));
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn-outline-hero:hover {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}

.btn-link {
    color: hsl(var(--primary));
    background: transparent;
    border: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0;
    height: auto;
}

.btn-link:hover {
    text-decoration: none;
}

/* Login Button */
.login-button-container {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
}

.btn-login {
    background: white;
    color: black;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-login:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
    transform: translateY(-1px);
}

.btn-login .icon {
    width: 16px;
    height: 16px;
}

/* Button Sizes */
.btn-sm {
    height: 2.25rem;
    border-radius: calc(var(--radius) - 2px);
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    height: 2.75rem;
    border-radius: calc(var(--radius) + 2px);
    padding: 0 2rem;
    font-size: 1.125rem;
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, white, hsl(var(--primary-glow)));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hero-image-container {
    position: relative;
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, hsl(var(--primary) / 0.2), transparent);
    border-radius: 1.5rem;
    filter: blur(3rem);
}

.hero-image {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

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

.feature-card {
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    padding: 0.75rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-soft);
    color: white;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.feature-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: hsl(var(--background));
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2rem;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    background: hsl(var(--card));
}

.pricing-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-card.popular {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
    background: linear-gradient(to bottom, hsl(var(--accent) / 0.5), hsl(var(--card)));
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.period {
    color: hsl(var(--muted-foreground));
}

.plan-credits {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

.plan-button {
    width: 100%;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
}

.pricing-footer-text {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: hsl(var(--foreground));
    color: white;
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 2;
}

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

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
}

.footer-link-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: white;
}

.phone-number {
    text-decoration: none;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-legal {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}