/* ============================================
   FloraSoft Landing Page - style.css
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --forest-600: #2D5A27;
    --forest-500: #4F7942;
    --forest-400: #6B9B5E;
    --forest-50: #f0f5ef;
    --sage-600: #546147;
    --sage-900: #2d3427;
    --cream-50: #fafbf8;
    --garden-dark: #06100d;
    --allegro-orange: #ff5a00;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--slate-900);
}

.text-gradient {
    background: linear-gradient(135deg, var(--forest-600), var(--forest-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Lucide Icon Defaults ---------- */
[data-lucide],
svg.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}

/* Icon sizes in specific contexts */
.btn svg.lucide { width: 18px; height: 18px; }
.feature-icon svg.lucide { width: 24px; height: 24px; }
.detail-icon svg.lucide { width: 24px; height: 24px; }
.showcase-feature-icon svg.lucide { width: 22px; height: 22px; }
.security-icon svg.lucide { width: 26px; height: 26px; }
.hero-meta-item svg.lucide { width: 18px; height: 18px; }
.integrations-list svg.lucide { width: 20px; height: 20px; }
.pricing-features svg.lucide { width: 18px; height: 18px; }
.detail-feature svg.lucide { width: 18px; height: 18px; }
.modal-header h2 svg.lucide { width: 22px; height: 22px; }
.docs-section h3 svg.lucide { width: 20px; height: 20px; }
.docs-table kbd + svg.lucide { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.938rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--sage-600);
    color: var(--white);
    box-shadow: 0 1px 3px rgba(84, 97, 71, 0.3);
}

.btn-primary:hover {
    background: var(--sage-900);
    box-shadow: 0 4px 12px rgba(84, 97, 71, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
}

.btn-secondary:hover {
    border-color: var(--slate-300);
    background: var(--slate-50);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1.1em;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: var(--forest-50);
    color: var(--forest-600);
}

/* ---------- Section Helpers ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    background: var(--forest-50);
    color: var(--forest-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(250, 251, 248, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav.scrolled {
    border-bottom-color: var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sage-900);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--slate-900);
    background: var(--forest-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 48px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 4px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--slate-600);
    margin-bottom: 24px;
}

.hero-badge span:last-child {
    padding-right: 14px;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate-500);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.hero-meta-item i {
    color: var(--forest-500);
    font-size: 1rem;
}

/* Hero App Window - Screenshot Gallery with Sidebar */
.hero-visual {
    position: relative;
}

.hero-app-window {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    position: relative;
}

.app-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
}

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

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

.app-window-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--slate-400);
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.app-window-body {
    display: flex;
}

/* Sidebar */
.app-sidebar {
    width: 52px;
    min-width: 52px;
    background: var(--forest-50);
    border-right: 1px solid var(--slate-200);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-sidebar-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.app-sidebar-item svg.lucide { width: 18px; height: 18px; }

.app-sidebar-item:hover:not(.active) {
    background: rgba(79, 121, 66, 0.12);
    color: var(--forest-600);
}

.app-sidebar-item.active {
    background: var(--sage-600);
    color: var(--white);
}

/* Allegro sidebar item - orange variant */
.app-sidebar-allegro:hover:not(.active) {
    background: rgba(255, 90, 0, 0.1);
    color: var(--allegro-orange);
}

.app-sidebar-allegro.active {
    background: rgba(255, 90, 0, 0.12);
    color: var(--allegro-orange);
}

/* Screenshot area */
.app-screenshot-wrap {
    position: relative;
    flex: 1;
    background: var(--cream-50);
    overflow: hidden;
}

.app-screenshot {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-screenshot.active {
    opacity: 1;
}

/* Placeholder shown when images don't load */
.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--slate-300);
    font-size: 0.85rem;
    pointer-events: none;
}

.screenshot-placeholder svg.lucide {
    width: 48px;
    height: 48px;
    stroke-width: 1;
}

/* Hide placeholder once any image loads */
.app-screenshot-wrap.has-image .screenshot-placeholder {
    display: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(79, 121, 66, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   SOCIAL PROOF
   ============================================ */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    background: var(--white);
}

.social-proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.proof-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sage-900);
}

