/* 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;
    scrollbar-gutter: stable;
    scrollbar-color: #ccc #f5f5f5;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 6px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

body.nav-open {
    overflow: hidden;
}

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;
}

/* Utility: alternating section background */
.section-alt {
    background: var(--bg-light);
}

/* 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;
}

/* Hamburger menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Navigation overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
}

.nav-overlay.nav-open {
    display: block;
}

/* 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);
}

/* Dashboard table mockup */
.dashboard-table {
    width: 100%;
    background: var(--green-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-collapse: collapse;
    overflow: hidden;
}

.dashboard-table thead th {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-table thead th.col-trigger,
.dashboard-table thead th.col-time {
    text-align: right;
}

.dashboard-table tbody td {
    padding: 0.65rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dashboard-table td.col-command {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-table td.col-trigger,
.dashboard-table td.col-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: right;
}

.run-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.run-dot.running {
    background: #3b82f6;
    animation: pulse 1.5s infinite;
}

.run-dot.success {
    background: #22c55e;
}

.run-dot.failed {
    background: #ef4444;
}

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

.run-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.run-info .cmd-name {
    color: white;
    font-weight: 500;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    font-size: 0.9rem;
}

.run-info .cmd-args {
    color: rgba(255, 255, 255, 0.45);
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    font-size: 0.8rem;
}

/* Pain points section */
.pain-points {
    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;
}

.pain-missing {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

.pain-missing span {
    font-style: normal;
    color: var(--text-primary);
}

/* Features section */
.features {
    padding: 5rem 2rem;
}

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

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    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 {
    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;
}

.architecture-note.secondary {
    margin-top: 1rem;
    background: transparent;
    border-left: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

/* How it works page */
.how-it-works-page {
}

.page-hero {
    text-align: center;
    padding: 3rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.quick-start {
    padding: 3rem 2rem;
}

.quick-start h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-start .steps {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding: 3rem 2rem;
}

.content-section > h2,
.content-section > .content-block,
.content-section > .comparison-grid,
.content-section > .architecture-diagram {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.content-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.content-block.secondary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.content-block.secondary h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.content-block.secondary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-block.secondary li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.content-block.secondary li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--green-primary);
}

.architecture-diagram {
    margin: 2rem 0;
}

.diagram-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
}

.diagram-placeholder p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.comparison-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.comparison-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-card .pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: 600;
}

.comparison-card .cons li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.page-cta {
    text-align: center;
    padding: 4rem 2rem;
}

.page-cta h2,
.page-cta p,
.page-cta .btn {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta h2 {
    margin-bottom: 0.75rem;
}

.page-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Showcase carousel */
.showcase {
    max-width: 1150px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.showcase h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.showcase h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    color: var(--text-secondary);
}

.carousel {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #000;
    max-width: 1050px;
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: white;
    border: 2px solid var(--green-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--green-primary);
    cursor: pointer;
    z-index: 10;
    transition:
        background 0.2s ease,
        color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    order: -1;
    padding-right: 2px;
    padding-bottom: 3px;
}

.carousel-next {
    order: 1;
    padding-left: 2px;
    padding-bottom: 3px;
}


.carousel-arrow:hover {
    background: var(--green-light);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    order: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.carousel-dot:hover {
    background: var(--text-muted);
}

.carousel-dot.active {
    background: var(--green-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel {
        gap: 0.5rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

.section-link {
    text-align: center;
    margin-top: 2rem;
}

.section-link a {
    color: var(--green-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.section-link a:hover {
    color: #3a9e79;
}

/* Pricing */
.pricing {
    padding: 5rem 2rem;
}

.pricing > h2,
.pricing-subtitle,
.pricing-toggle,
.pricing-grid,
.secondary-plans,
.pricing-note {
    max-width: 1100px;
    margin-left: auto;
    margin-right: 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;
    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

.save-badge.inactive {
    opacity: 0.4;
    filter: grayscale(100%);
}

.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;
}

/* Secondary plans (Free + Enterprise side by side) */
.secondary-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-plan {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.secondary-plan h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.secondary-plan .plan-subtitle {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.secondary-plan .enterprise-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.secondary-plan .enterprise-features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.secondary-plan .enterprise-features li::before {
    content: "✓";
    color: var(--green-primary);
    font-weight: 600;
    margin-right: 0.5rem;
}

.secondary-plan .btn {
    width: 100%;
}

/* Free plan modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-large {
    max-width: 900px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.free-modal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pricing-card.free-card {
    margin: 0;
}

.pricing-card .limit-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card li.paused {
    color: var(--text-muted);
    opacity: 0.7;
}

.pricing-card li.paused::before {
    content: "—";
    color: var(--text-muted);
}

.free-faq h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-accordion .accordion-item {
    border-radius: var(--radius-md);
}

.faq-accordion .accordion-title {
    font-size: 0.95rem;
    text-align: left;
}

.faq-accordion .accordion-content-inner {
    padding: 0 1.25rem 1.25rem 3.5rem;
}

.faq-accordion .accordion-content-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.faq-accordion .accordion-content-inner p:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-content-inner ul {
    list-style: disc;
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-accordion .accordion-content-inner li {
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .secondary-plans {
        grid-template-columns: 1fr;
    }

    .free-modal-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.free-card {
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .faq-accordion .accordion-content-inner {
        padding-left: 1.25rem;
    }
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

.pricing-note a {
    color: var(--text-secondary);
}

.pricing-note a:hover {
    color: var(--green-primary);
}

/* Roadmap section */
.roadmap {
    padding: 5rem 2rem;
}

.roadmap h2 {
    margin-bottom: 0.5rem;
}

.roadmap-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.roadmap-container {
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-timeline {
    position: relative;
}

/* Each row: phase point + feature bars */
.roadmap-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.roadmap-row:has(.roadmap-features:empty) {
    margin-bottom: 0;
}

/* Vertical line connecting phases */
.roadmap-row:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: -0.5rem;
    width: 2px;
    background: var(--border-color);
}

.roadmap-row.completed:not(:last-child)::before {
    background: var(--green-primary);
}

/* Pre-phase row (features before first phase point) */
.roadmap-row.pre-phase::before {
    top: 1rem;
}

.roadmap-row.pre-phase .roadmap-phase {
    min-height: 100%;
}

.phase-line-start {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    visibility: hidden;
}

/* Mid-phase rows (features between phase points) */
.roadmap-row.mid-phase .roadmap-phase {
    min-width: 22px;
}

/* Phase column (left side - points) */
.roadmap-phase {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    height: 1px;
    overflow: visible;
    margin-top: -1px;
}

.phase-point {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.phase-point.completed {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.phase-point.completed::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phase-point.current {
    border-color: #f0b429;
    background: #f0b429;
    box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.2);
    animation: pulse-point 2s infinite;
}

@keyframes pulse-point {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(240, 180, 41, 0.1);
    }
}

.phase-point.planned {
    border-color: var(--border-color);
    background: white;
}

.phase-point.future {
    border-color: var(--border-color);
    background: var(--bg-light);
    border-style: dashed;
}

.phase-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.phase-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.phase-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.phase-badge {
    display: inline-block;
    background: #f0b429;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-badge.left-of-point {
    position: absolute;
    right: calc(100% + 8px + 0.35rem);
    top: 0.15rem;
    white-space: nowrap;
}

/* Features column (right side - ranges/bars) */
.roadmap-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-bar {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
}

.feature-bar.completed {
    background: var(--green-light);
    border-color: var(--green-primary);
    color: var(--green-dark);
}

.feature-bar.completed::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--green-primary);
    font-weight: bold;
}

.feature-bar.in-progress {
    background: white;
    border-color: #f0b429;
    color: var(--text-primary);
}

.feature-bar.in-progress .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(240, 180, 41, 0.15);
    z-index: 0;
}

.feature-bar.in-progress span {
    position: relative;
    z-index: 1;
}

.feature-bar.in-progress::after {
    content: attr(data-progress);
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #b8860b;
    z-index: 1;
}

.feature-bar.planned {
    background: white;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.feature-bar.future {
    background: white;
    border-color: var(--border-color);
    border-style: dashed;
    color: var(--text-muted);
}

/* On the horizon section */
.roadmap-horizon {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.roadmap-horizon h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.horizon-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.horizon-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.horizon-tag {
    background: white;
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Fade out line after last phase */
.roadmap-row.last {
    margin-bottom: 0;
}

.roadmap-row.last::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.roadmap-fade {
    height: 3rem;
    margin-left: 10px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--border-color) 0%,
        transparent 100%
    );
}

/* Roadmap responsive */
@media (max-width: 700px) {
    .roadmap-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-left: 3rem;
    }

    .roadmap-row::before {
        left: 10px !important;
    }

    .roadmap-row.pre-phase,
    .roadmap-row.mid-phase {
        padding-left: 3rem;
    }

    .roadmap-row.pre-phase .roadmap-phase,
    .roadmap-row.mid-phase .roadmap-phase {
        display: none;
    }

    .roadmap-phase {
        position: relative;
        height: auto;
        margin-top: 0;
    }

    .phase-point {
        position: absolute;
        left: -3rem;
    }

    .phase-badge.left-of-point {
        left: -3rem;
        right: auto;
        top: 1.6rem;
    }
}

/* 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;
}

/* Security section */
.security {
    padding: 5rem 2rem;
}

.security h2 {
    margin-bottom: 1.5rem;
}

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

.security-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.security-intro p:last-child {
    margin-bottom: 0;
}

.security-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-item.animating {
    transition:
        height 0.3s linear,
        box-shadow 0.3s ease;
}

/* When not animating, CSS controls collapsed state */
.accordion-item:not(.active):not(.animating) .accordion-content {
    height: 0;
    overflow: hidden;
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-item.active {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid var(--green-primary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon::before {
    transform: rotate(90deg);
}

.accordion-title {
    flex: 1;
}

.accordion-content-inner {
    padding: 0 1.25rem 1.25rem 3.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .accordion-content-inner {
        padding-left: 1.25rem;
    }
}

/* 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: 960px) {
    nav {
        padding: 0.75rem 1.5rem;
    }

    .logo img {
        width: 30px;
        height: 30px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        max-width: 350px;
        max-height: calc(100vh - 54px);
        overflow-y: auto;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: 0;
        display: none;
        box-shadow: var(--shadow-md);
    }

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

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-links .btn {
        margin: 1rem 0 0 0;
        width: 100%;
        text-align: center;
    }

    .nav-links .btn-primary {
        border-bottom: none;
    }

    /* Mobile dropdown - show as section heading */
    .nav-dropdown {
        width: 100%;
    }

    .nav-links .nav-dropdown-toggle,
    .nav-links .nav-dropdown-toggle:hover {
        padding: 0.75rem 0 0.5rem;
        width: 100%;
        font-size: 0.8rem;
        color: silver;
        background: transparent;
        border-bottom: none;
        cursor: default;
    }

    .nav-dropdown-toggle::before {
        content: "-- ";
    }

    .nav-dropdown-toggle::after,
    .nav-dropdown:hover .nav-dropdown-toggle::after {
        content: " --";
        border: none;
        padding: 0;
        transform: none;
        margin: 0;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
        padding-left: 1rem;
    }

    .nav-dropdown-menu a {
        padding: 0.5rem 0;
        border-bottom: none;
        font-size: 0.9rem;
    }

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

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

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

    .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;
    }
}
