:root {
    /* Palette: Modern Agricultural */
    --bg-main: #f8faf9;
    --bg-dark: #1a2e1a;
    --primary: #FF7043;
    --secondary: #2E7D32;
    --accent: #1B5E20;
    --text-dark: #1a2e1a;
    --text-light: #5a6b5a;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #FF7043 0%, #FF8A65 100%);
    --gradient-green: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    --gradient-dark: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 100%);

    --shadow-card: 0 10px 40px rgba(26, 46, 26, 0.06);
    --shadow-float: 0 24px 64px rgba(26, 46, 26, 0.12);
    --shadow-glow: 0 0 40px rgba(255, 112, 67, 0.15);
    --glass: rgba(255, 255, 255, 0.92);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bg-dark);
}

h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

section:hover h2::after {
    width: 100px;
}

p {
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 1.2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════ HEADER ═══════════════════ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(248, 250, 249, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 46, 26, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 5%;
    background: rgba(248, 250, 249, 0.97);
    box-shadow: 0 4px 30px rgba(26, 46, 26, 0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    opacity: 0.75;
    transition: all 0.3s;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

nav a:hover,
nav a.active {
    opacity: 1;
    color: var(--primary);
}

nav a:hover::before,
nav a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bg-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ═══════════════════ HERO ═══════════════════ */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: radial-gradient(ellipse at 20% 50%, rgba(46, 125, 50, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 112, 67, 0.04) 0%, transparent 50%),
        var(--bg-main);
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 700px;
    height: 700px;
    background: rgba(255, 112, 67, 0.1);
    top: -25%;
    right: -10%;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(46, 125, 50, 0.08);
    bottom: -15%;
    left: -10%;
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(255, 138, 101, 0.06);
    top: 50%;
    left: 40%;
    animation-delay: -12s;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(26, 46, 26, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.badge {
    background: rgba(46, 125, 50, 0.08);
    color: var(--secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.cta-group {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2.2rem;
    background: var(--gradient-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(26, 46, 26, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(26, 46, 26, 0.3);
}

.btn-secondary {
    padding: 1rem 2.2rem;
    background: transparent;
    color: var(--bg-dark);
    border: 2px solid rgba(26, 46, 26, 0.15);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 112, 67, 0.05);
}

.btn-glow {
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(255, 112, 67, 0.3);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.btn-glow:hover {
    box-shadow: 0 16px 50px rgba(255, 112, 67, 0.45);
}

/* Trust indicators */
.trust-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.status-badge.online {
    color: var(--secondary);
    background: rgba(46, 125, 50, 0.1);
}

/* ═══════════════════ HERO VISUAL ═══════════════════ */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 650px;
    height: 650px;
    z-index: 1;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iso-card {
    width: 320px;
    height: 460px;
    border-radius: var(--radius-lg);
    position: absolute;
    box-shadow: -30px 30px 80px rgba(26, 46, 26, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.iso-card.main-card {
    z-index: 2;
    transform: rotateY(-20deg) rotateX(10deg) translateZ(50px);
}

.iso-card.bg-card {
    z-index: 1;
    transform: rotateY(-20deg) rotateX(10deg) translateZ(-50px) translateX(-40px) translateY(40px);
    opacity: 0.5;
    filter: blur(1px);
}

.hero-visual:hover .iso-card.main-card {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(80px);
}

.hero-visual:hover .iso-card.bg-card {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-20px) translateX(-20px) translateY(20px);
    opacity: 0.7;
    filter: blur(0);
}

/* Data Rows */
.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.data-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.data-val.primary {
    color: var(--primary);
}

.data-val.secondary {
    color: var(--secondary);
}

/* Chart Bars */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    margin-top: auto;
}

.chart-bar {
    flex: 1;
    background: #eee;
    border-radius: 6px 6px 0 0;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.active {
    background: var(--secondary);
}

.chart-bar.highlight {
    background: var(--primary);
}

/* ═══════════════════ SECTIONS ═══════════════════ */
section {
    padding: 8rem 10%;
    position: relative;
}

section:nth-child(even) {
    background: white;
}

/* Stats / Benefits */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.stat-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
}

.stat-card:hover::before {
    height: 100%;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 0.8rem;
}

/* ═══════════════════ TECH / PRODUCT ═══════════════════ */
.tech-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.tech-pill {
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--bg-dark);
    transition: all 0.3s ease;
    cursor: default;
    font-size: 0.95rem;
}

.tech-pill:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.12);
}

.tech-pill svg {
    width: 22px;
    height: 22px;
    stroke: var(--secondary);
    stroke-width: 2;
}

/* Feature cards grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ═══════════════════ FLOW / HOW IT WORKS ═══════════════════ */
.flow-container {
    background: white;
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    flex-wrap: wrap;
    gap: 2rem;
}

.flow-steps::after {
    content: '';
    position: absolute;
    top: 48px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: 0;
    opacity: 0.3;
}

.flow-item {
    position: relative;
    z-index: 1;
    text-align: center;
    background: white;
    padding: 0 15px;
    flex: 1;
    min-width: 180px;
}

.flow-icon-wrapper {
    width: 96px;
    height: 96px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    position: relative;
}

.flow-step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 112, 67, 0.3);
}

.flow-item:hover .flow-icon-wrapper {
    border-color: var(--secondary);
    box-shadow: 0 0 0 10px rgba(46, 125, 50, 0.08);
    transform: scale(1.08);
}

.flow-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.flow-item p {
    font-size: 0.95rem;
    max-width: 220px;
    margin: 0 auto;
}

/* ═══════════════════ CTA SECTION ═══════════════════ */
.cta-section {
    background: var(--gradient-dark) !important;
    text-align: center;
    padding: 6rem 10%;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 112, 67, 0.08);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-content h2 {
    color: white;
    -webkit-text-fill-color: white;
    margin-bottom: 1.5rem;
}

.cta-content h2::after {
    display: none;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
}

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
    background: #0d1f0d;
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding: 4rem 10% 3rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 10%;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin: 0;
}

/* ═══════════════════ UPLOAD PAGE ═══════════════════ */
.upload-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.upload-zone {
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--bg-main);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(255, 112, 67, 0.03);
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f8e9;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    border: 1px solid #c5e1a5;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

.btn-icon:hover {
    color: #d32f2f;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-green);
    transition: width 0.3s ease;
}

.console-log {
    background: #0d1f0d;
    color: #a3d9b4;
    padding: 1.2rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    text-align: left;
    margin-top: 1.5rem;
    height: 140px;
    overflow-y: auto;
    display: none;
}

.console-log p {
    margin: 0;
    line-height: 1.5;
    color: #a3d9b4;
    font-size: 0.85rem;
}

.console-log .error {
    color: #ff8a80;
}

.console-log .success {
    color: #b9f6ca;
}

/* Nav Button */
.nav-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s;
    opacity: 1 !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 112, 67, 0.3);
}

