/* ==========================================================================
   HarvestLogic Landing Page Styles
   ========================================================================== */

/* ROOT VARIABLES */
:root {
    --primary: #1F3D2B;
    --secondary: #4F7A5C;
    --accent: #6F9F86;
    --background: #F7F7F4;
    --text: #4B5563;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --light-gray: #F9F9F7;
    --spacing-unit: 1rem;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a.btn {
    display: inline-block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

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

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #162B1F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 61, 43, 0.15);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5A8A6F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 159, 134, 0.15);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-secondary-outline:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

/* Button State Classes */
.btn-success {
    background-color: #10B981 !important;
}

.btn-error {
    background-color: #EF4444 !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 6rem 0;
    background-color: var(--background);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Dashboard Mockup Card */
.dashboard-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.stat-label {
    color: var(--text);
    font-weight: 500;
}

.stat-period {
    color: #9CA3AF;
    font-size: 0.8rem;
}

.card-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary);
}

.card-chart {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background-color: var(--accent);
    border-radius: 0.25rem 0.25rem 0 0;
    opacity: 0.8;
}

.chart-bar:nth-child(2) {
    opacity: 1;
}

/* ==========================================================================
   VALUE SECTION
   ========================================================================== */

.value-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--background);
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text);
    line-height: 1.7;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: 6rem 0;
    background-color: var(--background);
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(31, 61, 43, 0.15);
}

.pricing-card.featured h3,
.pricing-card.featured .price-amount,
.pricing-card.featured .features-list li {
    color: var(--white);
}

.pricing-card.featured .price-annual {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card.featured .features-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: var(--text);
    font-size: 0.95rem;
}

.pricing-card.featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.price-annual {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.pricing-card button {
    width: 100%;
}

/* ==========================================================================
   CREDIBILITY SECTION
   ========================================================================== */

.credibility-section {
    padding: 6rem 0;
    background-color: var(--background);
    text-align: center;
}

.credibility-text {
    font-size: 1.125rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2D5A3D 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--white) 100%);
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contact-content {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.7;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 61, 43, 0.1);
}

.form-group input.error {
    border-color: #EF4444;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: none;
    font-size: 0.875rem;
    color: #EF4444;
    margin-top: 0.25rem;
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.form-note {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    background-color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    text-align: center;
}

.form-success h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #10B981;
}

.form-success p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-success .btn {
    display: inline-block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .header-content {
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .nav a {
        display: none;
    }

    .header .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .hero,
    .value-section,
    .features-section,
    .pricing-section,
    .credibility-section,
    .cta-section {
        padding: 4rem 0;
    }

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

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

    .cta-form input,
    .cta-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

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

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

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }

    .card-stat {
        font-size: 2rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .contact-content h1 {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.75rem 1.5rem;
    }

    .btn-submit {
        padding: 0.75rem;
    }
}
