:root {
    --primary: #1a1a1a;
    --primary-light: #2f2f2f;
    --accent: #8ce600;
    /* Apple Green */
    --accent-light: #a3ff1a;
    --accent-dark: #76c200;
    --accent-green: #8ce600;
    --success: #8ce600;
    --error: #ef4444;
    --warning: #f59e0b;
    --text: #1a1a1a;
    --text-light: #4d4d4d;
    --text-lighter: #6b6b6b;
    --bg: #ffffff;
    --bg-alt: #f7fff2;
    --border: #e3ffd5;
    --border-light: #f0ffe8;
    --shadow-sm: 0 1px 2px 0 rgba(29, 29, 29, 0.08);
    --shadow: 0 4px 6px -1px rgba(29, 29, 29, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(29, 29, 29, 0.16);
    --shadow-xl: 0 20px 25px -5px rgba(29, 29, 29, 0.18);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    /* needed so mobile dropdown positions relative to nav */
    position: fixed;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    letter-spacing: -0.5px;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-partner {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.nav-partner:hover {
    color: var(--accent) !important;
}

.nav-cta {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--bg-alt);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: none;
}

.gradient-orb {
    display: none;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #2f7d19;
    bottom: -150px;
    left: -150px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text);
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 255, 181, 0.45);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(200, 255, 181, 0.7);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--accent-dark);
}

.btn-secondary:hover {
    background: rgba(200, 255, 181, 0.35);
    border-color: var(--accent-dark);
}

.btn-secondary.btn-inverse {
    color: var(--primary);
    border-color: var(--accent-dark);
}

.btn-secondary.btn-inverse:hover {
    background: rgba(200, 255, 181, 0.35);
    border-color: var(--accent-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 200px;
    margin: 0 auto;
}

/* Sections */
.about-section {
    padding: 6rem 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* Partner Modal */
.modal-content-large {
    max-width: 780px;
    width: 95%;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.modal-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Demo Section */
.demo-section {
    background: var(--bg-alt);
    padding: 6rem 0;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    background: var(--bg);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.demo-description {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.demo-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.benefit svg {
    flex-shrink: 0;
    color: var(--accent-green);
}

/* Forms */
.demo-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: -0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Spinner (used in form submit buttons) */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    z-index: 2000;
    transform: translateX(calc(100% + 2rem));
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-close:hover {
    background: var(--bg-alt);
    color: var(--error);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .modal-content-large {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3.5rem 1.2rem;
    }

    .hero-title {
        font-size: 2.6rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0.8rem;
        border-top: 1px solid var(--border);
    }

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

    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-cta {
        display: inline-block;
        text-align: center;
        width: auto;
    }

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

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

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        justify-content: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .demo-container {
        padding: 2rem 1.5rem;
    }

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

    .demo-cta {
        flex-direction: column;
    }

    .demo-cta .btn {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-form {
        padding: 1.5rem;
    }

    .modal-actions {
        justify-content: stretch;
    }

    .modal-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .container {
        padding: 0 1.2rem;
    }

    .about-section {
        padding: 4rem 0;
    }

    .demo-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2.5rem 1rem;
    }

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

    .hero-badge {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

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

    .feature-card {
        padding: 1.8rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .nav-container {
        padding: 0.8rem 1.2rem;
    }
}