/* Import shared design tokens and base styles */
@import "../../shared/styles/design-tokens.css";
@import "../../shared/styles/base.css";

/* Page variables */
:root {
    --max-width: 1200px;
}

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

/* =========================
   Animations
   ========================= */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* =========================
   Navigation
   ========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(242, 244, 248, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

/* =========================
   Buttons
   ========================= */

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--highlight);
    color: var(--primary-foreground);
    transform: translateY(-1px);
}

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

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

.hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}


.hero-subtitle {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
}

.hero-cta {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.hero-visual {
    width: 100%;
    max-width: 600px;
    height: 400px;
    overflow: visible;
    border-radius: 12px;
    margin: auto;
    position: relative;
}

.hero-visual .hero-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   Features
   ========================= */

.features {
    padding: 5rem 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--foreground);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow var(--transition-base), border-color var(--transition-base), transform 0.3s ease;
    box-shadow: rgba(184, 194, 215, 0.4) 0px 8px 16px 0px, rgba(184, 194, 215, 0.5) 0px 20px 40px 0px, rgba(184, 194, 215, 0.6) 0px 40px 80px 0px;
    animation: float 6s ease-in-out infinite;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.hero-card:has(img) {
    padding: 0;
    overflow: hidden;
}

.hero-visual {
    overflow: visible;
}

.hero-card:hover {
    animation-play-state: paused;
    box-shadow: rgba(184, 194, 215, 0.5) 0px 12px 24px 0px, rgba(184, 194, 215, 0.6) 0px 32px 64px 0px, rgba(184, 194, 215, 0.7) 0px 56px 112px 0px;
    border-color: var(--primary);
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    box-shadow: rgba(184, 194, 215, 0.35) 0px 6px 9px 0px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(184, 194, 215, 0.5) 0px 8px 12px 0px;
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    font-weight: 700;
    line-height: 1.5;
}

.feature-card p {
    color: var(--foreground);
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 400;
}

/* =========================
   CTA
   ========================= */

.cta {
    padding: 5rem 0;
    background: var(--muted);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 700;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--foreground);
    font-weight: 400;
}

/* =========================
   Footer
   ========================= */

.footer {
    padding: 3rem 0 1rem;
    background: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        margin-top: 3rem;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .features-grid,
    .demo-videos {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center; /* center horizontally */
        justify-content: stretch; 
    }

    .hero-cta a {
        width: auto; /* let the button size naturally */
        text-align: center;
    }
}

/* =========================
   Print
   ========================= */

@media print {
    .navbar,
    .footer,
    .cta {
        display: none;
    }
}
/* Hero heading classes */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.1; }
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }

/* Hero paragraph classes */
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-muted-foreground { color: var(--muted-foreground); }
.max-w-lg { max-width: 32rem; } /* 512px */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive breakpoints */
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
}