/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark: #092e20;
    --green-primary: #44b78b;
    --green-light: #e8f5e9;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-white: #ffffff;
    --bg-light: #f8faf9;
    --bg-dark: #092e20;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

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

a {
    color: var(--green-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: #3a9e79;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #eee;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

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

.logo:hover {
    text-decoration: none;
}

.logo img {
    border-radius: 8px;
}

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

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

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links .btn {
    margin-left: 0.5rem;
}

.nav-links .btn-primary {
    color: white;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: "";
    border: solid var(--text-secondary);
    border-width: 0 1.5px 1.5px 0;
    padding: 2.5px;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 101;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--green-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Terminal mockup */
.terminal {
    background: var(--green-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.terminal-body {
    padding: 1rem;
}

.command-row {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    align-items: center;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
}

.command-row:hover {
    background: rgba(255,255,255,0.05);
}

.command-row.running {
    background: rgba(68, 183, 139, 0.1);
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status.success { background: #27c93f; }
.status.failed { background: #ff5f56; }
.status.running-indicator {
    background: #ffbd2e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cmd-name {
    color: white;
}

.cmd-time {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.cmd-duration {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    text-align: right;
}

/* Pain points section */
.pain-points {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.pain-points h2 {
    margin-bottom: 2rem;
}

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

.pain-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.pain-card p {
    font-style: italic;
    font-size: 0.95rem;
}

/* Features section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

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

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* How it works */
.how-it-works {
    background: var(--bg-light);
    padding: 5rem 2rem;
}

.steps {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
    align-items: start;
}

.step-number {
    grid-row: span 3;
    width: 48px;
    height: 48px;
    background: var(--green-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.code-block {
    background: var(--green-dark);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.code-block code {
    color: #a5d6a7;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
}

.architecture-note {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green-primary);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-subtitle.highlight {
    color: var(--green-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.save-badge {
    background: var(--green-light);
    color: var(--green-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.25rem;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--green-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

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

.pricing-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--green-primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.price-full {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
    height: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.price-full.visible {
    opacity: 1;
}

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

.price-period {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card li::before {
    content: "✓";
    color: var(--green-primary);
    font-weight: 600;
}

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

.enterprise-cta {
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--green-primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.enterprise-cta h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.enterprise-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.enterprise-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    list-style: none;
    margin-bottom: 2rem;
}

.enterprise-features li {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.enterprise-features li::before {
    content: "✓";
    color: var(--green-primary);
    font-weight: 600;
}

.enterprise-cta .btn {
    background: var(--green-primary);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.enterprise-cta .btn:hover {
    background: #3a9e79;
}

/* Signup section */
.signup {
    background: var(--green-dark);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.signup h2 {
    color: white;
    margin-bottom: 1rem;
}

.signup > p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-row input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-row input[type="email"]:focus {
    outline: 2px solid var(--green-primary);
}

.form-options {
    text-align: left;
    margin-bottom: 1rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.signup-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
}

/* FAQ */
.faq {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    margin-bottom: 2rem;
}

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

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-logo img {
    border-radius: 6px;
}

.footer-nav h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-legal-entity {
    font-size: 0.75rem !important;
    color: var(--text-muted);
}

/* Legal Pages */
.legal-page {
    padding: 3rem 2rem 5rem;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-content a {
    color: var(--green-primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-info-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.legal-info-box strong {
    color: var(--text-primary);
}

.legal-warning-box {
    background: #fff8e6;
    border: 1px solid #f5d67a;
    border-left: 4px solid #f0b429;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.legal-warning-box strong {
    color: #8a6914;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

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

    .nav-links {
        display: none;
    }

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

    .step-number {
        grid-row: auto;
    }

    .pricing-card.featured {
        transform: none;
    }

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

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

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

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
        text-align: center;
    }

    .footer-nav {
        text-align: center;
    }

    .legal-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .pain-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-legal-entity {
        font-size: 0.7rem !important;
    }

    .legal-page {
        padding: 2rem 1rem 4rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.5rem;
    }
}
