/* ============================
   PlantCare AI — Bento Dashboard
   Sage + Dark + Green + Purple
   ============================ */

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

html {
    width: 100%;
    overflow-x: hidden;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

:root {
    --sage: #d4ddd0;
    --sage-dark: #c5cfc1;
    --card-dark: #1a1a1a;
    --card-dark-2: #222222;
    --card-white: #ffffff;
    --card-green: #86efac;
    --card-green-dark: #4ade80;
    --card-purple: #c4b5fd;
    --card-purple-dark: #a78bfa;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255,255,255,0.55);
    --text-on-light: #1a1a1a;
    --text-on-light-muted: #6b7280;
    --text-on-green: #064e3b;
    --text-on-purple: #3b1f7e;
    --radius: 24px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --radius-full: 100px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 0.5s;
    --dur-fast: 0.3s;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--sage);
    color: var(--text-on-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- Utility ---------- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease-spring);
    flex-shrink: 0;
}

.arrow-icon svg {
    width: 14px;
    height: 14px;
}

.arrow-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(212, 221, 208, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-on-light);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--card-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--card-green);
    border-radius: 50%;
}

.logo-highlight {
    color: var(--card-green-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    background: var(--card-white);
    padding: 4px;
    border-radius: var(--radius-full);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-on-light-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: all var(--dur-fast) var(--ease);
}

.nav-links a:hover {
    color: var(--text-on-light);
    background: rgba(0,0,0,0.04);
}

.nav-links a.active {
    background: var(--card-dark);
    color: var(--text-on-dark);
}

/* ---------- Mobile Toggle ---------- */
.nav-toggle {
    display: none;
    background: var(--card-white);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-xs);
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-on-light);
    border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-toggle span + span { margin-top: 5px; }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3.5px, 3.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(3.5px, -3.5px); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 102;
}

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

/* ===========================
   HOME PAGE — BENTO GRID
   =========================== */

/* ---------- Hero Bento ---------- */
.hero-bento {
    max-width: 1120px;
    margin: 24px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    animation: fadeUp var(--dur) var(--ease);
}

.bento-hero-main {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 48px 40px;
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    grid-row: 1 / 3;
}

.bento-hero-main .hero-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bento-hero-main h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.bento-hero-main h1 .green {
    color: var(--card-green);
}

.bento-hero-main .hero-desc {
    color: var(--text-on-dark-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 32px;
}

.bento-hero-main .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-green);
    color: var(--text-on-green);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform var(--dur-fast) var(--ease-spring),
                background var(--dur-fast) var(--ease);
    width: fit-content;
}

.bento-hero-main .hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--card-green-dark);
}

/* Decorative bar chart in hero */
.hero-bars {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    opacity: 0.3;
}

.hero-bars span {
    width: 18px;
    border-radius: 6px 6px 0 0;
    display: block;
}

.hero-bars span:nth-child(1) { height: 30px; background: var(--card-green); }
.hero-bars span:nth-child(2) { height: 50px; background: var(--card-purple); }
.hero-bars span:nth-child(3) { height: 38px; background: var(--card-green); }
.hero-bars span:nth-child(4) { height: 60px; background: var(--card-green); }
.hero-bars span:nth-child(5) { height: 44px; background: var(--card-purple); }

/* Right-side bento cards */
.bento-stat-green {
    background: var(--card-green);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    color: var(--text-on-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: scaleUp var(--dur) var(--ease) 0.15s both;
}

.bento-stat-purple {
    background: var(--card-purple);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    color: var(--text-on-purple);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: scaleUp var(--dur) var(--ease) 0.25s both;
}

.bento-stat-green .stat-top,
.bento-stat-purple .stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bento-stat-green .stat-label,
.bento-stat-purple .stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.7;
}

.bento-stat-green .stat-big,
.bento-stat-purple .stat-big {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.bento-stat-green .stat-sub,
.bento-stat-purple .stat-sub {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.6;
    margin-top: 8px;
}

/* Mini decorative progress bar */
.mini-bar {
    margin-top: 14px;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.25);
    transition: width 1s var(--ease);
}

/* ===========================
   UPLOAD SECTION
   =========================== */
.upload-section {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.upload-bento {
    background: var(--card-white);
    border-radius: var(--radius);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp var(--dur) var(--ease) 0.1s both;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04),
               0 1px 4px rgba(0,0,0,0.02);
}

.upload-bento .section-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-on-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.upload-bento h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    text-align: center;
}

.upload-bento .upload-desc {
    color: var(--text-on-light-muted);
    font-size: 0.88rem;
    margin-bottom: 32px;
    text-align: center;
}