.proof-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--slate-200);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--forest-400);
    box-shadow: 0 8px 30px rgba(45, 90, 39, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--forest-50);
    color: var(--forest-600);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.feature-icon.icon-allegro,
.detail-icon.icon-allegro {
    background: rgba(255, 90, 0, 0.08);
    color: var(--allegro-orange);
}

/* ============================================
   SHOWCASE
   ============================================ */
.showcase {
    padding: 80px 0 100px;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.showcase-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.showcase-feature {
    display: flex;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--cream-50);
    border: 1px solid var(--slate-200);
    transition: all var(--transition-base);
}

.showcase-feature:hover {
    border-color: var(--forest-400);
    box-shadow: var(--shadow-md);
}

.showcase-feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--forest-50);
    color: var(--forest-600);
    font-size: 1.15rem;
}

.showcase-feature h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.showcase-feature p {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations {
    padding: 100px 0;
}

.integrations-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.integrations-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.integrations-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--slate-700);
}

.integrations-list i {
    color: var(--forest-500);
    font-size: 1.1rem;
}

/* Allegro card mock */
.integration-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.integration-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.allegro-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.integration-card-header h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.integration-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.integration-status.connected {
    color: var(--forest-500);
}

.integration-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.integration-stat {
    background: var(--slate-50);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.integration-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--allegro-orange);
}

.integration-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 4px;
}

.integration-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integration-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--slate-50);
    border-radius: 10px;
}

.order-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
}

.order-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.order-status.shipped {
    background: rgba(79, 121, 66, 0.1);
    color: var(--forest-500);
}

.order-status.processing {
    background: rgba(255, 90, 0, 0.1);
    color: var(--allegro-orange);
}

/* ============================================
   SECURITY
   ============================================ */
.security {
    padding: 100px 0;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.security-card {
    text-align: center;
    padding: 40px 28px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.security-card:hover {
    border-color: var(--forest-400);
    box-shadow: var(--shadow-md);
}

.security-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--forest-50);
    color: var(--forest-600);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.security-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.security-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ============================================
   TIME CALCULATOR
   ============================================ */
.calculator {
    padding: 100px 0;
    background: var(--forest-50);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: stretch;
}

.calc-left,
.calc-right {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.calc-right {
    justify-content: space-between;
}

/* Slider */
.calc-slider-section {
    margin-bottom: 24px;
}

.calc-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--slate-700);
}

.calc-slider-row {
    display: flex;
    align-items: center;
}

.calc-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--forest-50), var(--forest-600));
    outline: none;
    cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--forest-600);
    border: 4px solid var(--white);
    box-shadow: 0 2px 12px rgba(45,90,39,0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(45,90,39,0.45);
}

.calc-range::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--forest-600);
    border: 4px solid var(--white);
    box-shadow: 0 2px 12px rgba(45,90,39,0.35);
    cursor: pointer;
}

.calc-slider-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
}

.calc-order-count {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--forest-600);
    line-height: 1;
}

.calc-order-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-400);
}

