:root {
    /* Brand Colors */
    --primary: #6C5DD3;
    --primary-dark: #2B3674;
    --accent: #00D2FF;
    --secondary: #FFB547;
    /* Orange */
    --success: #05CD99;
    /* Mint */

    /* Backgrounds */
    --bg-page: #F4F7FE;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-card: #FFFFFF;

    /* Text */
    --text-main: #2B3674;
    --text-body: #6E7997;
    --text-light: #A3AED0;

    /* Effects */
    --shadow-soft: 0 8px 24px rgba(112, 144, 176, 0.15);
    --shadow-strong: 0 16px 40px rgba(112, 144, 176, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);

    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-round: 100px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand-text,
.btn-large {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 93, 211, 0.2) 0%, rgba(244, 247, 254, 0) 70%);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 205, 153, 0.15) 0%, rgba(244, 247, 254, 0) 70%);
    bottom: 0;
    left: -100px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-round);
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    border: var(--glass-border);
    transition: all 0.3s ease;
}

.glass-header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-round);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.4);
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #8B7EF8);
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-round);
    font-weight: 700;
    font-size: 18px;
    box-shadow: var(--shadow-strong);
    transition: all 0.3s;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(108, 93, 211, 0.3);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.link-text {
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 93, 211, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(108, 93, 211, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(108, 93, 211, 0);
    }
}

/* Hero Section */
.hero {
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

/* Phones Ui Mockup */
/* App Mockup Image - Cropped & Zoomed */
.mockup-frame {
    width: 320px;
    height: 600px;
    /* Fixed height to crop */
    margin: 0 auto;
    border-radius: 40px;
    border: 8px solid white;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    /* Crops the zoomed image */
    background: #fff;
    position: relative;
}

.app-mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.35);
    /* Zoom in to remove whitespace */
    transform-origin: center center;
}

/* Cleanup: Removed unused HTML-based mockup styles */

/* Features */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-page);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.card-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.bg-blue-soft {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(108, 93, 211, 0.2);
}

.bg-orange-soft {
    background: var(--secondary);
    box-shadow: 0 10px 20px rgba(255, 181, 71, 0.2);
}

.bg-mint-soft {
    background: var(--success);
    box-shadow: 0 10px 20px rgba(5, 205, 153, 0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    margin-bottom: 24px;
    color: var(--text-body);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.check {
    color: var(--success);
    font-weight: bold;
}

/* About / Meaning */
.about-section {
    padding: 80px 0;
}

.about-box {
    background: white;
    border-radius: 40px;
    padding: 60px;
    display: flex;
    gap: 60px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.about-content {
    flex: 1;
    z-index: 2;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.meaning-text {
    font-size: 18px;
    margin-bottom: 20px;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.math-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 200px;
    opacity: 0.1;
    font-family: 'Times New Roman', serif;
    font-weight: bold;
}

.symbol {
    font-size: 80px;
    text-align: center;
    color: var(--primary);
}

/* CTA */
.cta-section {
    background: var(--primary);
    padding: 80px 0;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 36px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 18px;
}

.cta-section .highlight {
    color: var(--secondary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.small-note {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.6;
}

/* Dark Footer */
.footer-dark {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-text-white {
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.logo-img-sm {
    height: 36px;
    width: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    font-size: 14px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    opacity: 0.7;
    transition: 0.2s;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: 0.2s;
}

.footer-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.heart {
    color: #ff5252;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 968px) {
    h1 {
        font-size: 42px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .subtitle {
        margin: 0 auto 40px;
    }

    .stats-row {
        justify-content: center;
    }

    .app-mockup {
        width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-box {
        flex-direction: column;
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Contact & Feedback */
.contact-section {
    padding: 80px 0;
    background: var(--bg-page);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-card,
.feedback-form-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-info-card h3,
.feedback-form-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.contact-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 24px;
    background: #f0f3ff;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 93, 211, 0.1);
}

.full-width-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 14px;
}

.full-width-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.status-msg {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.status-msg.success {
    color: var(--success);
}

.status-msg.error {
    color: #ff5252;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 36px;
        word-wrap: break-word;
    }

    .subtitle {
        font-size: 16px;
        width: 100%;
        max-width: 100%;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-large,
    .link-text {
        width: 100%;
        justify-content: center;
    }

    .btn-large {
        padding: 16px 24px;
    }

    /* Footer Optimization for Mobile */
    .footer-dark {
        padding: 40px 0 20px;
        /* Reduced from 80px */
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
        /* Row gap 32px, Column gap 20px */
    }

    .brand-col {
        grid-column: 1 / -1;
        /* Span full width */
        text-align: center;
        margin-bottom: 10px;
    }

    .brand {
        display: flex;
        justify-content: center;
    }

    .footer-desc {
        margin: 16px auto;
        /* Center description */
        font-size: 13px;
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col h4 {
        margin-bottom: 16px;
        /* Reduced from 24px */
    }

}

/* Mobile Nav Overlay (Backdrop) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    /* Dimmed background */
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Side Drawer */
.mobile-nav-content {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden to the right */
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    padding: 80px 30px;
    /* Top padding for close button space */
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
    /* Slide in */
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s;
}

.close-menu-btn:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.mobile-link {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: var(--primary);
}