/* ===== Base Styles & CSS Variables ===== */
:root {
    /* Colors - Light Premium Theme */
    --bg-base: #fbfbfd;
    --bg-surface: #ffffff;
    --primary: #0071e3;
    --primary-light: #439bf3;
    --primary-glow: rgba(0, 113, 227, 0.15);
    --secondary: #863bf6;
    --accent: #5e5ce6;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    --glass-border: 1px solid rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== Background Grid overlay ===== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Classes */
.glass-panel, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

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

.btn-primary:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.15);
}

.btn-secondary {
    background: #f5f5f7;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #e8e8ed;
    transform: translateY(-1px);
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.85rem 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.02);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.logo img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.desktop-nav {
    display: flex;
    gap: 2.25rem;
}

.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 3rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(94, 92, 230, 0.08);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

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

/* Hero Visual Layout */
.hero-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-dashboard {
    width: 290px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    border-radius: 24px;
    z-index: 2;
    transition: transform 0.5s ease;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.status-indicator.live {
    width: 8px;
    height: 8px;
    background-color: #34c759;
    border-radius: 50%;
    animation: pulse-green 2.5s infinite;
}

.pulse-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 113, 227, 0.15);
    background: radial-gradient(circle, rgba(0, 113, 227, 0.03) 0%, transparent 75%);
}

.ring-1 {
    animation: ripple 4s infinite linear;
}

.ring-2 {
    animation: ripple 4s infinite linear;
    animation-delay: 2s;
}

.center-logo {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    z-index: 2;
}

.status-text {
    text-align: center;
    margin-top: 1rem;
}

.status-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
}

.status-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Floating Status Cards */
.float-card {
    position: absolute;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    z-index: 3;
    animation: float-slow 5s ease-in-out infinite alternate;
}

.card-1 {
    top: 12%;
    right: 2%;
    animation-delay: -1s;
}

.card-2 {
    bottom: 12%;
    left: 2%;
    animation-delay: -2.5s;
}

.icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.alert {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.icon-box.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.card-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== Concept Section ===== */
.concept {
    padding: 6rem 0;
    background-color: #ffffff;
}

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

.section-header p {
    font-size: 1.1rem;
}

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

.concept-card {
    padding: 2.25rem;
    background: #f5f5f7;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: none;
    transition: var(--transition);
}

.concept-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

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

.concept-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.concept-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Confidentiality Section ===== */
.privacy {
    padding: 6rem 0;
}

.privacy-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3.5rem;
    align-items: center;
    background: #ffffff;
    padding: 4rem;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.privacy-text h2 {
    margin-bottom: 1.25rem;
}

.privacy-text p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.privacy-text p:last-child {
    margin-bottom: 0;
}

.privacy-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-animation {
    width: 120px;
    height: 120px;
    color: var(--primary);
    opacity: 0.85;
    animation: float-slow 4s ease-in-out infinite alternate;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 2rem 0 6rem;
}

.cta-card {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-card p {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto 1.25rem;
}

.input-glass {
    flex: 1;
    background: #f5f5f7;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-glass:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Footer ===== */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f5f5f7;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* ===== Responsiveness & Mobile Enhancements ===== */
@media (max-width: 992px) {
    .hero {
        padding-top: 90px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        height: 380px;
        margin-top: 1rem;
    }
    
    .privacy-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-cta {
        justify-content: center;
        gap: 0.85rem;
    }
    
    .btn {
        width: auto;
        padding: 0.65rem 1.35rem;
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 340px;
    }
    
    .main-dashboard {
        width: 250px;
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .pulse-container {
        width: 90px;
        height: 90px;
        margin: 1rem auto;
    }
    
    .center-logo {
        width: 42px;
        height: 42px;
        border-radius: 9px;
    }
    
    .float-card {
        padding: 0.6rem 0.85rem;
        gap: 0.6rem;
        border-radius: 12px;
    }
    
    .card-1 {
        top: 6%;
        right: 0;
    }
    
    .card-2 {
        bottom: 6%;
        left: 0;
    }
    
    .cta-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-glass {
        border-radius: 999px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .main-dashboard {
        width: 220px;
    }
    
    .card-1 {
        right: -5px;
    }
    
    .card-2 {
        left: -5px;
    }
}

/* ===== Keyframes & Animations ===== */
@keyframes float-slow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

/* JS Scroll Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
