:root {
    /* Light Theme - FodderCubed Style */
    --color-bg: #ffffff;
    --color-bg-light: #f9faf9;
    --color-bg-card: #f4f6f4;
    --color-bg-elevated: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    --color-text: #111827;
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;

    --color-primary: #1E5B37;
    --color-accent: #1E5B37;
    --color-accent-dark: #174A2C;
    --color-accent-light: #2D764B;
    --color-accent-muted: rgba(30, 91, 55, 0.08);

    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --section-padding: 140px;
    --section-padding-mobile: 80px;

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Smooth scroll - Lenis style */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    width: 100%;
    max-width: 100vw;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1E5B37, #2D764B);
    z-index: 10001;
    transition: width 0.1s linear;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Hero - FodderCubed Style Card */
.hero {
    padding: 32px;
    padding-top: 32px;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.hero-card {
    background: #1E5B37;
    border: none;
    border-radius: 24px;
    padding: 80px 60px;
    min-height: calc(100vh - var(--e8-head-h) - 65px);
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Clip mockups at card edge */
    width: 100%;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 400 Q 300 300 600 400 T 1200 400 L 1200 800 L 0 800 Z' fill='rgba(255,255,255,0.03)'/%3E%3Cpath d='M 0 500 Q 300 400 600 500 T 1200 500 L 1200 800 L 0 800 Z' fill='rgba(255,255,255,0.02)'/%3E%3Cpath d='M 0 600 Q 300 500 600 600 T 1200 600 L 1200 800 L 0 800 Z' fill='rgba(255,255,255,0.015)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center bottom;
    pointer-events: none;
    opacity: 1;
}

/* Animated gradient orbs */
.hero-card .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.hero-card .hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(45, 118, 75, 0.4);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-card .hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(23, 74, 44, 0.3);
    bottom: -50px;
    left: 10%;
    animation-delay: -7s;
}

.hero-card .hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-inner {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: static;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #ffffff;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    overflow: hidden;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-90deg);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

.hero-title.visible .char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero-specific button overrides */
.hero-card .btn-primary {
    background: #ffffff;
    color: #1E5B37;
}

.hero-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hero-card .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-accent-muted);
    border-color: var(--color-border-hover);
}

/* ========================================
   HERO DEVICES - MacBook + iPhone composition
   ======================================== */
.hero-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 48px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-devices {
    position: relative;
    padding-inline-start: 60px;
    padding-bottom: 36px;
}

.hero-devices .macbook {
    --zoom: 0.44;
}

.hero-devices .iphone {
    --zoom: 0.42;
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    z-index: 2;
}

@media (max-width: 1439px) {
    .hero-content {
        max-width: 500px;
    }
    .hero-visual {
        inset-inline-end: 40px;
    }
    .hero-devices {
        padding-inline-start: 56px;
    }
    .hero-devices .macbook {
        --zoom: 0.34;
    }
    .hero-devices .iphone {
        --zoom: 0.36;
    }
}

/* Below 1200px the devices stack under the hero copy */
@media (max-width: 1199px) {
    .hero-content {
        max-width: 640px;
    }
    .hero-visual {
        position: relative;
        top: auto;
        bottom: auto;
        inset-inline-end: auto;
        justify-content: center;
        margin-top: 56px;
    }
    .hero-devices {
        padding-inline-start: 48px;
    }
    .hero-devices .macbook {
        --zoom: 0.5;
    }
    .hero-devices .iphone {
        --zoom: 0.44;
    }
}

@media (max-width: 1024px) {
    .hero-devices .macbook {
        --zoom: 0.39;
    }
    .hero-devices .iphone {
        --zoom: 0.38;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        margin-top: 40px;
    }
    .hero-devices {
        padding: 0;
    }
    .hero-devices .macbook {
        display: none;
    }
    .hero-devices .iphone {
        --zoom: 0.62;
        position: relative;
    }
}

@media (max-width: 360px) {
    .hero-devices .iphone {
        --zoom: 0.55;
    }
}

/* ========================================
   DEVICE: iPhone 15 Pro
   Screens are built at the real 393 x 852pt size and scaled
   with zoom, so type, hairlines and radii stay in proportion.
   ======================================== */
.iphone {
    --zoom: 0.68;
    zoom: var(--zoom);
    position: relative;
    flex-shrink: 0;
    width: 421px;
    height: 880px;
    padding: 4px;
    border-radius: 69px;
    background: linear-gradient(135deg, #a4a5a9 0%, #5b5c60 16%, #313235 48%, #5e5f63 84%, #a9aaae 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        inset 0 0 2px 2px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.12),
        0 30px 60px -10px rgba(0, 0, 0, 0.3),
        0 70px 120px -30px rgba(30, 91, 55, 0.35);
}

/* Action button + volume buttons */
.iphone::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 150px;
    width: 3px;
    height: 208px;
    border-radius: 2px 0 0 2px;
    background: linear-gradient(to bottom, #6f7074 0 34px, transparent 34px 64px, #6f7074 64px 128px, transparent 128px 144px, #6f7074 144px 208px);
}

/* Side button */
.iphone::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 238px;
    width: 3px;
    height: 104px;
    border-radius: 0 2px 2px 0;
    background: #6f7074;
}