/* Steps breakdown */
.calc-steps {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calc-step-header {
    background: var(--slate-100);
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-step-header i,
.calc-step-header svg {
    width: 16px;
    height: 16px;
    color: var(--slate-400);
}

.calc-step-list {
    padding: 4px 0;
}

.calc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    font-size: 0.85rem;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

.calc-step:last-child {
    border-bottom: none;
}

.calc-step i,
.calc-step svg {
    width: 16px;
    height: 16px;
    color: var(--slate-400);
    flex-shrink: 0;
}

.calc-step span:first-of-type {
    flex: 1;
}

.calc-step-time {
    font-weight: 700;
    color: var(--slate-500);
    font-size: 0.85rem;
    white-space: nowrap;
}

.calc-step-total {
    background: var(--slate-50);
    border-top: 1.5px solid var(--slate-200);
    border-bottom: none !important;
    font-weight: 700;
    padding: 9px 16px;
}

.calc-step-total .calc-step-time {
    color: #c0392b;
    font-size: 0.95rem;
}

/* VS cards */
.calc-vs-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.calc-vs-manual {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.calc-vs-flora {
    background: var(--forest-50);
    border: 1.5px solid #b7d4b0;
}

.calc-vs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.calc-vs-header i,
.calc-vs-header svg {
    width: 16px;
    height: 16px;
}

.calc-vs-manual .calc-vs-header {
    color: #991b1b;
}

.calc-vs-flora .calc-vs-header {
    color: var(--forest-600);
}

.calc-vs-time {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.calc-vs-manual .calc-vs-time {
    color: #c0392b;
}

.calc-vs-flora .calc-vs-time {
    color: var(--forest-600);
}

.calc-vs-detail {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.calc-bar-track {
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.calc-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-bar-manual {
    background: linear-gradient(90deg, #f87171, #dc2626);
    width: 100%;
}

.calc-bar-flora {
    background: linear-gradient(90deg, #4F7942, #2D5A27);
    width: 17%;
}

/* VS divider */
.calc-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.calc-vs-divider span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-200);
    color: var(--slate-500);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Savings banner */
.calc-savings {
    background: linear-gradient(135deg, #1a3d15 0%, var(--forest-600) 50%, #1a3d15 100%);
    border-radius: var(--radius-xl);
    padding: 28px 36px;
    color: var(--white);
    margin-top: 28px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.calc-savings::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.calc-savings-col {
    position: relative;
    text-align: center;
    flex: 1;
}

.calc-savings-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.calc-savings-label {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.calc-savings-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    transition: all 0.3s ease;
}

.calc-savings-period {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.5;
    display: block;
    margin-top: 4px;
}

.btn-savings {
    background: var(--white);
    color: var(--forest-600);
    font-weight: 700;
    border: none;
    padding: 12px 28px;
    font-size: 0.9rem;
}

.btn-savings:hover {
    background: var(--forest-50);
    color: var(--forest-600);
    transform: translateY(-1px);
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.pricing-card .btn-block {
    margin-top: auto;
}

.pricing-card:hover {
    border-color: var(--slate-300);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--forest-500);
    box-shadow: 0 8px 40px rgba(45, 90, 39, 0.12);
}

.pricing-card.featured:hover {
    box-shadow: 0 12px 50px rgba(45, 90, 39, 0.16);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--forest-600);
    color: var(--white);
    border-radius: var(--radius-full);
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-500);
    margin-bottom: 8px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.pricing-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--slate-400);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--slate-700);
}

.pricing-features i {
    color: var(--forest-500);
    font-size: 1rem;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--sage-900) 0%, var(--garden-dark) 100%);
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.cta .btn-primary:hover {
    background: var(--forest-50);
}

.cta .btn-secondary {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.cta .btn-secondary:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.cta-note {
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 0 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 64px 0 0;
    background: var(--slate-50);
    border-top: 1px solid var(--slate-200);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

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

.footer-tagline {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--slate-600);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--forest-600);
}

.footer-bottom {
    border-top: 1px solid var(--slate-200);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.15rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--slate-50);
    border-radius: 10px;
    cursor: pointer;
    color: var(--slate-500);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--slate-100);
    color: var(--slate-700);
}

.modal-body {
    padding: 28px;
}

.modal-body h3 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.modal-body h3:first-of-type {
    margin-top: 16px;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.modal-body a {
    color: var(--forest-600);
    text-decoration: underline;
}

/* ============================================
   ANIMATIONS (Intersection Observer)
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.features-grid .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }
.features-grid .animate-on-scroll:nth-child(7) { transition-delay: 480ms; }
.features-grid .animate-on-scroll:nth-child(8) { transition-delay: 560ms; }
.features-grid .animate-on-scroll:nth-child(9) { transition-delay: 640ms; }
.features-grid .animate-on-scroll:nth-child(10) { transition-delay: 720ms; }
.features-grid .animate-on-scroll:nth-child(11) { transition-delay: 800ms; }
.features-grid .animate-on-scroll:nth-child(12) { transition-delay: 880ms; }

/* ============================================
   DETAILS - ACCORDION
   ============================================ */
.details {
    padding: 80px 0 100px;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.accordion {
    max-width: 860px;
    margin: 0 auto;
}

.acc-item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.acc-item:hover,
.acc-item.open {
    border-color: var(--forest-400);
}

.acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    gap: 12px;
    transition: background var(--transition-fast);
}

.acc-trigger:hover {
    background: var(--slate-50);
}

.acc-trigger-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.detail-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--forest-50);
    color: var(--forest-600);
}

.acc-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.3;
}