/* Alert */
.alert {
    width: 100%;
    max-width: 560px;
    margin-bottom: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    animation: fadeUp var(--dur-fast) var(--ease);
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Upload form */
.upload-form {
    width: 100%;
    max-width: 600px;
}

.upload-area {
    border: 2.5px dashed var(--card-green);
    border-radius: var(--radius);
    padding: 44px 28px 36px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease-spring);
    background: linear-gradient(145deg, rgba(134,239,172,0.06) 0%, rgba(196,181,253,0.04) 100%);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(134,239,172,0.25);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
    transition: border-color var(--dur-fast) var(--ease);
}

.upload-area:hover {
    border-color: var(--card-green-dark);
    background: linear-gradient(145deg, rgba(134,239,172,0.12) 0%, rgba(196,181,253,0.06) 100%);
    box-shadow: 0 8px 32px rgba(134,239,172,0.12);
    transform: translateY(-2px);
}

.upload-area:hover::before {
    border-color: rgba(134,239,172,0.4);
}

.upload-area.dragover {
    border-color: var(--card-green-dark);
    background: linear-gradient(145deg, rgba(134,239,172,0.18) 0%, rgba(196,181,253,0.08) 100%);
    box-shadow: 0 12px 40px rgba(134,239,172,0.18);
    transform: translateY(-4px) scale(1.01);
}

.upload-area.dragover::before {
    border-color: rgba(134,239,172,0.5);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Cloud illustration */
.upload-illustration {
    position: relative;
    width: 160px;
    height: 110px;
    margin-bottom: 10px;
}

.upload-cloud {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.upload-cloud svg {
    width: 120px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(134,239,172,0.15));
}

/* Floating file type cards */
.upload-float-file {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-white);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08),
               0 1px 3px rgba(0,0,0,0.04);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-on-light-muted);
    letter-spacing: 0.04em;
    border: 1px solid rgba(0,0,0,0.04);
    animation: floatFile 3s var(--ease) infinite alternate;
}

.upload-float-file svg {
    flex-shrink: 0;
}

@keyframes floatFile {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

.upload-float-1 {
    top: 12px;
    left: -8px;
    animation-delay: 0s;
}

.upload-float-2 {
    top: 8px;
    right: -8px;
    animation-delay: 0.8s;
}

.upload-float-3 {
    bottom: 6px;
    right: 4px;
    animation-delay: 1.5s;
}

.upload-area h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 2px;
}

.upload-area p {
    font-size: 0.9rem;
    color: var(--text-on-light-muted);
}

.upload-browse {
    color: var(--card-green-dark);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid var(--card-green-dark);
    padding-bottom: 1px;
    transition: color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
}

.upload-browse:hover {
    color: var(--text-on-light);
    border-color: var(--text-on-light);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-on-light-muted);
    margin-top: 4px;
    opacity: 0.7;
}

.upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-preview img {
    max-height: 280px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease-spring);
}

.remove-btn:hover {
    background: #fecaca;
    transform: scale(1.04);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--card-dark);
    color: var(--text-on-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring),
                opacity var(--dur-fast) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ===========================
   HOW-IT-WORKS — BENTO ROW
   =========================== */
.how-section {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.how-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.how-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.how-header p {
    font-size: 0.85rem;
    color: var(--text-on-light-muted);
}

.steps-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-bento {
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-spring);
    animation: fadeUp var(--dur) var(--ease) both;
}

.step-bento:nth-child(1) {
    background: var(--card-dark);
    color: var(--text-on-dark);
    animation-delay: 0.05s;
}

.step-bento:nth-child(2) {
    background: var(--card-white);
    color: var(--text-on-light);
    animation-delay: 0.1s;
}

.step-bento:nth-child(3) {
    background: var(--card-green);
    color: var(--text-on-green);
    animation-delay: 0.15s;
}

