/* ==========================================================================
   CSS Variables & Tokens (Light & Beachy Theme)
   ========================================================================== */
   :root {
    /* Colors */
    --clr-ocean: #0077b6;
    --clr-teal: #00b4d8;
    --clr-light-blue: #90e0ef;
    --clr-cyan: #caf0f8;
    --clr-sand: #f3e8dd;
    --clr-sand-light: #faf5f0;
    --clr-white: #ffffff;
    --clr-navy: #03045e;
    --clr-text-main: #333d45;
    --clr-text-light: #6c757d;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing & Sizes */
    --section-padding: 6rem 1rem;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 119, 182, 0.08);
    --shadow-hover: 0 20px ৪০px rgba(0, 119, 182, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-sand-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-navy);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: var(--section-padding);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.highlight-text {
    background: linear-gradient(135deg, var(--clr-ocean), var(--clr-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.text-white {
    color: var(--clr-white);
}

.text-white h2 {
    color: var(--clr-white);
}

.text-dark {
    color: var(--clr-navy) !important;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--clr-ocean), var(--clr-teal));
    color: var(--clr-white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--clr-white);
}

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-ocean);
    border-color: var(--clr-cyan);
}

.btn-secondary:hover {
    background-color: var(--clr-cyan);
    color: var(--clr-navy);
}

.btn-solid-white {
    background-color: var(--clr-white);
    color: var(--clr-ocean);
}

.btn-solid-white:hover {
    background-color: var(--clr-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-navy);
    letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--clr-text-main);
}

.nav-links a:not(.btn):hover {
    color: var(--clr-ocean);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 2rem;
    background: linear-gradient(to bottom right, var(--clr-cyan) 0%, var(--clr-sand-light) 60%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-main);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-video-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.wave-bottom {
    position: absolute;
    bottom: -5px; /* Prevent tiny gap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-bottom .shape-fill {
    fill: var(--clr-white);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background-color: var(--clr-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--clr-sand-light);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 119, 182, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--clr-white);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--clr-cyan);
    color: var(--clr-ocean);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    font-family: var(--font-heading);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Use Cases Section
   ========================================================================== */
.bg-light {
    background-color: var(--clr-sand-light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: var(--clr-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
}

/* Base utility backgrounds for emojis */
.bg-navy { background-color: var(--clr-navy); color: white;}
.bg-teal { background-color: var(--clr-teal); color: white;}
.bg-ocean { background-color: var(--clr-ocean); color: white;}
.bg-sand { background-color: var(--clr-sand); color: var(--clr-navy);}

.card-text {
    padding: 2rem;
    flex: 1;
}

.card-text h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Integration Section
   ========================================================================== */
.integration {
    background-color: var(--clr-white);
}

.integration-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.integration-text {
    flex: 1;
}

.integration-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.integration-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
    font-size: 1.1rem;
}

.check-list li {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--clr-navy);
}

.integration-code {
    flex: 1;
}

.mock-window {
    background: var(--clr-navy);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.window-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mock-window pre {
    padding: 2rem;
    margin: 0;
    overflow-x: auto;
}

.mock-window code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a9b7c6;
    line-height: 1.5;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.bg-gradient {
    background: linear-gradient(135deg, var(--clr-ocean), var(--clr-teal));
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-sand-light);
    padding-top: 4rem;
    border-top: 1px solid rgba(0, 119, 182, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--clr-text-light);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--clr-text-light);
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--clr-ocean);
}

.divider {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(0, 119, 182, 0.1);
    text-align: center;
}

.copyright {
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media (max-width: 900px) {
    .hero-content, .integration-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .integration-text {
        text-align: center;
    }

    .check-list li {
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* simple mobile hide for now, would need a hamburger menu in real implementation */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}