.acc-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 1px;
}

.acc-chevron {
    transition: transform var(--transition-base);
    color: var(--slate-400);
    flex-shrink: 0;
}

.acc-item.open .acc-chevron {
    transform: rotate(180deg);
    color: var(--forest-500);
}

.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
    padding: 0 20px 18px;
    border-top: 1px solid var(--slate-100);
    padding-top: 14px;
}

.detail-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.45;
    padding: 4px 0;
}

.detail-feature svg.lucide {
    color: var(--forest-500);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================
   DOCUMENTATION MODAL
   ============================================ */
.modal-wide {
    max-width: 960px;
    max-height: 90vh;
}

.docs-body {
    display: flex;
    gap: 0;
    padding: 0 !important;
}

.docs-nav {
    width: 220px;
    min-width: 220px;
    padding: 20px 0;
    border-right: 1px solid var(--slate-200);
    overflow-y: auto;
    position: sticky;
    top: 0;
    max-height: calc(90vh - 73px);
}

.docs-nav-link {
    display: block;
    padding: 8px 24px;
    font-size: 0.85rem;
    color: var(--slate-500);
    transition: all var(--transition-fast);
    text-decoration: none;
    border-left: 2px solid transparent;
}

.docs-nav-link:hover {
    color: var(--slate-800);
    background: var(--forest-50);
}

.docs-nav-link.active {
    color: var(--forest-600);
    font-weight: 600;
    border-left-color: var(--forest-500);
    background: var(--forest-50);
}

.docs-content {
    flex: 1;
    padding: 28px 32px;
    overflow-y: auto;
    max-height: calc(90vh - 73px);
}

.docs-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--slate-200);
}

.docs-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.docs-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-section h3 i {
    color: var(--forest-500);
    font-size: 1.1rem;
}

.docs-section h4 {
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--slate-800);
}

.docs-section p {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.docs-section ul,
.docs-section ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.docs-section li {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 4px;
}

.docs-section strong {
    color: var(--slate-800);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}

.docs-table th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate-500);
    background: var(--slate-50);
}

.docs-table td {
    color: var(--slate-700);
}

.docs-table kbd {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    color: var(--slate-700);
}

.docs-note {
    font-size: 0.85rem !important;
    color: var(--slate-400) !important;
    font-style: italic;
    margin-top: 8px;
}

.modal-header h2 i {
    color: var(--forest-500);
    margin-right: 4px;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 32px);
        text-align: center;
    }

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

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

    .hero-meta {
        justify-content: center;
    }

    .integrations-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .integrations-content {
        text-align: center;
    }

    .integrations-list {
        align-items: center;
    }

}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 251, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--slate-200);
        gap: 4px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

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

    .hero-visual {
        margin: 0 -12px;
    }

    .social-proof-inner {
        flex-direction: column;
        gap: 24px;
    }

    .proof-divider {
        width: 40px;
        height: 1px;
    }

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

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

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

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

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .features,
    .integrations,
    .security,
    .pricing,
    .details,
    .calculator {
        padding: 64px 0;
    }

    .calc-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calc-left,
    .calc-right {
        padding: 28px 20px;
    }

    .calc-order-count {
        font-size: 2.2rem;
    }

    .calc-vs-time {
        font-size: 1.8rem;
    }

    .calc-savings {
        flex-direction: column;
        padding: 28px 24px;
        gap: 20px;
    }

    .calc-savings-divider {
        width: 60px;
        height: 1px;
    }

    .calc-savings-value {
        font-size: 2rem;
    }

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

    /* Docs modal: stack nav on top */
    .docs-body {
        flex-direction: column;
    }

    .docs-nav {
        width: 100%;
        min-width: unset;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--slate-200);
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 12px 0 0;
        position: static;
    }

    .docs-nav-link {
        white-space: nowrap;
        padding: 8px 16px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .docs-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--forest-500);
    }

    .docs-content {
        max-height: none;
        padding: 20px;
    }

    .showcase {
        padding: 64px 0;
    }

    .cta {
        padding: 64px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .hero-actions .btn {
        width: 100%;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pricing-card {
        padding: 32px 24px;
    }
}
