/**
 * Raksha Plus - Global Styles
 * Design System: Minimal, Clean, Premium (Apple-like)
 */

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #0056D2;
    /* Trust/Security Blue */
    --color-primary-dark: #0043A4;
    --color-primary-light: #E6F0FD;

    --color-secondary: #00A651;
    /* Safety/Action Green */
    --color-secondary-dark: #008D45;
    --color-secondary-light: #E6F7ED;

    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    /* Light grey for alternating sections */

    --color-text-main: #1A1F36;
    /* Dark navy for high contrast readability */
    --color-text-muted: #4F566B;
    --color-text-light: #8792A2;

    --color-border: #E3E8EE;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), #0070F3);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 1rem;
    /* 16px */
    --space-4: 1.5rem;
    /* 24px */
    --space-5: 2rem;
    /* 32px */
    --space-6: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */
    --space-16: 8rem;
    /* 128px */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    /* Animations */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --header-height: 80px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* color: var(--color-text-main); */
}

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

/* a:hover {
    color: var(--color-primary-dark);
} */

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    /* Slightly rounded, not full pill, for enterprise look */
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 86, 210, 0.15);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 210, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-muted);
    background-color: var(--color-bg-alt);
}

.btn-secondary {
    background: white;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.arrow {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Badge Pill */
.badge-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Text Gradients */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    margin-right: 12px;
}

.logo-raksha {
    color: var(--color-text-main);
}

.logo-plus {
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-16);
    background-color: var(--color-bg-main);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Mockup Images */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.mockup-dashboard-img {
    position: absolute;
    top: 5%;
    right: 0;
    width: 90%;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.mockup-phone-img {
    position: absolute;
    bottom: -10%;
    left: 0%;
    width: 35%;
    max-width: 250px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    z-index: 2;
}


/* ==========================================================================
   Animations
   ========================================================================== */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Section Headers & Utilities
   ========================================================================== */
.section-header {
    margin-bottom: var(--space-8);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-text-main);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.badge-green {
    background-color: var(--color-secondary-light);
    color: var(--color-secondary-dark);
}

.container-sm {
    max-width: 900px;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.problem-card {
    background: var(--color-bg-main);
    padding: var(--space-6) var(--space-5);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    background: var(--color-bg-alt);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.problem-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.problem-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Solution Section
   ========================================================================== */
.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-8);
    gap: var(--space-2);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    z-index: 2;
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.flow-step:hover .flow-icon {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 86, 210, 0.2);
}

.flow-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
}

.flow-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary-light), var(--color-primary));
    margin-bottom: 2rem;
    /* Align visual center of circle */
    max-width: 100px;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.step-card {
    padding: var(--space-4);
    position: relative;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-border);
    opacity: 0.5;
    margin-bottom: var(--space-2);
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.step-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-8);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: 12px;
    transition: background-color var(--transition-fast);
}

.feature-item:hover {
    background-color: var(--color-bg-alt);
}

.feature-icon {
    font-size: 2rem;
    background: var(--color-primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-1);
}

.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Use Cases Section
   ========================================================================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.use-case-card {
    display: flex;
    background: var(--color-bg-main);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.use-case-image {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.bg-blue {
    background-color: #E6F0FD;
}

.bg-green {
    background-color: #E6F7ED;
}

.bg-red {
    background-color: #FDE8E8;
}

.bg-gray {
    background-color: #F3F4F6;
}

.use-case-content {
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.use-case-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.use-case-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Security Section
   ========================================================================== */
.security-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-bg-alt);
    padding: var(--space-2) var(--space-4);
    border-radius: 99px;
    border: 1px solid var(--color-border);
    font-weight: 500;
}

.security-icon {
    font-size: 1.25rem;
}

/* ==========================================================================
   Product Showcase Section
   ========================================================================== */
.showcase-visuals {
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0F172A;
    /* Very dark blue for contrast */
    color: var(--color-text-light);
    padding-top: var(--space-8);
    padding-bottom: var(--space-4);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

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

.footer-desc {
    margin-top: var(--space-2);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.link-group h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-4);
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.link-group a {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
        /* Hide for now, implement mobile menu later */
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .hero-visual {
        margin-top: var(--space-8);
        height: 400px;
    }

    .mockup-dashboard-img {
        width: 100%;
        top: 20px;
        position: relative;
    }

    .mockup-phone-img {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .flow-container {
        flex-direction: column;
        gap: var(--space-4);
    }

    .flow-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
        margin-bottom: 0;
    }

    .flow-step {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        padding-left: 20%;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: var(--space-2);
    }

    .use-case-card {
        flex-direction: column;
    }

    .use-case-image {
        width: 100%;
        height: 120px;
    }

    .security-features {
        flex-direction: column;
        align-items: stretch;
    }

    .security-item {
        justify-content: center;
    }

    .dashboard-main {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--space-6);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-4);
    }
}