/* ============================================
   RefluSense Landing Page – style.css
   ============================================ */

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

:root {
    --blue: #1565C0;
    --blue-dark: #0D47A1;
    --blue-light: #E3F2FD;
    --teal: #00897B;
    --teal-light: #E0F2F1;
    --text-dark: #1C2128;
    --text-mid: #4B5563;
    --text-light: #9CA3AF;
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 8px 40px rgba(0, 137, 123, 0.08);
    --shadow-lg: 0 20px 60px rgba(21, 101, 192, 0.15);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: #F0F5FF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.10);
}

/* --- Header Inner --- */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-img.small {
    height: 32px;
}

/* --- Language Switcher (Desktop) --- */
.lang-switcher {
    position: relative;
    margin-right: 8px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-mid);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 6px;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-mid);
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown button:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

/* --- Language Switcher (Mobile) --- */
.mobile-lang-switcher {
    display: flex;
    gap: 8px;
    padding: 8px 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-lang-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-mid);
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-btn.active {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 1000px;
    margin: 0 auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.cookie-content a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-accept {
    background: var(--blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-accept:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        bottom: 16px;
        left: 16px;
        right: 16px;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    
    .cookie-accept {
        width: 100%;
    }
}

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

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

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-nav-link:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

/* ============================================
   HERO BACKGROUND
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 68px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #F5F7FA 0%,
        #E3F2FD 25%,
        #E0F2F1 60%,
        #FFFFFF 100%
    );
    z-index: 0;
}

/* Animated blobs */
.hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #BBDEFB, #1565C0);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #B2DFDB, #00897B);
    bottom: -100px;
    right: -100px;
    animation-delay: -3s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #E1F5FE, #4FC3F7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ============================================
   HERO CONTENT LAYOUT
   ============================================ */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 40px 24px;
}

/* ============================================
   FEATURE CARD (Left)
   ============================================ */
.feature-panel {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 360px;
}

.feature-card, .cta-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #E0F2F1, #CCEDE8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.1);
    transition: var(--transition);
}

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.feature-card-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.65;
    flex: 1;
    transition: opacity 0.3s ease;
}

.feature-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--blue);
}

/* ============================================
   PHONE SHOWCASE (Center)
   ============================================ */
.phone-showcase {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-wrapper {
    position: relative;
}

.phone-glow {
    position: absolute;
    inset: -20px;
    border-radius: 60px;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.25) 0%,
        rgba(236, 72, 153, 0.15) 50%,
        transparent 70%
    );
    z-index: -1;
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.phone-frame {
    width: 260px;
    height: 540px;
    background: #1a1a1a;
    border-radius: 48px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}

/* Notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
}

/* ============================================
   CTA PANEL (Right)
   ============================================ */
.cta-panel {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    max-width: 360px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E0F2F1, #CCEDE8);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    border: 1px solid rgba(0, 137, 123, 0.15);
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--blue);
    background: linear-gradient(135deg, var(--blue), #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ============================================
   STORE BUTTONS
   ============================================ */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.store-btn:active {
    transform: translateY(0);
}

.store-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.google-play {
    background: #1a1a1a;
    color: white;
    border-color: rgba(255,255,255,0.1);
}

.app-store {
    background: white;
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.1);
}

.btn-label {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    line-height: 1;
}

.btn-store {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

/* ============================================
   MOBILE CTA
   ============================================ */
.mobile-cta {
    display: none;
    position: relative;
    z-index: 1;
    padding: 0 24px 48px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
    max-width: 480px;
}

.mobile-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-dark);
}

.mobile-hero-subtitle {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
}

.mobile-store-btns {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.5);
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.5;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   SLIDE TRANSITION ANIMATIONS
   ============================================ */
.feature-content-fade {
    animation: fadeSlide 0.5s ease forwards;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE – TABLET
   ============================================ */
@media (max-width: 900px) {
    .hero-content {
        gap: 24px;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .feature-panel,
    .cta-panel {
        max-width: 280px;
    }

    .hero-title {
        font-size: 22px;
    }

    .feature-card-title {
        font-size: 16px;
    }
}

/* ============================================
   RESPONSIVE – MOBILE
   ============================================ */
@media (max-width: 680px) {
    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        padding: 0 15px 11px;
        gap: 0;
        justify-content: flex-start;
        align-items: center;
        min-height: calc(100vh - 70px);
    }

    .feature-panel,
    .cta-panel {
        display: flex;
        max-width: 100%;
        width: 100%;
    }

    .feature-panel {
        order: 2;
        margin-top: -90px;
        position: relative;
        z-index: 1;
    }

    .cta-panel {
        order: 3;
        margin-top: 10px;
    }

    .feature-card, .cta-card {
        min-height: auto;
        padding: 16px 20px;
        gap: 8px;
        border-radius: 18px;
    }

    .feature-card {
        padding-top: 60px;
    }

    .feature-card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 0;
    }

    .feature-card-title {
        font-size: 16px;
    }

    .feature-card-desc {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .phone-showcase {
        order: 1;
        transform: scale(0.96);
        margin: 2px 0 0 0;
        z-index: 10;
        filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    }

    .phone-frame {
        width: 260px;
        height: 540px;
        box-shadow: 
            0 0 0 1px rgba(255,255,255,0.1),
            inset 0 0 0 1px rgba(255,255,255,0.06);
    }

    .badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .mobile-cta {
        display: none;
    }

    .footer {
        padding: 7px 24px 32px;
    }
}

@media (max-width: 380px) {
    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .mobile-store-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   SUBPAGE STYLES (Privacy & Terms)
   ============================================ */
.subpage-hero {
    min-height: 100vh;
    position: relative;
    padding-top: 68px;
    overflow: hidden;
}

.subpage-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #F5F7FA 0%,
        #E3F2FD 25%,
        #E0F2F1 60%,
        #FFFFFF 100%
    );
    z-index: 0;
}

.subpage-blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.subpage-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.subpage-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    padding: 40px 40px;
    box-shadow: var(--shadow-lg);
}

.subpage-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subpage-card .subpage-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
    display: block;
}

.subpage-card h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 24px 0 10px;
}

.subpage-card p,
.subpage-card li {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 8px;
}

.subpage-card ul,
.subpage-card ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.subpage-card .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    transition: gap 0.2s;
}

.subpage-card .back-link:hover {
    gap: 10px;
}

@media (max-width: 600px) {
    .subpage-card {
        padding: 28px 20px;
    }

    .subpage-card h1 {
        font-size: 22px;
    }
}
