/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --color-brand-blue: #2563EB;
    --color-deep-blue: #1D4ED8;
    --color-juicy-blue: #1CB0F6;
    --color-dark-juicy-blue: #1899D6;
    /* For button shadow */
    --color-juicy-green: #58CC02;
    --color-dark-juicy-green: #46A302;
    /* For button shadow */
    --color-juicy-gold: #FFC800;
    --color-juicy-red: #FF4B4B;
    --color-sage-green: #A7D7C5;
    --color-coral: #FF7F50;

    /* UI Colors */
    --bg-page: #FFFFFF;
    --bg-secondary: #F7F7F7;
    /* Light gray for alternation */
    --text-primary: #3c3c3c;
    --text-secondary: #777777;
    --border-color: #e5e5e5;

    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.5;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE, #BFDBFE);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    border-bottom: 4px solid rgba(255, 255, 255, 0.6);
    /* Keep slight chunky feel but glassy */
}

h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.flex {
    display: flex;
}

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

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

.justify-between {
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-brand {
    color: var(--color-brand-blue);
}

/* Buttons (The "Chunky" Look) */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all 0.1s;
    border: none;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    cursor: pointer;
}

.btn:active {
    transform: translateY(4px);
    border-bottom-width: 0px;
    margin-top: 4px;
    /* Maintain height */
}

.btn-primary {
    background-color: var(--color-brand-blue);
    color: white;
    border-bottom-color: var(--color-deep-blue);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    /* Deep Blue on hover */
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--color-brand-blue);
    border: 2px solid var(--border-color);
    border-bottom-color: var(--border-color);
    border-bottom-width: 4px;
}

.btn-secondary:hover {
    background-color: #F7F7F7;
    border-color: #d4d4d4;
    border-bottom-color: #d4d4d4;
}

.btn-blue {
    background-color: var(--color-juicy-blue);
    color: white;
    border-bottom-color: var(--color-dark-juicy-blue);
}

.btn-blue:hover {
    filter: brightness(1.1);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    /* Glass Header */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    padding: 0.8rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-brand-blue);
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
    /* Mobile first */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    gap: 1rem;
}

.nav-links.active {
    display: flex !important;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    overflow: hidden;
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e3a8a;
    /* darker blue for better contrast on glass */
}

.hero-img-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-img {
    width: 250px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-mascot {
    animation: float 6s ease-in-out infinite;
}

/* Value Props (Zig Zag) */
.section-alt {
    /* Glassy Section Background */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-img {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-bubble {
    /* Glassy Bubbles */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 4px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
    color: var(--color-deep-blue);
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.value-bubble:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--color-juicy-blue);
    color: var(--color-juicy-blue);
    border-bottom-color: var(--color-juicy-blue);
}

/* Footer */
.site-footer {
    background-color: var(--color-brand-blue);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* About Page Tabs */
.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.tab-item {
    background: white;
    border: 2px solid #e5e5e5;
    border-bottom: 4px solid #e5e5e5;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.2s;
}

.tab-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-brand-blue);
    border-bottom-color: var(--color-brand-blue);
    color: var(--color-brand-blue);
}

.mission-tab {
    background: #E0F2FE;
    /* Light blue tint */
    border-color: #BAE6FD;
    border-bottom-color: #7DD3FC;
    color: #0369A1;
}

.bg-texture {
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* App Marquee Section */
.marquee-container {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 20s linear infinite;
    padding-left: 3rem;
    /* smooth start */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }

    /* Move half way (original set) + half gap */
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Phone Mockup (Marquee Version) */
.phone-mockup {
    width: 280px;
    height: 480px;
    /* Calculated to match ~1170x2007 ratio including padding */
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 6px solid #333;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Natural fit */
    border-radius: 32px;
    background: #fff;
}

/* Dynamic Hover Effect in Marquee */
.phone-mockup:hover {
    transform: scale(1.05);
    /* Just scale, no tilt to keep it clean in motion */
    z-index: 10;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
    border-color: #444;
}

/* Mission & Vision Redesign */
.mission-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 2rem;
}

.mission-step:last-child {
    padding-bottom: 0;
}

.mission-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    /* Center of circle (40px width) */
    top: 40px;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--color-brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.vision-grid-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: transform 0.2s;
}

.vision-grid-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
}

.vision-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* Mobile responsive for phones */
@media (max-width: 900px) {

    .phone-tilt-left,
    .phone-tilt-right,
    .phone-center {
        transform: none;
    }

    .mockup-grid {
        gap: 2rem;
    }

    .phone-mockup {
        width: 240px;
        height: 380px;
    }

    .phone-mockup img {
        object-fit: contain;
    }
}

/* Mobile First Adjustments */
@media (max-width: 480px) {

    /* Header fixes */
    .site-header {
        padding: 0.6rem 0;
    }

    .site-header .container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .site-header .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        white-space: nowrap;
    }

    /* Hero section fixes */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-section .container {
        padding: 0 1rem;
    }

    .hero-img-container {
        justify-content: center;
        margin-bottom: 1.5rem;
        order: -1;
    }

    .hero-img {
        width: 180px;
    }

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

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1.3rem;
    }

    .flex-col {
        width: 100%;
    }

    .flex-col a {
        max-width: 100% !important;
        width: 100% !important;
    }

    .grid-2 {
        gap: 1.5rem;
    }

    /* Override inline styles for mobile */
    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-section .container {
        overflow: hidden;
    }

    .hero-section .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-img-container {
        order: 1 !important;
    }

    .hero-content {
        order: 2 !important;
        width: 100%;
    }

    /* Ensure buttons don't overflow */
    .hero-content .btn {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box;
    }

    /* Value cards stack on mobile */
    .value-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Trust cards stack on mobile */
    .trust-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Tablet Adjustments */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-img {
        width: 280px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Value cards 2 columns on tablet */
    .value-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Trust cards 2 columns on tablet */
    .trust-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive */
.btn {
    max-width: 100%;
    /* Prevent overflow on small screens */
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .grid-2.reverse {
        direction: rt1;
        /* Not a valid property, using order instead */
    }

    /* Helper for reordering grid on desktop */
    .order-2 {
        order: 2;
    }

    .order-1 {
        order: 1;
    }

    .hero-content {
        text-align: left;
    }

    .hero-img-container {
        justify-content: flex-end;
    }

    .hero-img {
        width: 400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}