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

:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.75rem;
}

.dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 221.2 83.2% 53.3%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section */
.section {
    width: 100%;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: hsla(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: hsl(var(--foreground));
}

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

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

.nav-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-block {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: hsla(var(--primary) / 0.9);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsla(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsla(var(--secondary) / 0.5);
}

.btn-shadow {
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-shadow:hover {
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.btn-icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero */
.hero {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 8rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(hsla(0, 0%, 100%, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, transparent 20%, black);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black);
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to bottom, hsl(0, 0%, 100%), hsl(0, 0%, 75%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 2.5rem;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* Features */
.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: background-color 0.2s ease;
}

.feature-card:hover {
    background-color: hsla(0, 0%, 100%, 0.1);
}

.feature-icon {
    margin-bottom: 1rem;
}

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

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

/* Subfeatures */
.subfeatures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.subfeature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
}

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

/* Benefits */
.bg-secondary {
    background-color: hsla(var(--secondary) / 0.5);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
}

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

.benefit-card {
    padding: 1.5rem 0;
}

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Showcase */
.showcase-card {
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius);
    padding: 1rem;
}

@media (min-width: 768px) {
    .showcase-card {
        padding: 2rem;
    }
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background-color: black;
    border-radius: calc(var(--radius) - 0.25rem);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px hsla(var(--primary) / 0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1e293b, #0f172a);
}

.video-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
}

.video-title {
    font-weight: 700;
}

.video-subtitle {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.8);
}

.video-wrapper {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.1);
}

.video-wrapper iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: calc(var(--radius) - 0.25rem);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px hsla(var(--primary) / 0.1);
}

/* Thumbnail Wrapper */
.video-thumbnail-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumbnail-wrapper:hover .video-thumbnail {
    opacity: 0.9;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-thumbnail-wrapper:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button svg {
    transition: transform 0.2s ease;
}

.video-thumbnail-wrapper:hover .play-button svg {
    transform: scale(1.05);
}

/* YouTube Iframe Wrapper */
.youtube-iframe-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Video Info */
.video-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    z-index: 10;
    pointer-events: none;
}

.video-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.video-subtitle {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.8);
}

@media (max-width: 768px) {
    .video-wrapper iframe {
        height: 300px;
    }
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .tech-stack {
        gap: 2rem;
    }
}

.tech-item {
    padding: 0.5rem 1.5rem;
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 9999px;
    color: hsl(var(--muted-foreground));
}

.tech-note {
    text-align: center;
    color: hsla(var(--muted-foreground) / 0.7);
    font-size: 0.875rem;
}

/* Pricing */
.pricing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pricing-container {
        flex-direction: row;
        justify-content: center;
    }
}

.pricing-card {
    position: relative;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    background: hsla(0, 0%, 100%, 0.05);
}

.pricing-card.featured {
    border: 2px solid hsl(var(--primary));
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
}

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

.pricing-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

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

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

.feature-check {
    color: hsl(var(--primary));
    width: 1.25rem;
    height: 1.25rem;
}

.feature-check-muted {
    color: hsl(var(--muted-foreground));
    width: 1.25rem;
    height: 1.25rem;
}

/* Download */
.download-card {
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .download-card {
        padding: 3rem;
    }
}

.download-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.download-description {
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto 1.5rem;
}

.download-note {
    color: hsla(var(--muted-foreground) / 0.8);
    font-size: 0.875rem;
    max-width: 48rem;
    margin: 0 auto 1.5rem;
}

.download-actions {
    margin: 2rem 0;
}

.divider {
    border: none;
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    margin: 2rem 0;
}

.link-primary {
    color: hsl(var(--primary));
    text-decoration: underline;
}

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

/* Use Cases */
.usecases-grid {
    display: grid;
    gap: 1.5rem;
}

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

.usecase-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dark .usecase-card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.usecase-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Tech Details */
.techdetails-grid {
    display: grid;
    gap: 1.5rem;
}

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

.techdetail-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dark .techdetail-card {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.techdetail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Blogs */
.blogs-card {
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .blogs-card {
        padding: 3rem;
    }
}

.blogs-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.blogs-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.blog-post {
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
    transition: background-color 0.2s ease;
}

.blog-post:hover {
    background-color: hsla(0, 0%, 100%, 0.1);
}

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

.blog-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.blog-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-link:hover {
    text-decoration: underline;
}

.link-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.blog-link:hover .link-icon {
    transform: translateX(0.25rem);
}

/* Footer */
.footer {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    margin-top: 5rem;
}

.footer-cta {
    background: hsla(0, 0%, 100%, 0.05);
    border-radius: 1rem;
    padding: 3rem;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-cta-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.footer-cta-description {
    color: hsl(var(--muted-foreground));
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.footer-bottom a {
    color: hsl(var(--primary));
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Icons */
.icon-primary {
    color: hsl(var(--primary));
}
.color-muted {
    color: hsl(var(--muted-foreground));
}

/* Animations */
/* Shimmer effect for rotating phrase */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        hsla(var(--primary) / 0.2),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

/* Shimmer Feature */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shimmer {
  0% {
    background-position: -500px 0;
  }
  100% {
    background-position: 500px 0;
  }
}

@keyframes shimmer-fade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.shimmer-text {
  background: linear-gradient(to right, #a5b4fc 4%, #ffffff 50%, #a5b4fc 96%);
  background-size: 1000px 100%;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0.5rem 0 2rem;
  transition: all 0.5s ease-in-out;
  min-height: 1.5rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s infinite linear, shimmer-fade 5s infinite ease-in-out;
}
