/* ═══════════════════════════════════════════
BASE & VARIABLES
═══════════════════════════════════════════ */
:root {
    --teal: #4AC3F9;
    --teal-dark: #2a9fd8;
    --green: #06e1a2;
    --blue-mid: #4c96d7;
    --text-dark: #1a2540;
    --text-mid: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f0f8ff;
    --bg-lighter: #f7fbff;
    --bg-section: #e8f4fc;
    --card-border: #d4eaf7;
    --shadow-sm: 0 2px 12px rgba(74,195,249,0.1);
    --shadow-md: 0 8px 30px rgba(74,195,249,0.15);
    --shadow-lg: 0 20px 60px rgba(44,120,200,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74,195,249,0.15);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(74,195,249,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1.65rem;
    letter-spacing: 0.05em;
    color: var(--blue-mid);
    flex-shrink: 0;
}

.logo-icon { display: flex; align-items: center; }
.logo-text { color: var(--teal); }

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--teal);
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    background: rgba(74,195,249,0.08);
    color: var(--teal-dark);
}

.nav-btn {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--green));
    padding: 10px 20px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74,195,249,0.4);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-trigger svg {
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-trigger svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    /* Invisible top padding so mouse can slide from nav link to menu without gap */
    margin-top: 0;
}

/* Invisible bridge between nav link and dropdown so hover doesn't break */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(12px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s;
    color: var(--text-dark);
}

.dropdown-item:hover { background: var(--bg-light); }

.dropdown-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font);
}

.dropdown-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.di-icon { font-size: 1.4rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: 0.3s;
}

/* ═══════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════ */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-title {
    font-family: var(--font);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    color: var(--text-dark);
}

.section-title.teal { color: var(--blue-mid); }

.section-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--green));
    margin: 16px auto 48px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
    padding-top: var(--nav-h);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 370px;
    display: block;
    position: relative;
}

.hero-center {
    text-align: center;
    padding: 72px 28px 80px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 550;
    color: var(--blue-mid);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    font-weight: 400;
    color: #666769;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.hero-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 40px;
}

.hero-checks span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.95rem;
    color: #666769;
    font-weight: 400;
    white-space: nowrap;
}

.hero-checks .fa-check-square {
    color: #06e1a2;
    font-size: 1.1rem;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4a7fc1, #5baee0);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 13px 30px;
    border-radius: 50px;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 24px rgba(74,120,200,0.3);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(74,120,200,0.4);
}

.play-circle {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    padding-left: 2px;
}

/* ─── ADOPTION ─── */
.adoption {
    background: white;
    padding: 72px 0 80px;
    position: relative;
    z-index: 1;
}

.adoption-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

.adoption h2 {
    margin-bottom: 48px;
}

.adoption-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.adoption-card {
    background: var(--bg-lighter);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.adoption-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.adoption-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.adoption-card h3 {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.adoption-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   WHY DARWIN
═══════════════════════════════════════════ */
.why-darwin {
    background: var(--bg-section);
    padding: 80px 0;
}

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

.feature-card {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(74,195,249,0.12), rgba(6,225,162,0.08));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════ */
.clients-section {
    background: white;
    padding: 72px 0 80px;
}

.clients-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
}

.client-logo {
    opacity: 0.75;
    transition: opacity 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.06);
}

.client-logo img {
    max-height: 52px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.client-logo:hover img { filter: none; }

/* ═══════════════════════════════════════════
   FEATURE ROWS (section 3)
═══════════════════════════════════════════ */
.features-section {
    background: var(--bg-white);
}

.feature-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border-bottom: 1px solid rgba(74,195,249,0.1);
}

.feature-row:last-child { border-bottom: none; }

.feature-row.reverse .feature-visual { order: -1; }

.feature-heading {
    font-family: var(--font);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--blue-mid);
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 320px;
    object-fit: cover;
    width: 100%;
}

.feature-img-placeholder {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, rgba(74,195,249,0.1), rgba(6,225,162,0.06));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   PRICING SECTION
═══════════════════════════════════════════ */
.pricing-section {
    background: linear-gradient(135deg, #2a7dc9 0%, #1a5fa8 40%, #0d4a8a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pricing-title {
    font-family: var(--font);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: white;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.pricing-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
}

/* Form */
.pricing-form-wrap {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.form-title {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-mid);
    text-align: center;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #d4e8f5;
    padding: 10px 4px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aac4d8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--teal);
}

.form-status {
    font-size: 0.85rem;
    margin-bottom: 12px;
    min-height: 20px;
    text-align: center;
}

.form-status.success { color: #06d6a0; }
.form-status.error { color: #ef4444; }

.form-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--blue-mid), var(--teal));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74,195,249,0.4);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
    background: #0f2040;
    padding: 24px 0;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-container span {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--teal); }

/* ═══════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a2540;
    color: rgba(255,255,255,0.85);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    font-size: 0.85rem;
    z-index: 2000;
    max-width: 580px;
    width: calc(100% - 48px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateX(-50%) translateY(20px);
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.cookie-accept {
    flex-shrink: 0;
    background: var(--teal);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-accept:hover { background: var(--teal-dark); }

.cookie-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.cookie-close:hover { color: white; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   VIDEO MODAL
═══════════════════════════════════════════ */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.82);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.25s ease;
}

.video-modal-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.video-modal-box {
    position: relative;
    width: 72vw;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.93); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.video-modal-box video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.video-modal-close:hover {
    background: rgba(220,50,50,0.85);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero-center { padding: 50px 24px 56px; }
    .adoption-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-container { grid-template-columns: 1fr; gap: 40px; }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-visual { order: 0; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px 28px;
        gap: 4px;
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li { width: 100%; }
    .nav-link { width: 100%; padding: 12px 8px; }
    .nav-btn { width: 100%; text-align: center; margin-top: 8px; padding: 12px 20px; }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        padding: 8px;
        border-radius: var(--radius);
        margin-top: 4px;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        pointer-events: all;
    }

    .features-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .feature-row { padding: 40px 24px; }

    .pricing-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .clients-row { gap: 28px; }
    .client-logo img { max-height: 40px; max-width: 120px; }
}