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

:root {
    /* Dark theme colors using #583E9F as primary */
    --background: #141414;
    --foreground: #fafafa;
    --card: #1f1f1f;
    --card-foreground: #fafafa;
    --primary: #583e9f;
    --primary-foreground: #fafafa;
    --secondary: #2d2d2d;
    --secondary-foreground: #fafafa;
    --muted: #2d2d2d;
    --muted-foreground: #a6a6a6;
    --accent: #583e9f;
    --accent-foreground: #fafafa;
    --border: #2d2d2d;
    --input: #2d2d2d;
    --ring: #583e9f;
    --radius: 0.625rem;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, #583e9f 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.link-highlight {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-highlight:hover {
    color: color-mix(in srgb, var(--primary) 85%, white);
    text-decoration: underline;
}

/* Gradient Border Utility */
.gradient-border {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(135deg, #583e9f 0%, #8b5cf6 50%, #06b6d4 100%) border-box;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary) 90%, black);
}

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

.btn-secondary:hover {
    background-color: color-mix(in srgb, var(--secondary) 80%, white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background-color: var(--muted);
    color: var(--foreground);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    backdrop-filter: blur(8px);
    background-color: color-mix(in srgb, var(--background) 80%, transparent);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero--subpage {
    padding: 4rem 0;
}

.hero--subpage .hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero--subpage .hero-buttons {
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 5%, transparent) 0%,
        transparent 50%,
        color-mix(in srgb, var(--accent) 5%, transparent) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-wrap: balance;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

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

.play-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Social Proof Section */
.social-proof {
    padding: 4rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.social-proof-text {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    opacity: 0.6;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--muted-foreground) 80%, transparent);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 32rem;
    margin: 0 auto;
    text-wrap: balance;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

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

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

.contact-grid {
    margin-top: 3rem;
    gap: 2.5rem;
}

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

.contact-card {
    padding: 2.5rem 2.25rem;
    gap: 2rem;
}

.contact-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

.contact-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-heading .feature-title {
    margin: 0;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.contact-actions {
    margin-top: auto;
}

.contact-actions .btn {
    width: 100%;
}

.feature-card {
    background-color: color-mix(in srgb, var(--card) 50%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-content {
    display: flex;
    gap: 1rem;
    flex: 1;
    align-items: flex-start;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background-color: color-mix(in srgb, var(--card) 20%, transparent);
}

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

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

.step-card {
    background-color: var(--card);
    border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3.75rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--primary) 10%, transparent);
    transition: color 0.3s ease;
}

.step-card:hover .step-number {
    color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease;
}

.step-card:hover .step-icon {
    background-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.step-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

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

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

.testimonial-card {
    border-radius: var(--radius);
}

.testimonial-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background-color: color-mix(in srgb, var(--card) 20%, transparent);
}

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

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

.pricing-card {
    background-color: var(--card);
    border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    border-radius: var(--radius);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.gradient-border {
    border-color: transparent;
}

.pricing-card.popular {
    border-color: transparent;
}

.pricing-secondary {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.pricing-grid--secondary,
.pricing-grid--single {
    grid-template-columns: 1fr;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid--single {
    max-width: 32rem;
}

.pricing-secondary-heading {
    text-align: center;
}

.pricing-secondary-heading h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

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

.pricing-header {
    text-align: center;
    padding: 2rem 2rem 0;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
}

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

.plan-description {
    color: var(--muted-foreground);
    text-wrap: balance;
}

.pricing-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.plan-selector .btn {
    min-width: 8rem;
}

.selected-plan {
    margin-bottom: 2.5rem;
}

.selected-plan-card {
    max-width: 48rem;
    margin: 0 auto;
}

.plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.plan-actions .btn {
    flex: 1 1 12rem;
    max-width: 16rem;
}

.selected-plan-empty {
    text-align: center;
    padding: 2.5rem;
    border: 1px dashed color-mix(in srgb, var(--border) 50%, transparent);
    border-radius: var(--radius);
    background-color: color-mix(in srgb, var(--card) 40%, transparent);
}

.plan-help {
    text-align: center;
}

.demo-section {
    padding: 6rem 0;
}

.demo-wrapper {
    max-width: 60rem;
    margin: 0 auto 3rem;
    border-radius: calc(var(--radius) * 1.25);
}

.demo-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 20%, transparent),
        color-mix(in srgb, var(--accent) 15%, transparent)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    background: color-mix(in srgb, var(--background) 70%, transparent);
}

.demo-overlay svg {
    width: 3.5rem;
    height: 3.5rem;
}

.demo-overlay p {
    max-width: 28rem;
    color: var(--muted-foreground);
}

.demo-details {
    max-width: 54rem;
    margin: 0 auto;
    text-align: center;
}

.demo-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    text-align: left;
}

.demo-list li {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background-color: color-mix(in srgb, var(--card) 45%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

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

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

/* Footer */
.footer {
    background-color: color-mix(in srgb, var(--card) 50%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.footer-cta {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

.cta-content {
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.footer-content {
    padding: 3rem 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

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

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

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
}

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

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--foreground);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0 6rem;
    }

    .features,
    .how-it-works,
    .testimonials,
    .pricing {
        padding: 4rem 0;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus,
.social-link:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
