:root {
    /* Brand Colors */
    --primary-blue: #4285f4;
    --primary-hover: #357ae8;
    --secondary-purple: #6b72d6;
    --bg-light: #f8fafc;
    
    /* Text Colors - The Consistency Core */
    --text-dark: #111827;    /* Bold headings */
    --text-main: #374151;    /* Standard body text */
    --text-muted: #6b7280;   /* Subtitles and prompts */
    
    /* Layout Variables */
    --btn-roundness: 999px;
    --card-roundness: 24px;
    --section-padding: 60px;
    --transition: all 0.3s ease;
}

.hero {
    display: flex;
    align-items: center;
    padding: 40px 60px;
    background: radial-gradient(circle at top right, #f0f7ff 0%, transparent 60%);
    position: relative;   /* ADD THIS */
    overflow: hidden;     /* keeps layout clean */
}


/* --- Global Reset --- */
body {
    margin: 0;
    padding: 40px 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.page-container {
    width: 95%;
    max-width: 1200px;
    background: white;
    border-radius: var(--card-roundness);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* --- Typography System --- */
h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-circle {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;          /* allows text breathing space */
    background: var(--primary-blue);
    color: white;
    border-radius: 999px;     /* keeps pill/circle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}


.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-right: 25px;
    font-size: 15px;
    font-weight: 500;
    padding-bottom: 5px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: var(--primary-blue) !important;
}

/* --- Buttons --- */
button {
    border-radius: var(--btn-roundness) !important;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 14px 30px;
    width: 100%;
}

.btn-ghost {
    background: var(--secondary-purple) !important;
    color: white !important;
    padding: 14px 30px;
}

.btn-cta {
    background: #2563eb;
    color: white;
    padding: 14px 36px;
}

.btn-cta.large {
    padding: 18px 50px;
    font-size: 19px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    padding: 40px 60px;
    background: radial-gradient(circle at top right, #f0f7ff 0%, transparent 60%);
}

.hero-content {
    flex: 1.2;
    z-index: 2;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.signup-prompt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hero-visual {
    position: absolute;
    right: 40px;     /* distance from right edge */
    top: 50%;
    transform: translateY(-50%);
    width: 52%;
    z-index: 1;
    pointer-events: none; /* prevents accidental hover issues */
}


.hero-visual img {
    width: 120%;        /* bigger than container */
    max-width: none;    /* remove restriction */
    height: auto;
    object-fit: contain;
    transform: translateX(-60px);  /* pushes image LEFT */
}

.hero-content {
    flex: 1.2;
    z-index: 2;
    position: relative;
    max-width: 560px;   /* keeps text readable */
}

.hero-visual img {
    opacity: 0.95;
    filter: drop-shadow(0 40px 60px rgba(66,133,244,0.15));
}


/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.feature-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: var(--card-roundness);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.card-tagline {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Feature Cards Image Alignment Fix --- */

.card-img-wrapper {
    width: 100%;
    /* This creates a consistent 'window' for the images */
    height: 240px; 
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f3f4f6; /* Placeholder color while loading */
    display: flex;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    /* CRITICAL: This fills the box and crops the edges 
       to match the neighbor card perfectly */
    object-fit: cover; 
    /* Centers the important part of the visual */
    object-position: center; 
    display: block;
}

/* --- Navbar Logo Alignment (Matching Snapshot) --- */

.logo {
    display: flex;
    align-items: center;
    height: 64px;
    width: auto;
    overflow: hidden;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Adjust these if your image has built-in padding */
    margin-left: -5px; 
}

/* Update your nav-left to fix the spacing seen in the snapshot */
.nav-left {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between Logo and Links */
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* KEY: makes both images identical visually */
    border-radius: 16px;
}



.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.feature-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 15px;
}

.feature-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: 800;
}

.btn-secondary {
    background: var(--secondary-purple) !important;
    color: white !important;
    padding: 14px;
    width: 100%;
}

/* --- Insights Section --- */
.insights-section {
    text-align: center;
    padding: var(--section-padding);
}

.insights-subtitle {
    margin-bottom: 40px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 950px;
    margin: 0 auto 40px;
}

.insight-item {
    background: white;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.insight-icon.orange { background: #fff7ed; color: #f97316; }
.insight-icon.blue { background: #eff6ff; color: #3b82f6; }
.insight-icon.star { background: #f0fdf4; color: #22c55e; }
.insight-icon.red { background: #fef2f2; color: #ef4444; }

.insight-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.insight-text span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.footer-login {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #f1f5f9;
    color: var(--text-muted);
    font-size: 14px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 4px;
}

.social-links .icons {
    margin-left: 12px;
    letter-spacing: 4px;
}


/* ============================= */
/* MOBILE + TABLET RESPONSIVE FIX */
/* ============================= */

@media (max-width: 1024px) {

    /* reduce container padding */
    body {
        padding: 0;
    }

    .page-container {
        width: 100%;
        border-radius: 0;
    }

    /* NAVBAR */
    .navbar {
        padding: 18px 22px;
    }

    .nav-left {
        gap: 20px;
    }

    .nav-links a {
        margin-right: 14px;
        font-size: 14px;
    }

    /* HERO STACK LAYOUT */
    .hero {
        flex-direction: column;
        padding: 40px 22px 10px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 34px;
    }

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

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* IMPORTANT: remove absolute positioning on mobile */
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 30px;
        display: flex;
        justify-content: center;
    }

    .hero-visual img {
        width: 95%;
        max-width: 420px;
        transform: none;
        opacity: 1;
    }

    /* FEATURE GRID -> SINGLE COLUMN */
    .features-grid {
        grid-template-columns: 1fr;
        padding: 40px 22px;
        gap: 24px;
    }

    .feature-card {
        padding: 28px;
    }

    /* INSIGHTS GRID -> SINGLE COLUMN */
    .insights-section {
        padding: 40px 22px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .insight-item {
        padding: 18px;
    }

    /* BUTTON ADJUSTMENTS */
    .btn-cta.large {
        width: 100%;
        font-size: 17px;
        padding: 16px 24px;
    }

}


/* EXTRA SMALL PHONES */
@media (max-width: 480px) {

    h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    h2 {
        font-size: 20px;
    }

    .hero {
        padding-top: 30px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns button {
        width: 100%;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
    }

    .feature-card {
        padding: 22px;
    }

    .card-img-wrapper img {
        border-radius: 12px;
    }

}


/* ===== MOBILE NAVBAR FIX ===== */

@media (max-width: 768px){

    .navbar{
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 18px;
    }

    .nav-left{
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    /* keep logo + menu in one row */
    .nav-left{
        display:flex;
        align-items:center;
    }

    /* menu container */
    .nav-links{
        display:flex;
        gap:16px;
        flex-wrap:nowrap;     /* prevents Contact from dropping */
    }

    .nav-links a{
        margin-right:0;
        font-size:14px;
        white-space:nowrap;
    }

    /* move login button below nicely */
    .btn-outline{
        width:100%;
        margin-top:6px;
        padding:10px 18px;
        font-size:14px;
    }
}


/* CONTACT POPUP */

.contact-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:0.25s ease;
    z-index:999;
}

.contact-modal.show{
    opacity:1;
    pointer-events:auto;
}

.contact-box{
    background:white;
    padding:40px 36px;
    border-radius:18px;
    text-align:center;
    width:90%;
    max-width:420px;
    box-shadow:0 25px 60px rgba(0,0,0,0.2);
    position:relative;
    animation:popup 0.25s ease;
}

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

.contact-box h3{
    margin-top:0;
    font-size:24px;
    color:var(--text-dark);
}

.contact-box p{
    margin:12px 0 20px;
}

.contact-email{
    display:inline-block;
    font-weight:600;
    color:var(--primary-blue);
    font-size:18px;
    text-decoration:none;
}

.contact-email:hover{
    text-decoration:underline;
}

.contact-close{
    position:absolute;
    top:10px;
    right:14px;
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
    color:#6b7280;
}

.contact-close:hover{
    color:#111827;
}


/* HOW IT WORKS SECTION */

.how-section{
    padding:60px 60px 40px;
    text-align:center;
    background:white;
}

.how-section h2{
    margin-bottom:10px;
}

.how-subtitle{
    margin-bottom:30px;
    color:var(--text-muted);
}

.how-video{
    max-width:900px;
    margin:0 auto;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

.how-video video{
    width:100%;
    display:block;
}
html{
    scroll-behavior:smooth;
}