.step-bento:hover {
    transform: translateY(-4px);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.step-num {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.step-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-bento:nth-child(1) .step-icon-wrap {
    background: rgba(255,255,255,0.1);
}

.step-bento:nth-child(2) .step-icon-wrap {
    background: rgba(0,0,0,0.05);
}

.step-bento:nth-child(3) .step-icon-wrap {
    background: rgba(0,0,0,0.08);
}

.step-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.step-bento h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-bento p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.65;
}

/* ===========================
   DISEASES — BENTO
   =========================== */
.diseases-section {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.diseases-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.diseases-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.disease-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.disease-bento {
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-spring);
    animation: fadeUp var(--dur) var(--ease) both;
}

.disease-bento:hover { transform: translateY(-4px); }

.disease-bento:nth-child(1) {
    background: var(--card-dark);
    color: var(--text-on-dark);
    animation-delay: 0.05s;
}

.disease-bento:nth-child(2) {
    background: var(--card-green);
    color: var(--text-on-green);
    animation-delay: 0.1s;
}

.disease-bento:nth-child(3) {
    background: var(--card-purple);
    color: var(--text-on-purple);
    animation-delay: 0.15s;
}

.disease-bento .disease-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.disease-severity-pill {
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.disease-bento:nth-child(1) .disease-severity-pill {
    background: rgba(255,255,255,0.12);
    color: #fca5a5;
}

.disease-bento:nth-child(2) .disease-severity-pill {
    background: rgba(0,0,0,0.1);
    color: #92400e;
}

.disease-bento:nth-child(3) .disease-severity-pill {
    background: rgba(0,0,0,0.08);
    color: #5b21b6;
}

.disease-bento h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.disease-bento .disease-cause {
    font-size: 0.82rem;
    opacity: 0.6;
    margin-bottom: 12px;
    font-style: italic;
}

.disease-bento .disease-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    opacity: 0.65;
}

/* ===========================
   TECH BADGES
   =========================== */
.tech-section {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.tech-bento {
    background: var(--card-white);
    border-radius: var(--radius);
    padding: 36px 32px;
    animation: fadeUp var(--dur) var(--ease) 0.1s both;
}

.tech-bento h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    background: var(--sage);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.84rem;
    color: var(--text-on-light);
    transition: background var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease-spring),
                color var(--dur-fast) var(--ease);
}

.tech-pill:hover {
    background: var(--card-dark);
    color: var(--text-on-dark);
    transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px 28px;
}