.nav-btn::before {
    display: none;
}

/* ═══════════════════ UPLOAD PAGE SPECIFIC ═══════════════════ */

/* Simple nav (upload page) — always visible */
.nav-simple {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

.nav-simple ul {
    flex-direction: row !important;
}

.nav-simple a {
    font-size: 0.95rem !important;
    opacity: 0.8;
}

.nav-simple a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Connect button */
.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    background: var(--bg-dark);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(26, 46, 26, 0.2);
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-connect svg {
    stroke: #ffffff;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 46, 26, 0.3);
    background: #243824;
}

.btn-connect.connected {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

/* Status dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.disconnected {
    background: #bbb;
}

.status-dot.connected {
    background: var(--secondary);
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* File info card */
.file-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    margin-top: 0;
    transition: all 0.3s;
}

.file-info-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
}

.file-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(46, 125, 50, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flash main button */
.btn-flash-main {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.btn-flash-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-flash-main:not(:disabled) {
    background: var(--gradient-green);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.25);
}

.btn-flash-main:not(:disabled):hover {
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.35);
}

/* Help section */
.help-info {
    margin-top: 3rem;
    text-align: center;
}

.help-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    text-align: left;
    padding: 1.2rem;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.help-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 112, 67, 0.2);
}

.help-step p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Upload page body adjustment */
.page-upload #upload-section {
    padding-top: 7rem;
    min-height: 100vh;
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 20px) scale(0.95);
    }

    75% {
        transform: translate(25px, 15px) scale(1.02);
    }
}