.iphone-screen {
    position: relative;
    box-sizing: content-box;
    width: 393px;
    height: 852px;
    border: 10px solid #050505;
    border-radius: 65px;
    overflow: hidden;
    isolation: isolate;
    background: #f2f2f7;
    color: #000;
    text-align: start;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.29;
    letter-spacing: -0.41px;
    -webkit-font-smoothing: antialiased;
}

.iphone-island {
    position: absolute;
    top: 11px;
    left: 50%;
    width: 126px;
    height: 37px;
    margin-left: -63px;
    border-radius: 20px;
    background: #000;
    z-index: 30;
}

.iphone-island::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2c3b57 0 2px, #0d1220 3px, #050608 6px);
}

.iphone-home {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 134px;
    height: 5px;
    margin-left: -67px;
    border-radius: 3px;
    background: #000;
    z-index: 30;
}

/* Status bar */
.ios-status {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    padding-top: 5px;
    display: grid;
    grid-template-columns: 1fr 126px 1fr;
    align-items: center;
    color: #000;
    z-index: 20;
}

.ios-status.light {
    color: #fff;
}

.ios-status-time {
    justify-self: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.ios-status-icons {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ios-status-icons svg {
    display: block;
    fill: currentColor;
}

/* ========================================
   iOS APP UI
   ======================================== */
.app {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app svg {
    display: block;
    flex-shrink: 0;
}

.app-bar {
    flex-shrink: 0;
    padding-top: 54px;
    background: #1E5B37;
    color: #fff;
}

.app-nav {
    height: 44px;
    padding: 0;
    padding-inline: 8px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.app-nav-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.43px;
}

.app-nav-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 17px;
    white-space: nowrap;
}

.app-nav-btn:first-child {
    padding-inline-start: 8px;
}

.app-nav-btn:last-child {
    justify-self: end;
}

.app-nav-btn.muted {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.app-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-nav-btn .ios-back {
    width: 12px;
    height: 20px;
    stroke-width: 2.8;
    margin-inline-end: 2px;
}

.app-nav-btn:first-child:has(.ios-back) {
    padding-inline-start: 0;
}

.app-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.app-section-header {
    margin: 22px 32px 7px;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
    text-transform: uppercase;
    color: rgba(60, 60, 67, 0.6);
}

.app-section-footer {
    margin: 7px 32px 0;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
    color: rgba(60, 60, 67, 0.6);
}

.app-group {
    margin: 0 16px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.app-group.first {
    margin-top: 20px;
}

.app-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 16px;
}

.app-row + .app-row::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    inset-inline-start: 16px;
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
}

.app-group.icons .app-row + .app-row::before {
    inset-inline-start: 60px;
}

.app-row-main {
    flex: 1;
    min-width: 0;
}

.app-row-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row-sub {
    margin-top: 1px;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.08px;
    color: rgba(60, 60, 67, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-row-sub.warn {
    color: #c93400;
}

.app-row-value {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(60, 60, 67, 0.6);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.app-row-value.action {
    color: #1E5B37;
    font-weight: 600;
}

.app-row-value.ok {
    color: #248a3d;
}

.app-row-value.warn {
    color: #c93400;
}

.app-row-value svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-chevron {
    width: 8px;
    height: 14px;
    fill: none;
    stroke: rgba(60, 60, 67, 0.3);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: #1E5B37;
}

.app-tile.orange { background: #ff9500; }
.app-tile.green { background: #34c759; }
.app-tile.blue { background: #007aff; }
.app-tile.gray { background: #8e8e93; }

.app-tile svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-check {
    width: 24px;
    height: 24px;
}

.app-check.pending {
    border: 2px solid #c7c7cc;
    border-radius: 50%;
}

.app-pill {
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.08px;
    white-space: nowrap;
}

.app-pill.green { background: rgba(52, 199, 89, 0.15); color: #248a3d; }
.app-pill.amber { background: rgba(255, 149, 0, 0.15); color: #c93400; }
.app-pill.blue { background: rgba(0, 122, 255, 0.12); color: #0064d1; }

/* Step indicator */
.app-stepper {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding: 14px 18px 12px;
    background: #fff;
    border-bottom: 0.5px solid rgba(60, 60, 67, 0.29);
}

.app-step {
    width: 64px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(60, 60, 67, 0.6);
}

.app-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d1d6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.app-step-dot svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-step.done,
.app-step.current {
    color: #1E5B37;
}

.app-step.done .app-step-dot {
    background: #1E5B37;
    border-color: #1E5B37;
}

.app-step.current .app-step-dot {
    border-color: #1E5B37;
    box-shadow: 0 0 0 4px rgba(30, 91, 55, 0.12);
}

.app-step-line {
    flex: 1;
    height: 2px;
    margin-top: 11px;
    border-radius: 1px;
    background: #d1d1d6;
}

.app-step-line.done {
    background: #1E5B37;
}

/* Horse identity */
.app-horse {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

.app-avatar {
    display: block;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: #d1d1d6;
}

.app-avatar.round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.app-horse-name {
    font-size: 17px;
    font-weight: 600;
}

.app-horse-meta {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.24px;
    color: rgba(60, 60, 67, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-chip {
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    letter-spacing: 0;
    color: #1E5B37;
    font-variant-numeric: tabular-nums;
}

.app-chip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.app-verified {
    width: 26px;
    height: 26px;
    color: #34c759;
}

/* Scan target */
.app-scan {
    margin: 16px;
    height: 168px;
    border-radius: 12px;
    border: 1.5px dashed rgba(30, 91, 55, 0.45);
    background: rgba(30, 91, 55, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #1E5B37;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.24px;
}

.app-scan svg {
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-scan small {
    font-size: 13px;
    font-weight: 400;
    color: rgba(60, 60, 67, 0.6);
}

/* Bottom action */
.app-footer {
    flex-shrink: 0;
    padding: 12px 16px 42px;
}

.app-button {
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1E5B37;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.app-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-button.disabled {
    background: rgba(120, 120, 128, 0.16);
    color: rgba(60, 60, 67, 0.3);
}

/* Tab bar */
.app-tabbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 83px;
    padding-top: 7px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    background: rgba(249, 249, 249, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1px;
    color: #999;
}

.app-tab svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-tab.active {
    color: #1E5B37;
}

.app-tab.active svg {
    fill: rgba(30, 91, 55, 0.14);
}

/* Medical: profile + withdrawal */
.app-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
}

.app-profile-name {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.26px;
}

.app-withdrawal {
    margin: 14px 16px 0;
    padding: 14px 16px 14px;
    border-radius: 14px;
    background: #fff;
}

.app-withdrawal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.08px;
    text-transform: uppercase;
    color: #c93400;
}

.app-withdrawal-top > span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-withdrawal-top svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.app-withdrawal-top .drug {
    text-transform: none;
    font-weight: 400;
    color: rgba(60, 60, 67, 0.6);
}

.app-withdrawal-days {
    margin-top: 6px;
    font-size: 34px;
    line-height: 41px;
    font-weight: 700;
    letter-spacing: 0.37px;
}

.app-withdrawal-days small {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.45px;
    color: rgba(60, 60, 67, 0.6);
}

.app-withdrawal-sub {
    font-size: 15px;
    letter-spacing: -0.24px;
    color: rgba(60, 60, 67, 0.6);
}

.app-withdrawal-sub strong {
    font-weight: 600;
    color: #000;
}

.app-progress {
    height: 6px;
    margin-top: 14px;
    border-radius: 3px;
    background: rgba(120, 120, 128, 0.16);
    overflow: hidden;
}

.app-progress > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #ff9500;
}

.app-progress.green > span {
    background: #2D764B;
}

.app-progress-labels {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    letter-spacing: 0;
    color: rgba(60, 60, 67, 0.6);
}

.app-segmented {
    margin: 18px 16px 0;
    height: 32px;
    padding: 2px;
    border-radius: 9px;
    background: rgba(118, 118, 128, 0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.app-segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.08px;
}

.app-segmented .on {
    background: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
}

/* Passport card */
.app-passport {
    position: relative;
    margin: 16px;
    padding: 18px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.2), transparent 45%),
        repeating-radial-gradient(circle at 88% 125%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, #2D764B, #1E5B37 55%, #174A2C);
    box-shadow: 0 12px 24px -10px rgba(30, 91, 55, 0.6);
}

.app-passport-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.app-passport-body {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-passport-photo {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: #174A2C;
}

.app-passport-name {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.26px;
}

.app-passport-id {
    margin-top: 2px;
    font-size: 13px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}

.app-passport-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 3px 0;
    padding-inline: 6px 9px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.app-passport-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Transport: map + sheet */
.app-map {
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    height: 410px;
    background: #f3efe7;
}

.app-map > svg {
    width: 393px;
    height: 410px;
}

.app-map-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #3a3a3c;
}

.app-map-controls span {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-map-controls span + span {
    border-top: 0.5px solid rgba(60, 60, 67, 0.29);
}

.app-map-controls svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-map-speed {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.app-map-speed small {
    display: block;
    font-size: 11px;
    line-height: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(60, 60, 67, 0.6);
}

.app-sheet {
    position: absolute;
    top: 470px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 16px 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.app-grabber {
    width: 36px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: #c7c7cc;
}

.app-sheet .app-horse {
    padding: 0;
    gap: 12px;
}

.app-sheet .app-horse-name {
    font-size: 20px;
    line-height: 25px;
    font-weight: 700;
    letter-spacing: -0.45px;
}

.app-eta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.app-eta-label {
    font-size: 13px;
    letter-spacing: -0.08px;
    color: rgba(60, 60, 67, 0.6);
}

.app-eta-value {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: 0.36px;
    font-variant-numeric: tabular-nums;
}

.app-eta-value small {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.41px;
    color: rgba(60, 60, 67, 0.6);
}

.app-sheet .app-progress {
    margin-top: 14px;
}

.app-sheet .app-progress-labels {
    font-size: 13px;
}

.app-sheet-list {
    margin-top: 8px;
}

.app-sheet-list .app-row {
    min-height: 48px;
    padding: 7px 0;
}

.app-sheet-list .app-row + .app-row::before {
    inset-inline-start: 44px;
}

.app-call {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 199, 89, 0.15);
    color: #248a3d;
}

.app-call svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ========================================
   DEVICE: MacBook Air 13"
   Screen is built at the 1280 x 832pt scaled resolution.
   ======================================== */
.macbook {
    --zoom: 0.44;
    zoom: var(--zoom);
    position: relative;
    flex-shrink: 0;
    width: 1440px;
}

.macbook-lid {
    position: relative;
    width: 1318px;
    margin: 0 auto;
    padding: 3px;
    border-radius: 30px 30px 6px 6px;
    background: linear-gradient(180deg, #d4d6d9, #a7aaae);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
}

.macbook-bezel {
    padding: 16px 16px 22px;
    border-radius: 27px 27px 4px 4px;
    background: #0b0b0c;
}

.macbook-screen {
    position: relative;
    width: 1280px;
    height: 832px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: #fff;
    text-align: start;
    -webkit-font-smoothing: antialiased;
}

.macbook-notch {
    position: absolute;
    top: 0;
    left: 50%;
    width: 190px;
    height: 32px;
    margin-left: -95px;
    border-radius: 0 0 10px 10px;
    background: #0b0b0c;
    z-index: 5;
}

.macbook-notch::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2c3b57 0 1px, #0d1220 2px);
}

.macbook-base {
    position: relative;
    height: 24px;
    margin-top: -1px;
    border-radius: 2px 2px 26px 26px / 2px 2px 16px 16px;
    background: linear-gradient(180deg, #eceef0 0%, #c3c6ca 35%, #8f9297 80%, #6c6f74 100%);
    box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.5);
}

.macbook-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 210px;
    height: 10px;
    margin-left: -105px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, #9fa2a6, #c9cbce);
}

/* macOS menu bar */
.mac-menubar {
    height: 32px;
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111a12;
    color: rgba(255, 255, 255, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.mac-menubar-left,
.mac-menubar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mac-menubar-left strong {
    font-weight: 700;
}

.mac-menubar-right {
    gap: 16px;
}

.mac-menubar svg {
    display: block;
    fill: currentColor;
}

/* Safari toolbar */
.safari-toolbar {
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f6f6f6;
    border-bottom: 1px solid #dcdcdc;
    color: #6e6e73;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

.safari-lights {
    display: flex;
    gap: 8px;
}

.safari-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.safari-lights span:nth-child(1) { background: #ff5f57; }
.safari-lights span:nth-child(2) { background: #febc2e; }
.safari-lights span:nth-child(3) { background: #28c840; }

.safari-toolbar svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.safari-url {
    flex: 0 0 520px;
    height: 34px;
    margin: 0 auto;
    border-radius: 9px;
    background: #e8e8ea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #1d1d1f;
}

.safari-url svg {
    width: 11px;
    height: 13px;
    fill: currentColor;
    stroke: none;
}

.safari-right {
    display: flex;
    gap: 18px;
}

/* ========================================
   WEB DASHBOARD (inside the MacBook)
   ======================================== */
.dash {
    height: 748px;
    display: flex;
    background: #fff;
    color: #111827;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.dash svg {
    display: block;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-side {
    width: 232px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 14px;
    background: #f9faf9;
    border-inline-end: 1px solid #ececec;
}

.dash-logo {
    display: block;
    height: 22px;
    width: auto;
    margin: 2px 10px 20px;
    align-self: flex-start;
}

.dash-org {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.dash-org-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b45309;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.dash-org small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

.dash-org svg {
    width: 16px;
    height: 16px;
    margin-inline-start: auto;
    color: #9ca3af;
    stroke-width: 1.8;
}

.dash-nav-label {
    padding: 16px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.dash-nav-item {
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
}

.dash-nav-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.6;
}

.dash-nav-item.active {
    background: rgba(30, 91, 55, 0.08);
    color: #1E5B37;
}

.dash-nav-count {
    margin-inline-start: auto;
    font-size: 12px;
    color: #6b7280;
}

.dash-nav-badge {
    margin-inline-start: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 600;
}

.dash-user {
    margin-top: auto;
    padding: 12px 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #ececec;
    font-size: 13px;
    font-weight: 600;
}

.dash-user small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.dash-initials {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E5B37;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.dash-main {
    flex: 1;
    min-width: 0;
    padding: 22px 32px;
    overflow: hidden;
}

.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dash-title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dash-sub {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
}

.dash-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-search {
    width: 280px;
    height: 36px;
    padding: 0;
    padding-inline: 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.dash-search svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.dash-search kbd {
    margin-inline-start: auto;
    padding: 1px 5px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    color: #6b7280;
}

.dash-iconbtn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
}

.dash-iconbtn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.7;
}

.dash-iconbtn::after {
    content: '';
    position: absolute;
    top: 7px;
    inset-inline-end: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 2px #fff;
}

.dash-btn {
    height: 36px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    background: #1E5B37;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.dash-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.dash-alert {
    height: 44px;
    margin-bottom: 16px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}

.dash-alert svg {
    width: 18px;
    height: 18px;
    color: #d97706;
    stroke-width: 2;
}

.dash-alert-link {
    margin-inline-start: auto;
    font-weight: 600;
    color: #b45309;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dash-kpi {
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.dash-kpi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.dash-kpi-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 91, 55, 0.08);
    color: #1E5B37;
}

.dash-kpi-icon svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.9;
}

.dash-kpi-row {
    margin-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.dash-kpi-num {
    font-size: 30px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.dash-spark {
    width: 96px;
    height: 32px;
}

.dash-kpi-note {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.dash-kpi-note b {
    font-weight: 600;
}

.dash-kpi-note .up { color: #15803d; }
.dash-kpi-note .warn { color: #b45309; }
.dash-kpi-note .info { color: #1d4ed8; }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 316px;
    gap: 16px;
    align-items: start;
}

.dash-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}

.dash-card-head {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.dash-card-title {
    font-size: 15px;
    font-weight: 600;
}

.dash-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #1E5B37;
}

.dash-tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.dash-tabs span {
    padding: 4px 10px;
    border-radius: 6px;
}

.dash-tabs .on {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.dash-tr {
    height: 54px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.25fr 1.5fr 0.95fr 0.6fr;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.dash-tr:last-child {
    border-bottom: none;
}

.dash-tr.head {
    height: 36px;
    background: #fafafa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
}

.dash-horse {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dash-horse img {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

.dash-horse-name {
    font-weight: 600;
}

.dash-muted {
    font-size: 11px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.dash-status {
    justify-self: start;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dash-status.ok { background: #ecfdf3; color: #067647; }
.dash-status.transit { background: #eff6ff; color: #1d4ed8; }
.dash-status.warn { background: #fffbeb; color: #b45309; }

.dash-time {
    text-align: end;
    color: #6b7280;
    white-space: nowrap;
}

.dash-wd {
    padding: 4px 16px;
}

.dash-wd-row {
    padding: 9px 0 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.dash-wd-row:last-child {
    border-bottom: none;
}

.dash-wd-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.dash-wd-top .days {
    color: #b45309;
}

.dash-wd-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    font-size: 12px;
    color: #6b7280;
}

.dash-bar {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    background: #f3f4f6;
    overflow: hidden;
}

.dash-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: #f59e0b;
}

.dash-bar.green span {
    background: #2D764B;
}

.dash-transit {
    padding: 14px 16px 16px;
    font-size: 13px;
}

.dash-transit .dash-horse img {
    width: 36px;
    height: 36px;
}

.dash-transit .dash-wd-sub {
    margin-top: 8px;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
    overflow-x: hidden;
}

.section-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 550px;
}

/* Built For Section */
.built-for {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 0;
}

.built-for-inner {
    text-align: center;
}

.built-for-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 32px;
}

.built-for-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.built-for-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    position: relative;
}

.built-for-item:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: var(--color-border);
}

.built-for-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.built-for-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.built-for-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

@media (max-width: 900px) {
    .built-for-item:not(:last-child)::after {
        display: none;
    }

    .built-for-grid {
        gap: 8px 24px;
    }

    .built-for-item {
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    .built-for {
        padding: 48px 0;
    }

    .built-for-grid {
        flex-direction: column;
        gap: 4px;
    }

    .built-for-item {
        padding: 10px 0;
    }

    .built-for-text {
        font-size: 1rem;
    }
}

/* Product Showcase - Untitled UI Style */
.product-showcase {
    padding: 140px 0;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.product-showcase:nth-child(even) {
    background: var(--color-bg-light);
}

.product-showcase:last-of-type {
    border-bottom: none;
}

.product-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.product-showcase:nth-child(even) .product-showcase-inner {
    direction: rtl;
}

.product-showcase:nth-child(even) .product-showcase-inner > * {
    direction: ltr;
}

.product-content {
    max-width: 480px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.product-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.product-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-highlight {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 40px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-feature {
    display: flex;
    gap: 16px;
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--color-accent);
}

.product-feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-feature-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Phone Mockups */
.product-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 560px;
}

@media (max-width: 768px) {
    .product-visual {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .product-visual {
        min-height: 350px;
    }
}

.product-visual .iphone {
    transition: transform 0.5s var(--ease-out-expo);
}

@media (hover: hover) {
    .product-visual:hover .iphone {
        transform: translateY(-10px);
    }
}

/* ========================================
   MOCKUP MOMENTS
   Small one-off animations that play when a product section
   scrolls into view. With reduced motion the screens stay put.
   ======================================== */
.app-swap {
    display: grid;
}

.app-swap > * {
    grid-area: 1 / 1;
}

.app-swap > .to {
    opacity: 0;
}

.app-scan-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-map-halo {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes appMapPulse {
    from { transform: scale(0.55); opacity: 0.6; }
    to { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    /* EQlog: sticker gets scanned, Continue becomes available */
    .app-swap > * {
        transition: opacity 0.35s ease, transform 0.45s var(--ease-out-expo);
    }

    .app-swap > .to {
        transform: scale(0.85);
    }

    .reveal.visible .app-swap > .from {
        opacity: 0;
        transition-delay: 1.8s;
    }

    .reveal.visible .app-swap > .to {
        opacity: 1;
        transform: none;
        transition-delay: 1.8s;
    }

    .reveal .app-button.becomes-ready {
        transition: background-color 0.35s ease 1.9s, color 0.35s ease 1.9s;
    }

    .reveal.visible .app-button.becomes-ready {
        background: #1E5B37;
        color: #fff;
    }

    /* EQmedrecords: withdrawal progress fills */
    .reveal .app-fill > span {
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1.2s var(--ease-out-expo) 0.9s;
    }

    [dir="rtl"] .reveal .app-fill > span {
        transform-origin: right;
    }

    .reveal.visible .app-fill > span {
        transform: none;
    }

    /* EQmovement: route draws in, then the trailer marker appears and pulses */
    .reveal .app-map-route {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 1.6s ease-in-out 0.8s;
    }

    .reveal.visible .app-map-route {
        stroke-dashoffset: 0;
    }

    .reveal .app-map-vehicle {
        opacity: 0;
        transition: opacity 0.4s ease 2.3s;
    }

    .reveal.visible .app-map-vehicle {
        opacity: 1;
    }

    .reveal.visible .app-map-halo {
        animation: appMapPulse 2s ease-out 2.6s 4;
    }

    /* EQpassport: a light sheen crosses the card, then the badge lands */
    .app-passport::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
        transform: translateX(-100%);
        pointer-events: none;
    }

    .reveal.visible .app-passport::after {
        transform: translateX(100%);
        transition: transform 1.4s ease-in-out 1s;
    }

    .reveal .app-passport-badge {
        opacity: 0;
        transform: scale(0.6);
        transition: opacity 0.3s ease 2.1s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.1s;
    }

    .reveal.visible .app-passport-badge {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   HOW IT CONNECTS - one horse's day across the four products
   ======================================== */
.journey {
    padding: 32px;
    padding-top: 0;
    background: var(--color-bg);
}

.journey-card {
    position: relative;
    overflow: hidden;
    padding: 64px 48px 56px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1E5B37 0%, #174A2C 100%);
    color: #fff;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: -30%;
    inset-inline-end: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.journey-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

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

.journey-header .section-label {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.journey-header h2 {
    text-wrap: balance;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.journey-header h2 span {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.journey-header p {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.journey-subject {
    width: fit-content;
    max-width: 100%;
    margin: 32px auto 48px;
    padding: 6px 18px 6px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

[dir="rtl"] .journey-subject {
    padding: 6px 6px 6px 18px;
}

.journey-subject img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.journey-subject strong {
    display: block;
    font-weight: 600;
}

.journey-subject span {
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.journey-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
}

/* The line the step dots sit on */
/* Runs from the first dot to the last: one column (minus the dot) short of the end */
.journey-steps::before {
    content: '';
    position: absolute;
    top: 9px;
    inset-inline: 6px calc((100% - 64px) / 5 - 6px);
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.journey-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.journey-step::before {
    content: '';
    position: absolute;
    top: 4px;
    inset-inline-start: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1E5B37;
    box-shadow: 0 0 0 2px #fff;
}

.journey-step.is-final::before {
    background: #4ade80;
    box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(74, 222, 128, 0.25);
}

.journey-time {
    position: absolute;
    top: 0;
    inset-inline-start: 22px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.journey-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    color: var(--color-text);
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.35);
}

.journey-step.is-final .journey-body {
    box-shadow: 0 0 0 2px #4ade80, 0 12px 30px -12px rgba(0, 0, 0, 0.35);
}

.journey-product {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 100px;
    background: var(--color-accent-muted);
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

[dir="rtl"] .journey-product {
    padding: 4px 8px 4px 10px;
}

.journey-product svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.journey-body h3 {
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.journey-body p {
    margin: 6px 0 14px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
}

.journey-record {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

.journey-record::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2D764B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Timeline turns vertical below 1100px */
@media (max-width: 1100px) {
    .journey-card {
        padding: 48px 32px;
    }

    .journey-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 560px;
        margin: 0 auto;
    }

    /* Vertical: each step draws the segment down to the next dot */
    .journey-steps::before {
        display: none;
    }

    .journey-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 16px;
        bottom: -24px;
        inset-inline-start: 5px;
        width: 2px;
        background: rgba(255, 255, 255, 0.22);
    }

    .journey-step {
        padding-top: 0;
        padding-inline-start: 32px;
    }

    .journey-time {
        position: static;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .journey {
        padding: 16px;
        padding-top: 0;
    }

    .journey-card {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .journey-subject {
        margin: 24px auto 32px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .journey {
        padding: 12px;
        padding-top: 0;
    }
}

/* ========================================
   BUILT FOR THE BARN - practical and trust points
   ======================================== */
.trust {
    padding: 120px 0 140px;
    background: var(--color-bg);
}

.trust-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: 80px;
    align-items: start;
}

.trust-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.trust-header p {
    margin-top: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
}

.trust-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-muted);
    color: var(--color-accent);
}

.trust-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-item h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.trust-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
    .trust-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .trust {
        padding: 80px 0;
    }
}

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

    .trust-item {
        padding: 22px 0;
    }
}

/* CTA */
.cta {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-text);
}

.cta-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.01em;
}

.contact-item a,
.contact-item p {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--color-accent-light);
}

/* Contact Form */
.contact-form {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(30, 91, 55, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23055201' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-inline-end: 44px;
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
}

.form-submit:hover:not(:disabled) {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit .btn-text,
.form-submit .btn-arrow {
    transition: opacity 0.3s ease;
}

.form-submit .btn-loading,
.form-submit .btn-spinner {
    display: none;
}

.form-submit.loading .btn-text,
.form-submit.loading .btn-arrow {
    display: none;
}

.form-submit.loading .btn-loading,
.form-submit.loading .btn-spinner {
    display: inline-block;
}

.form-submit .btn-spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-submit svg {
    width: 18px;
    height: 18px;
}

/* Required field indicator */
.required {
    color: #dc2626;
}

/* Form validation states */
.form-group input:user-invalid {
    border-color: #dc2626;
}

.form-group input:user-valid {
    border-color: var(--color-accent);
}

/* Form error message */
.form-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
    display: none;
}

.form-error.visible {
    display: block;
}

/* Form Success State */
.form-success {
    display: none;
    text-align: center;
    padding: 48px 36px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 91, 55, 0.06);
}

.form-success.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    background: rgba(30, 91, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success .success-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.form-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-reset-btn:hover {
    background: var(--color-accent);
    color: #ffffff;
}

/* Hide form when success is shown */
.contact-form.hidden {
    display: none;
}

/* Vision & Values Section */
.vision {
    padding: 140px 0;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.vision-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.vision-header .section-label {
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.vision-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-text);
}

.vision-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.value-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E5B37 0%, #2D764B 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 91, 55, 0.12);
    border-color: rgba(30, 91, 55, 0.1);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 52px;
    height: 52px;
    background: rgba(30, 91, 55, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: #1E5B37;
}

.value-icon svg {
    width: 26px;
    height: 26px;
    stroke: #1E5B37;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon svg {
    stroke: #ffffff;
}

.value-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    opacity: 0.6;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Ecosystem Section */
.ecosystem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: linear-gradient(135deg, #1E5B37 0%, #174A2C 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.ecosystem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.ecosystem-content {
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.ecosystem-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.ecosystem-label img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

.ecosystem-content h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
}

.ecosystem-content > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ecosystem-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecosystem-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ecosystem-product:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.ecosystem-product-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ecosystem-product-icon img {
    height: 24px;
    width: auto;
}

.ecosystem-product-icon svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 1.5;
    fill: none;
}

.ecosystem-product-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #ffffff;
}

.ecosystem-product-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.ecosystem-product-arrow {
    margin-inline-start: auto;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.ecosystem-product:hover .ecosystem-product-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

.ecosystem-visual {
    position: relative;
    z-index: 1;
}

.ecosystem-image {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ecosystem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecosystem-stats {
    position: absolute;
    bottom: -30px;
    left: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.ecosystem-stat {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.ecosystem-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E5B37;
    letter-spacing: -0.02em;
}

.ecosystem-stat-label {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

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

    .ecosystem {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

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

    .ecosystem-stats {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 24px;
    }

    .ecosystem-stat {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .vision {
        padding: 100px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 60px;
    }

    .value-card {
        padding: 28px 24px;
    }

    .value-icon {
        width: 46px;
        height: 46px;
    }

    .value-icon svg {
        width: 22px;
        height: 22px;
    }

    .ecosystem {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .ecosystem-image {
        height: 260px;
    }

    .ecosystem-stats {
        flex-direction: row;
        gap: 10px;
    }

    .ecosystem-stat {
        padding: 14px 12px;
    }

    .ecosystem-stat-value {
        font-size: 1.2rem;
    }

    .ecosystem-stat-label {
        font-size: 0.55rem;
    }

    .ecosystem-products {
        gap: 10px;
    }

    .ecosystem-product {
        padding: 14px 16px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    inset-inline-end: 32px;
    width: 48px;
    height: 48px;
    background: #1E5B37;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(30, 91, 55, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 91, 55, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 600px) {

    .back-to-top {
        bottom: 20px;
        inset-inline-end: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   PREMIUM ANIMATIONS SYSTEM
   ============================================ */

/* Base reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-out-expo), 
                transform 1s var(--ease-out-expo);
}

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

/* Staggered children animations */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), 
                transform 0.8s var(--ease-out-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Fade up (legacy support) */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-out-expo), 
                transform 1s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from sides */
.fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s var(--ease-out-expo), 
                transform 1s var(--ease-out-expo);
}

.fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s var(--ease-out-expo), 
                transform 1s var(--ease-out-expo);
}

.fade-left.visible,
.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo), 
                transform 0.8s var(--ease-out-expo);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Blur in */
.blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), 
                filter 1s var(--ease-out-expo),
                transform 1s var(--ease-out-expo);
}

.blur-in.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Split text animation */
.split-text {
    overflow: hidden;
}

.split-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.split-text.visible .char {
    opacity: 1;
    transform: translateY(0);
}

/* Line reveal */
.line-reveal {
    position: relative;
    overflow: hidden;
}

.line-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: translateX(-101%);
    transition: transform 0.8s var(--ease-in-out-quart);
}

.line-reveal.visible::after {
    transform: translateX(101%);
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Magnetic button effect */
.magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-out-expo);
}

.magnetic-area {
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    z-index: 1;
}

/* 3D Card tilt */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out-expo);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
}

.tilt-card .tilt-content {
    transform: translateZ(30px);
    transition: transform 0.5s var(--ease-out-expo);
}

/* Parallax elements */
.parallax {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, #1E5B37, #2D764B, #1E5B37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Glow effect */
.glow {
    position: relative;
}

.glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.glow:hover::before {
    opacity: 0.6;
}

/* Button hover effects */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), 
                height 0.6s var(--ease-out-expo);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span,
.btn-secondary span {
    position: relative;
    z-index: 1;
}

/* Image reveal */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 1;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s var(--ease-in-out-quart);
}

.img-reveal.visible::before {
    transform: scaleX(0);
}

.img-reveal img {
    transform: scale(1.3);
    transition: transform 1.5s var(--ease-out-expo);
}

.img-reveal.visible img {
    transform: scale(1);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Border animation */
.border-animate {
    position: relative;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color 0.4s ease;
}

.border-animate:hover::before {
    border-color: var(--color-accent);
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 0 auto;
    max-width: 80%;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 24px;
        padding-top: 24px;
    }

    .hero-card {
        padding: 60px 40px;
        min-height: calc(100vh - var(--e8-head-h) - 49px);
    }

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

    .hero-actions {
        justify-content: flex-start;
    }

    .product-showcase-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .product-showcase:nth-child(even) .product-showcase-inner {
        direction: ltr;
    }

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

    .product-features {
        text-align: start;
    }

    .product-visual {
        min-height: 400px;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    /* Force symmetric layout on mobile */
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero {
        padding: 16px;
        padding-top: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-card {
        padding: 40px 24px;
        min-height: 0;
        border-radius: 20px;
        width: 100%;
        box-sizing: border-box;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .product-showcase {
        padding: 80px 0;
    }

    /* Better touch targets */
}

@media (max-width: 480px) {
    .hero {
        padding: 12px;
        padding-top: 12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-card {
        padding: 32px 16px;
        min-height: 0;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .hero-visual {
        margin-top: 32px;
    }

    .product-visual .iphone {
        --zoom: 0.58;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .built-for-text {
        font-size: 0.9rem;
    }

    .built-for-icon {
        width: 22px;
        height: 22px;
    }

    .built-for-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero {
        padding: 8px;
        padding-top: 8px;
    }

    .hero-card {
        padding: 24px 12px;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .product-visual .iphone {
        --zoom: 0.52;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 16px;
    }

    .hero-card {
        min-height: auto;
        padding: 32px 24px;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .hero-devices .iphone {
        --zoom: 0.4;
    }
}

/* High DPI / Retina display optimizations */

/* ========================================
   REDUCED MOTION
   Everything appears in its final state: no entrance, parallax
   or looping animation.
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .reveal,
    .reveal-stagger > *,
    .fade-up,
    .fade-left,
    .fade-right,
    .scale-in,
    .blur-in,
    .split-text .char,
    .hero-title .char {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .img-reveal::before,
    .line-reveal::after {
        display: none;
    }

    .img-reveal img {
        transform: none !important;
    }

    .hero-orb,
    .hero-badge-dot,
    .gradient-text {
        animation: none !important;
    }

    .hover-lift:hover,
    .back-to-top:hover,
    .btn-primary:hover,
    .product-visual:hover .iphone {
        transform: none !important;
    }
}

/* ========================================
   RIGHT-TO-LEFT (Arabic page)
   Most layout mirrors through logical properties; these are the
   pieces that need an explicit override.
   ======================================== */
html[dir="rtl"] {
    --font-main: 'IBM Plex Sans Arabic', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Letter-spacing pulls joined Arabic letters apart */
[dir="rtl"] body,
[dir="rtl"] body * {
    letter-spacing: 0 !important;
}

/* No capitals in Arabic, so small labels need a little more size */
[dir="rtl"] .section-label,
[dir="rtl"] .product-name,
[dir="rtl"] .built-for-label {
    font-size: 0.95rem;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .product-title,
[dir="rtl"] h2 {
    line-height: 1.35;
}

[dir="rtl"] .iphone-screen,
[dir="rtl"] .mac-menubar {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

[dir="rtl"] .dash {
    font-family: 'IBM Plex Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

[dir="rtl"] .scroll-progress {
    left: auto;
    right: 0;
}

[dir="rtl"] .form-group select {
    background-position: left 14px center;
}

/* Alternate product rows: swap which side the phone sits on */
[dir="rtl"] .product-showcase:nth-child(even) .product-showcase-inner {
    direction: ltr;
}

[dir="rtl"] .product-showcase:nth-child(even) .product-showcase-inner > * {
    direction: rtl;
}

@media (max-width: 1024px) {
    [dir="rtl"] .product-showcase:nth-child(even) .product-showcase-inner {
        direction: rtl;
    }
}

/* iOS mirrors navigation chevrons in right-to-left languages */
[dir="rtl"] .ios-back,
[dir="rtl"] .app-chevron {
    transform: scaleX(-1);
}

/* Maps don't mirror */
.app-map {
    direction: ltr;
}
