@import url('https://fonts.cdnfonts.com/css/hk-grotesk');

:root {
    /* Clover-inspired Palette */
    --bg: #ffffff;
    --text: #212121;
    --text-light: #545454;
    --primary: #000000;
    --primary-hover: #333333;
    --accent: #28942e; /* Clover Green approx */
    --accent-hover: #217d26;
    --surface: #f7f7f7;
    --surface-hover: #ebebeb;
    --border: #e0e0e0;
    --radius: 4px; /* Clover tends to be squarer on some elements, round on buttons */
    --radius-lg: 16px;
    --radius-btn: 99px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-brand: "HK Grotesk", var(--font-main);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-top: 0;
}

p {
    color: var(--text-light);
}

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

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

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-weight: 800;
    font-size: 1.75rem;
    color: white;
    letter-spacing: -0.04em;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: white;
}

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

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cta-button:not(.primary) {
    color: white;
}

.cta-button:not(.primary):hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-button.primary {
    background: var(--accent);
    color: white;
}

.cta-button.primary:hover {
    background: var(--accent-hover);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

/* Hero Section - Clover Style: Clean White/Grey */
.hero {
    padding: 5rem 0;
    background: var(--bg);
    overflow: hidden;
}

.hero .container {
    width: min(1400px, 95%); /* Wider container for Hero specifically */
}

.hero-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Give more space to visual */
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

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

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

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

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

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stats div strong {
    font-size: 2rem;
    display: block;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.hero-stats div span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Visuals */
.hero-visual {
    position: relative;
}

.hero-card {
    background: white;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: absolute;
    transition: transform 0.4s ease;
}

.hero-card:nth-child(1) {
    top: 0;
    right: 0;
    width: 280px;
    z-index: 2;
}

.hero-card:nth-child(2) {
    top: 140px;
    left: 20px;
    width: 240px;
    z-index: 3;
}

.hero-card:nth-child(3) {
    bottom: -40px;
    right: 40px;
    width: 220px;
    z-index: 1;
}

.hero-card strong {
    font-size: 1.8rem;
    display: block;
    color: var(--primary);
}

.positive {
    color: var(--accent);
    font-weight: 600;
    background: #e8f5e9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Trusted By / Logo Marquee */
.trusted-by {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-weight: 600;
}

.logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ccc;
    white-space: nowrap;
    user-select: none;
}

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

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background: var(--surface); /* Grey bg */
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stars {
    color: #ffbd2e;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text);
    font-style: italic;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.author div strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
}

.author div span {
    font-size: 0.85rem;
    color: #888;
}

/* Hardware Section - Grey Background */
.hardware-section {
    padding: 6rem 0;
    background: var(--surface);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

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

.hardware-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hardware-image {
    background: #f0f0f0;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Device Visuals - Darker, Sleeker */
.device-visual.clover-flex {
    background: #212121;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.device-visual.clover-mini .screen,
.device-visual.clover-station .screen {
    background: #212121;
    border: none;
}

.hardware-content {
    padding: 2.5rem;
}

.hardware-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hardware-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hardware-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

/* Software Section */
.software-section {
    padding: 6rem 0;
    background: white;
}

.software-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.mockup-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.window-header {
    background: #f5f5f5;
    border-bottom: 1px solid var(--border);
}

.dash-card {
    border: 1px solid var(--border);
    box-shadow: none;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-real {
    width: 56px;
    height: 56px;
    background: var(--surface);
    border-radius: 50%; /* Round icons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--accent);
}

.feature-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Pricing - Clean Cards */
.pricing {
    padding: 6rem 0;
    background: white; /* Changed to white to contrast with Testimonials grey */
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    position: relative;
}

.pricing-card.featured {
    background: white; /* Keep white background even for featured */
    border: 2px solid var(--accent);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured .badge {
    background: var(--accent);
    color: white;
    top: -15px;
    border-radius: var(--radius-btn);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
}

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
}

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

.pricing-card.featured .btn-primary {
    width: 100%;
    padding: 1rem;
}

/* FAQ - Simple Accordion */
.faq-section {
    padding: 6rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-bottom: 0;
}

.faq-question {
    padding: 1.5rem 0;
    font-weight: 600;
}

.faq-question h3 {
    font-size: 1.1rem;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: #f8fafc; /* Light background */
    color: #1e293b; /* Dark text for readability on light bg */
}

.contact-info h2 {
    color: #1e293b;
}

.contact-info p {
    color: #64748b;
}

.contact-icon {
    background: white;
    color: var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-form {
    background: white;
    color: #334155;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: none;
    border: none;
}

.form-group label {
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface); /* Revert to surface color (light grey) */
    border: 1px solid transparent; /* Remove border if prefer cleaner look like before */
    border-radius: 8px;
    padding: 1rem;
    color: var(--text);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(40, 148, 46, 0.2);
}

/* Footer */
.footer {
    background: #111827;
    color: #9ca3af; /* Light grey text */
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-text {
    color: white;
}

.footer p {
    color: #9ca3af; /* Ensure copyright text is readable */
}

.footer a {
    color: #d1d5db; /* Lighter link color */
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons, .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
        margin-top: 3rem;
        display: none; /* Hide complex floating visuals on tablet/mobile for cleaner look */
    }
    
    .nav-menu {
        display: none; /* Add JS toggle logic or keep existing */
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #111827;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
}