.footer-bento {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 40px 36px 28px;
    color: var(--text-on-dark);
    overflow: hidden;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    margin-bottom: 28px;
    align-items: start;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .logo-text {
    color: var(--text-on-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-brand .logo-highlight {
    color: var(--card-green);
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
    line-height: 1.6;
    margin-top: 4px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    color: var(--text-on-dark-muted);
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 3px 0;
    transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
    color: var(--card-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-on-dark-muted);
}

/* ---- Interactive Hover Grid ---- */
.footer-hover-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
    width: 340px;
    height: 340px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.grid-cell {
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: background var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
    cursor: default;
}

.grid-cell:hover {
    background: rgba(255,255,255,0.1);
}

.grid-cell.has-image {
    cursor: pointer;
}

.grid-cell.has-image:hover {
    background: rgba(134,239,172,0.15);
    box-shadow: 0 0 12px rgba(134,239,172,0.2);
    z-index: 10;
}

/* Image inside grid cell */
.grid-cell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Slide Up */
.grid-cell[data-dir="slide-up"] img {
    transform: translateY(100%) scale(0.8);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
}
.grid-cell[data-dir="slide-up"].revealed img {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Slide Down */
.grid-cell[data-dir="slide-down"] img {
    transform: translateY(-100%) scale(0.8);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
}
.grid-cell[data-dir="slide-down"].revealed img {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Slide Left */
.grid-cell[data-dir="slide-left"] img {
    transform: translateX(100%) scale(0.8);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
}
.grid-cell[data-dir="slide-left"].revealed img {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Slide Right */
.grid-cell[data-dir="slide-right"] img {
    transform: translateX(-100%) scale(0.8);
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.35s ease;
}
.grid-cell[data-dir="slide-right"].revealed img {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* ===========================
   RESULT PAGE
   =========================== */
.result-section {
    max-width: 1120px;
    margin: 24px auto 0;
    padding: 0 20px;
    animation: fadeIn var(--dur) var(--ease);
}

.result-header {
    margin-bottom: 16px;
}

.result-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.result-header p {
    font-size: 0.88rem;
    color: var(--text-on-light-muted);
    margin-top: 4px;
}

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

/* Image card */
.result-image-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--text-on-dark);
    animation: fadeUp var(--dur) var(--ease) 0.1s both;
}

.result-image-card h3 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-on-dark-muted);
    margin-bottom: 16px;
}

.result-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.result-image {
    max-width: 100%;
    max-height: 360px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

/* Prediction card */
.result-prediction-card {
    background: var(--card-white);
    border-radius: var(--radius);
    padding: 28px;
    animation: fadeUp var(--dur) var(--ease) 0.2s both;
}

.prediction-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.prediction-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prediction-icon.severity-high   { background: #fee2e2; }
.prediction-icon.severity-medium { background: #fff7ed; }
.prediction-icon.severity-low    { background: #fefce8; }

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

.prediction-icon.severity-high .dot   { background: #dc2626; }
.prediction-icon.severity-medium .dot { background: #ea580c; }
.prediction-icon.severity-low .dot    { background: #ca8a04; }

.prediction-header h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-on-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prediction-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-top: 4px;
}

/* Confidence */
.confidence-section {
    margin-bottom: 20px;
}

.confidence-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-on-light-muted);
}

.confidence-value {
    font-weight: 800;
    color: var(--text-on-light);
    font-variant-numeric: tabular-nums;
}

.confidence-bar {
    height: 8px;
    background: var(--sage);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.2s var(--ease);
}

.severity-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Predictions breakdown */
.predictions-breakdown {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 20px;
}

.predictions-breakdown h4 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-on-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.prediction-item {
    margin-bottom: 14px;
}

.prediction-item-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-on-light-muted);
}

.prediction-item-bar {
    height: 6px;
    background: var(--sage);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.prediction-item-fill {
    height: 100%;
    background: #d1d5db;
    border-radius: var(--radius-full);
    transition: width 1.2s var(--ease);
}

.prediction-item-fill.active {
    background: var(--card-green-dark);
}

/* Disease details */
.disease-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.detail-bento {
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-spring);
    animation: fadeUp var(--dur) var(--ease) both;
}

.detail-bento:nth-child(1) {
    background: var(--card-dark);
    color: var(--text-on-dark);
    animation-delay: 0.1s;
}

.detail-bento:nth-child(2) {
    background: var(--card-green);
    color: var(--text-on-green);
    animation-delay: 0.15s;
}

.detail-bento:nth-child(3) {
    background: var(--card-purple);
    color: var(--text-on-purple);
    animation-delay: 0.2s;
}

.detail-bento:hover { transform: translateY(-4px); }

.detail-bento .detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-bento:nth-child(1) .detail-icon { background: rgba(255,255,255,0.1); }
.detail-bento:nth-child(2) .detail-icon { background: rgba(0,0,0,0.08); }
.detail-bento:nth-child(3) .detail-icon { background: rgba(0,0,0,0.06); }

.detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.detail-bento h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-bento p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.65;
}

/* Result actions */
.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeUp var(--dur) var(--ease) 0.3s both;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease-spring);
    border: none;
    font-family: inherit;
}

.action-btn.primary {
    background: var(--card-dark);
    color: var(--text-on-dark);
}

.action-btn.secondary {
    background: var(--card-white);
    color: var(--text-on-light);
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* ===========================
   ABOUT PAGE
   =========================== */
.about-hero-bento {
    max-width: 1120px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.about-hero-card {
    background: var(--card-dark);
    border-radius: var(--radius);
    padding: 60px 48px;
    color: var(--text-on-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp var(--dur) var(--ease);
}

.about-hero-card h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.about-hero-card h2 .green { color: var(--card-green); }

.about-hero-card p {
    color: var(--text-on-dark-muted);
    font-size: 0.95rem;
}

/* Decorative bars in about hero */
.about-hero-card .deco-bars {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    opacity: 0.15;
}

.about-hero-card .deco-bars span {
    width: 14px;
    border-radius: 5px 5px 0 0;
}

.about-hero-card .deco-bars span:nth-child(1) { height: 20px; background: var(--card-green); }
.about-hero-card .deco-bars span:nth-child(2) { height: 35px; background: var(--card-purple); }
.about-hero-card .deco-bars span:nth-child(3) { height: 25px; background: var(--card-green); }
.about-hero-card .deco-bars span:nth-child(4) { height: 45px; background: var(--card-green); }

/* Stats bento */
.stats-bento {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-bento {
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform var(--dur-fast) var(--ease-spring);
    animation: fadeUp var(--dur) var(--ease) both;
}

.stat-bento:nth-child(1) {
    background: var(--card-green);
    color: var(--text-on-green);
    animation-delay: 0.05s;
}

.stat-bento:nth-child(2) {
    background: var(--card-white);
    color: var(--text-on-light);
    animation-delay: 0.1s;
}

.stat-bento:nth-child(3) {
    background: var(--card-purple);
    color: var(--text-on-purple);
    animation-delay: 0.15s;
}

.stat-bento:nth-child(4) {
    background: var(--card-dark);
    color: var(--text-on-dark);
    animation-delay: 0.2s;
}

.stat-bento:hover { transform: translateY(-4px); }

.stat-bento .stat-big {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-bento .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

/* About content blocks */
.about-blocks {
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-block {
    border-radius: var(--radius);
    padding: 36px 32px;
    animation: fadeUp var(--dur) var(--ease) both;
}

.about-block:nth-child(odd) {
    background: var(--card-white);
}

.about-block:nth-child(even) {
    background: var(--card-dark);
    color: var(--text-on-dark);
}

.about-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.about-block p {
    font-size: 0.92rem;
    line-height: 1.75;
    opacity: 0.75;
    margin-bottom: 10px;
}

.about-block p:last-child { margin-bottom: 0; }

/* About list */
.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 12px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.75;
    border-bottom: 1px solid rgba(128,128,128,0.12);
}

.about-list li:last-child { border-bottom: none; }

.about-list li strong {
    opacity: 1;
}

.about-block:nth-child(even) .about-list li {
    border-bottom-color: rgba(255,255,255,0.08);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    transition: transform var(--dur-fast) var(--ease-spring);
}

.about-block:nth-child(odd) .team-card {
    background: var(--sage);
}

.about-block:nth-child(even) .team-card {
    background: rgba(255,255,255,0.06);
}

.team-card:hover { transform: translateY(-2px); }

.team-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-green);
    color: var(--text-on-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.team-info h4 a {
    color: inherit;
    text-decoration: none;
}

.team-role {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-role.lead {
    background: var(--card-green);
    color: var(--text-on-green);
}

.about-block:nth-child(odd) .team-role:not(.lead) {
    background: rgba(0,0,0,0.06);
    color: var(--text-on-light-muted);
}

.about-block:nth-child(even) .team-role:not(.lead) {
    background: rgba(255,255,255,0.1);
    color: var(--text-on-dark-muted);
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: transform var(--dur-fast) var(--ease-spring);
}

.about-block:nth-child(odd) .project-link {
    background: var(--sage);
    color: var(--text-on-light);
}

.about-block:nth-child(even) .project-link {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
}

.project-link:hover { transform: translateY(-2px); }

.project-link .link-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-block:nth-child(odd) .link-icon {
    background: var(--card-green);
}

.about-block:nth-child(even) .link-icon {
    background: var(--card-green);
}

.project-link .link-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-on-green);
    fill: none;
    stroke-width: 2;
}

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

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    .hero-bento {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bento-hero-main {
        min-height: 300px;
        padding: 32px 28px;
    }

    .bento-hero-main h1 {
        font-size: 2rem;
    }

    .bento-hero-main .hero-desc {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .bento-stat-green,
    .bento-stat-purple {
        padding: 24px 22px 20px;
    }

    .bento-stat-green .stat-big,
    .bento-stat-purple .stat-big {
        font-size: 2.2rem;
    }

    .upload-bento {
        padding: 36px 28px;
    }

    .steps-bento {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .step-bento {
        padding: 24px 20px;
    }

    .step-bento h3 {
        font-size: 1.05rem;
    }

    .disease-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .disease-bento {
        padding: 24px 20px;
    }

    .disease-bento h3 {
        font-size: 1.2rem;
    }

    .tech-bento {
        padding: 28px 24px;
    }

    .footer-main {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }

    .footer-hover-grid {
        width: 280px;
        height: 280px;
    }

    .footer-bento {
        padding: 32px 28px 24px;
    }

    /* Result page */
    .result-bento {
        gap: 12px;
    }

    .result-image-card,
    .result-prediction-card {
        padding: 24px;
    }

    .disease-details {
        gap: 12px;
    }

    .detail-bento {
        padding: 24px 20px;
    }

    /* About page */
    .about-hero-card {
        padding: 48px 36px;
    }

    .about-hero-card h2 {
        font-size: 2rem;
    }

    .stats-bento {
        gap: 12px;
    }

    .stat-bento {
        padding: 24px 20px;
    }

    .about-block {
        padding: 28px 24px;
    }

    .links-grid {
        gap: 8px;
    }
}

/* ---------- Mobile landscape / small tablet (max 768px) ---------- */
@media (max-width: 768px) {
    /* --- Navbar --- */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 110;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: var(--card-white);
        flex-direction: column;
        padding: 80px 20px 32px;
        gap: 4px;
        border-radius: 0;
        transition: right var(--dur-fast) var(--ease);
        z-index: 105;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius-xs);
        min-height: 44px;
    }

    .nav-links a.active {
        background: var(--card-dark);
        color: var(--text-on-dark);
    }

    .nav-overlay {
        -webkit-tap-highlight-color: transparent;
    }

    /* --- Hero Bento --- */
    .hero-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
        margin-top: 16px;
    }

    .bento-hero-main {
        grid-row: auto;
        min-height: auto;
        padding: 32px 24px;
    }

    .bento-hero-main h1 {
        font-size: 1.8rem;
        line-height: 1.12;
    }

    .bento-hero-main .hero-desc {
        font-size: 0.85rem;
        max-width: 100%;
        margin-bottom: 24px;
    }

    .bento-hero-main .hero-cta {
        padding: 12px 28px;
        font-size: 0.88rem;
    }

    .hero-bars { display: none; }

    .bento-stat-green,
    .bento-stat-purple {
        padding: 22px 20px;
    }

    .bento-stat-green .stat-big,
    .bento-stat-purple .stat-big {
        font-size: 1.8rem;
    }

    /* --- Upload --- */
    .upload-section {
        margin-top: 12px;
    }

    .upload-bento {
        padding: 28px 18px;
    }

    .upload-bento h2 {
        font-size: 1.25rem;
    }

    .upload-bento .upload-desc {
        font-size: 0.84rem;
    }

    .upload-area {
        padding: 32px 16px;
    }

    .upload-area h3 {
        font-size: 0.95rem;
    }

    .upload-illustration {
        width: 130px;
        height: 90px;
    }

    .upload-cloud svg {
        width: 100px;
        height: 66px;
    }

    .upload-float-file {
        padding: 5px 10px;
        font-size: 0.62rem;
    }

    .upload-float-1 { left: -4px; }
    .upload-float-2 { right: -4px; }

    .submit-btn {
        padding: 14px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    /* --- How It Works --- */
    .how-section {
        margin-top: 12px;
    }

    .how-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
    }

    .how-header h2 {
        font-size: 1.25rem;
    }

    .steps-bento {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-bento {
        padding: 24px 20px;
    }

    .step-bento h3 {
        font-size: 1.05rem;
    }

    .step-bento p {
        font-size: 0.84rem;
    }

    /* --- Diseases --- */
    .diseases-section {
        margin-top: 12px;
    }

    .diseases-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
    }

    .diseases-header h2 {
        font-size: 1.25rem;
    }

    .disease-bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .disease-bento {
        padding: 24px 20px;
    }

    .disease-bento h3 {
        font-size: 1.2rem;
    }

    .disease-bento .disease-desc {
        font-size: 0.84rem;
    }

    /* --- Tech --- */
    .tech-section {
        margin-top: 12px;
    }

    .tech-bento {
        padding: 24px 18px;
    }

    .tech-bento h2 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }

    .tech-pills {
        gap: 6px;
    }

    .tech-pill {
        padding: 7px 16px;
        font-size: 0.8rem;
    }

    /* --- Footer --- */
    .footer {
        margin-top: 12px;
        padding-bottom: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-hover-grid {
        width: 100%;
        height: 200px;
        order: -1;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-bento {
        padding: 24px 20px 18px;
    }

    .footer-col a,
    .footer-col p {
        padding: 5px 0;
        min-height: 36px;
        display: flex;
        align-items: center;
    }

    .footer-bottom {
        font-size: 0.72rem;
    }

    /* --- Result page --- */
    .result-section {
        margin-top: 16px;
    }

    .result-header h2 {
        font-size: 1.3rem;
    }

    .result-header p {
        font-size: 0.84rem;
    }

    .result-bento {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-image-card {
        padding: 20px;
    }

    .result-image-wrapper {
        min-height: 200px;
    }

    .result-image {
        max-height: 280px;
    }

    .result-prediction-card {
        padding: 22px 18px;
    }

    .prediction-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .prediction-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .prediction-name {
        font-size: 1.3rem;
    }

    .confidence-label {
        font-size: 0.84rem;
    }

    .severity-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
    }

    .predictions-breakdown h4 {
        font-size: 0.75rem;
    }

    .prediction-item-label {
        font-size: 0.82rem;
    }

    .disease-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-bento {
        padding: 22px 18px;
    }

    .detail-bento h4 {
        font-size: 1.05rem;
    }

    .detail-bento p {
        font-size: 0.84rem;
    }

    .result-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 0.88rem;
    }

    /* --- About page --- */
    .about-hero-bento {
        margin-top: 16px;
    }

    .about-hero-card {
        padding: 36px 22px;
    }

    .about-hero-card h2 {
        font-size: 1.6rem;
    }

    .about-hero-card p {
        font-size: 0.85rem;
    }

    .about-hero-card .deco-bars {
        right: 20px;
        bottom: 14px;
    }

    .stats-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }

    .stat-bento {
        padding: 22px 16px;
    }

    .stat-bento .stat-big {
        font-size: 1.8rem;
    }

    .stat-bento .stat-label {
        font-size: 0.68rem;
    }

    .about-blocks {
        margin-top: 10px;
        gap: 10px;
    }

    .about-block {
        padding: 24px 18px;
    }

    .about-block h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .about-block p {
        font-size: 0.88rem;
    }

    .about-list li {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .team-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .team-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.78rem;
    }

    .team-info h4 {
        font-size: 0.88rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-link {
        padding: 14px 16px;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .project-link .link-icon {
        width: 32px;
        height: 32px;
    }
}

/* ---------- Small mobile (max 480px) ---------- */
@media (max-width: 480px) {
    /* Global padding squeeze */
    .container,
    .hero-bento,
    .upload-section,
    .how-section,
    .diseases-section,
    .tech-section,
    .footer,
    .result-section,
    .about-hero-bento,
    .stats-bento,
    .about-blocks {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-logo {
        font-size: 1rem;
        gap: 8px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .logo-icon::after {
        width: 8px;
        height: 8px;
    }

    /* Hero */
    .hero-bento {
        gap: 10px;
        margin-top: 12px;
    }

    .bento-hero-main {
        padding: 24px 16px;
    }

    .bento-hero-main .hero-label {
        font-size: 0.7rem;
    }

    .bento-hero-main h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .bento-hero-main .hero-desc {
        font-size: 0.8rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .bento-hero-main .hero-cta {
        padding: 11px 24px;
        font-size: 0.84rem;
    }

    .bento-stat-green,
    .bento-stat-purple {
        padding: 18px 16px;
    }

    .bento-stat-green .stat-label,
    .bento-stat-purple .stat-label {
        font-size: 0.75rem;
    }

    .bento-stat-green .stat-big,
    .bento-stat-purple .stat-big {
        font-size: 1.5rem;
    }

    .bento-stat-green .stat-sub,
    .bento-stat-purple .stat-sub {
        font-size: 0.72rem;
    }

    .mini-bar {
        height: 6px;
        margin-top: 10px;
    }

    .arrow-icon {
        width: 28px;
        height: 28px;
    }

    .arrow-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Upload */
    .upload-bento {
        padding: 22px 14px;
    }

    .upload-bento .section-label {
        font-size: 0.72rem;
    }

    .upload-bento h2 {
        font-size: 1.15rem;
    }

    .upload-bento .upload-desc {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .upload-area {
        padding: 24px 12px;
        border-radius: var(--radius-sm);
    }

    .upload-area::before {
        inset: 4px;
        border-radius: calc(var(--radius-sm) - 4px);
    }

    .upload-area h3 {
        font-size: 0.9rem;
    }

    .upload-illustration {
        width: 110px;
        height: 76px;
        margin-bottom: 6px;
    }

    .upload-cloud svg {
        width: 86px;
        height: 58px;
    }

    .upload-float-file {
        padding: 4px 8px;
        font-size: 0.58rem;
        border-radius: 7px;
        gap: 4px;
    }

    .upload-float-file svg {
        width: 12px;
        height: 12px;
    }

    .upload-float-1 { left: 0; top: 8px; }
    .upload-float-2 { right: 0; top: 4px; }
    .upload-float-3 { right: 0; bottom: 2px; }

    .upload-hint {
        font-size: 0.72rem;
    }

    .submit-btn {
        padding: 13px;
        font-size: 0.88rem;
        border-radius: var(--radius-xs);
    }

    /* How It Works */
    .how-header h2 {
        font-size: 1.1rem;
    }

    .step-bento {
        padding: 20px 16px;
        border-radius: var(--radius-sm);
    }

    .step-num {
        font-size: 0.68rem;
    }

    .step-icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .step-icon-wrap svg {
        width: 17px;
        height: 17px;
    }

    .step-bento h3 {
        font-size: 1rem;
    }

    .step-bento p {
        font-size: 0.8rem;
    }

    /* Diseases */
    .diseases-header h2 {
        font-size: 1.1rem;
    }

    .disease-bento {
        padding: 20px 16px;
        border-radius: var(--radius-sm);
    }

    .disease-severity-pill {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .disease-bento h3 {
        font-size: 1.1rem;
    }

    .disease-bento .disease-cause {
        font-size: 0.78rem;
    }

    .disease-bento .disease-desc {
        font-size: 0.8rem;
    }

    /* Tech */
    .tech-bento {
        padding: 20px 14px;
        border-radius: var(--radius-sm);
    }

    .tech-bento h2 {
        font-size: 1rem;
    }

    .tech-pill {
        padding: 6px 14px;
        font-size: 0.76rem;
    }

    /* Footer */
    .footer {
        padding-bottom: 16px;
    }

    .footer-bento {
        padding: 20px 14px 14px;
        border-radius: var(--radius-sm);
    }

    .footer-hover-grid {
        height: 160px;
        gap: 2px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-brand .logo-text {
        font-size: 1rem;
    }

    .footer-brand p {
        font-size: 0.78rem;
    }

    .footer-col h4 {
        font-size: 0.72rem;
        margin-bottom: 10px;
    }

    .footer-col a,
    .footer-col p {
        font-size: 0.8rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    /* Result */
    .result-header h2 {
        font-size: 1.15rem;
    }

    .result-header p {
        font-size: 0.8rem;
    }

    .result-image-card {
        padding: 16px;
        border-radius: var(--radius-sm);
    }

    .result-image-card h3 {
        font-size: 0.72rem;
        margin-bottom: 12px;
    }

    .result-image-wrapper {
        min-height: 160px;
    }

    .result-image {
        max-height: 220px;
    }

    .result-prediction-card {
        padding: 18px 14px;
        border-radius: var(--radius-sm);
    }

    .prediction-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .prediction-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .prediction-header h3 {
        font-size: 0.72rem;
    }

    .prediction-name {
        font-size: 1.15rem;
    }

    .confidence-label {
        font-size: 0.8rem;
    }

    .confidence-bar {
        height: 6px;
    }

    .severity-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
        margin-bottom: 18px;
    }

    .predictions-breakdown {
        padding-top: 16px;
    }

    .predictions-breakdown h4 {
        font-size: 0.72rem;
        margin-bottom: 12px;
    }

    .prediction-item-label {
        font-size: 0.78rem;
    }

    .prediction-item-bar {
        height: 5px;
    }

    .detail-bento {
        padding: 18px 14px;
        border-radius: var(--radius-sm);
    }

    .detail-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .detail-icon svg {
        width: 15px;
        height: 15px;
    }

    .detail-bento h4 {
        font-size: 0.98rem;
    }

    .detail-bento p {
        font-size: 0.8rem;
    }

    .action-btn {
        padding: 11px 16px;
        font-size: 0.84rem;
        border-radius: var(--radius-xs);
    }

    /* About */
    .about-hero-card {
        padding: 28px 16px;
        border-radius: var(--radius-sm);
    }

    .about-hero-card h2 {
        font-size: 1.35rem;
    }

    .about-hero-card p {
        font-size: 0.8rem;
    }

    .about-hero-card .deco-bars {
        right: 14px;
        bottom: 10px;
        gap: 4px;
    }

    .about-hero-card .deco-bars span {
        width: 10px;
    }

    .stats-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-bento {
        padding: 18px 12px;
        border-radius: var(--radius-sm);
    }

    .stat-bento .stat-big {
        font-size: 1.5rem;
    }

    .stat-bento .stat-label {
        font-size: 0.62rem;
    }

    .about-block {
        padding: 20px 14px;
        border-radius: var(--radius-sm);
    }

    .about-block h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .about-block p {
        font-size: 0.84rem;
    }

    .about-list li {
        font-size: 0.82rem;
        padding: 8px 0;
    }

    .team-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .team-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.72rem;
        border-radius: 10px;
    }

    .team-info h4 {
        font-size: 0.84rem;
    }

    .team-role {
        font-size: 0.65rem;
    }

    .project-link {
        padding: 12px 14px;
        font-size: 0.82rem;
        gap: 10px;
    }

    .project-link .link-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .project-link .link-icon svg {
        width: 13px;
        height: 13px;
    }
}

/* ---------- Extra small (max 360px) ---------- */
@media (max-width: 360px) {
    .container,
    .hero-bento,
    .upload-section,
    .how-section,
    .diseases-section,
    .tech-section,
    .footer,
    .result-section,
    .about-hero-bento,
    .stats-bento,
    .about-blocks {
        padding-left: 8px;
        padding-right: 8px;
    }

    .bento-hero-main h1 {
        font-size: 1.3rem;
    }

    .bento-hero-main .hero-desc {
        font-size: 0.78rem;
    }

    .bento-hero-main .hero-cta {
        padding: 10px 20px;
        font-size: 0.82rem;
    }

    .bento-stat-green .stat-big,
    .bento-stat-purple .stat-big {
        font-size: 1.3rem;
    }

    .upload-bento h2 {
        font-size: 1.05rem;
    }

    .stats-bento {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-bento .stat-big {
        font-size: 1.3rem;
    }

    .about-hero-card h2 {
        font-size: 1.2rem;
    }

    .prediction-name {
        font-size: 1.05rem;
    }

    .nav-links {
        width: 220px;
        right: -240px;
    }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .footer, .result-actions { display: none; }
    .result-section { margin-top: 0; }
}