/* ═══════════════════ MOBILE NAV ═══════════════════ */
@media (max-width: 968px) {
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(248, 250, 249, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        padding-top: 5rem;
    }

    nav.open {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    nav a {
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* --- Tablet & small laptop (max 1200px) --- */
@media (max-width: 1200px) {
    section {
        padding: 6rem 6%;
    }

    .hero-visual {
        width: 45%;
        max-width: 500px;
        height: 520px;
    }

    .iso-card {
        width: 280px;
        height: 420px;
        padding: 22px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    .grid-3 {
        gap: 2rem;
    }

    .footer-content {
        gap: 3rem;
    }
}

/* --- Tablet (max 968px) --- */
@media (max-width: 968px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 5rem 5%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Hero */
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 7rem;
        padding-bottom: 4rem;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        max-width: 340px;
        height: 480px;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }

    .iso-card {
        position: relative;
        margin: 0 auto;
        transform: none !important;
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .iso-card.bg-card {
        display: none;
    }

    .hero-visual:hover .iso-card.main-card {
        transform: none !important;
    }

    /* Trust */
    .cta-group {
        justify-content: center;
    }

    .trust-row {
        justify-content: center;
        gap: 1.5rem;
    }

    /* Stats grid */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .stat-card {
        padding: 2.5rem 2rem;
    }

    /* Flow */
    .flow-container {
        padding: 2.5rem 1.5rem;
    }

    .flow-steps::after {
        display: none;
    }

    .flow-steps {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .flow-item {
        min-width: auto;
        max-width: 320px;
        width: 100%;
    }

    /* Tech */
    .tech-container {
        gap: 0.8rem;
        margin-bottom: 3rem;
    }

    .tech-pill {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* CTA */
    .cta-section {
        padding: 5rem 6%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links {
        align-items: center;
    }
}

/* --- Mobile (max 640px) --- */
@media (max-width: 640px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    section {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    #hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
    }

    .btn-glow {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .trust-row {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2.8rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .icon-box {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.8rem 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    /* Tech pills */
    .tech-container {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .tech-pill {
        padding: 0.7rem 1rem;
        font-size: 0.82rem;
        gap: 8px;
    }

    .tech-pill svg {
        width: 18px;
        height: 18px;
    }

    /* Flow */
    .flow-container {
        padding: 2rem 1.2rem;
    }

    .flow-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .flow-item h4 {
        font-size: 1.05rem;
    }

    .flow-item p {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-section {
        padding: 4rem 5%;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        padding: 3rem 5% 2rem;
        gap: 2rem;
    }

    .footer-bottom {
        padding: 1.2rem 5%;
    }

    /* Upload page */
    .upload-card {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .console-log {
        height: 100px;
        font-size: 0.78rem;
    }

    .help-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn-connect {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }

    .file-info-card {
        padding: 1rem;
    }

    .page-upload #upload-section {
        padding-top: 6rem;
    }
}

/* --- Very small phones (max 380px) --- */
@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-visual {
        max-width: 280px;
        height: 420px;
    }

    .iso-card {
        max-width: 260px;
        padding: 18px;
    }

    .data-label {
        font-size: 0.82rem;
    }

    .data-val {
        font-size: 1rem;
    }

    .chart-container {
        height: 80px;
    }

    nav.open a {
        font-size: 1.1rem;
    }
}