/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-family: var(--font-d);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-2);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s 0.1s both;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--forest);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1) }
    50% { opacity: .5; transform: scale(1.3) }
}

.hero h1 {
    font-family: var(--font-d);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest), var(--gold));
    border: 2.5px solid var(--bg-cream);
    margin-left: -10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-d);
    font-size: 0.6rem;
    font-weight: 700;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-family: var(--font-d);
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.4;
}

.social-proof-text strong {
    color: var(--text-1);
}

/* Hero Dashboard Mockup */
.hero-visual {
    perspective: 1200px;
}

.mockup-wrap {
    transform: rotateY(-4deg) rotateX(3deg);
    transition: 0.5s var(--ease);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    margin: 0 auto;
}

.mockup-wrap:hover {
    transform: rotateY(-1deg) rotateX(1deg) scale(1.015);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #fafafa, #f3f3f3);
    border-bottom: 1px solid #e5e5e5;
}

.mockup-dots {
    display: flex;
    gap: 5px;
}

.mockup-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.mockup-dots .r { background: #ff5f57; }
.mockup-dots .y { background: #ffbd2e; }
.mockup-dots .g { background: #28c840; }

.mockup-url {
    flex: 1;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-d);
    font-size: 0.65rem;
    color: var(--text-3);
    border: 1px solid #e5e5e5;
    margin-left: 6px;
}

.mockup-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 340px;
}

/* Sidebar mockup */
.mk-sidebar {
    background: #0b3d2e;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mk-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.mk-sidebar-logo span {
    width: 24px;
    height: 24px;
    background: var(--forest);
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-d);
    font-size: 0.6rem;
    font-weight: 700;
}

.mk-sidebar-logo b {
    color: #fff;
    font-family: var(--font-d);
    font-size: 0.75rem;
}

.mk-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-family: var(--font-d);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.15s;
    cursor: default;
}

.mk-nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.mk-nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.mk-nav-item.active .mk-nav-dot {
    background: var(--forest);
}

/* Dashboard content mockup */
.mk-content {
    padding: 16px;
    background: var(--bg-cream);
}

.mk-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mk-title {
    font-family: var(--font-d);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-1);
}

.mk-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest), var(--gold));
}

.mk-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mk-kpi {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--border);
}

.mk-kpi-label {
    font-family: var(--font-d);
    font-size: 0.5rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.mk-kpi-val {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
}

.mk-kpi-val.green { color: var(--forest); }
.mk-kpi-val.purple { color: #6366f1; }
.mk-kpi-val.amber { color: #d97706; }
.mk-kpi-val.blue { color: #2563eb; }

.mk-panels {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8px;
}

.mk-panel {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--border);
}

.mk-panel-title {
    font-family: var(--font-d);
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mk-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.mk-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    animation: growBar 1.2s ease-out;
}

.mk-bar-soft { background: var(--mint-50); }
.mk-bar-primary { background: var(--mint-700); }
.mk-bar-gradient { background: linear-gradient(to top, var(--mint-700), var(--gold)); }

.bg-forest { background: var(--mint-700) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-purple { background: #6366f1 !important; }
.bg-blue { background: #2563eb !important; }
.bg-amber { background: #d97706 !important; }
.bg-red { background: #ef4444 !important; }

.badge-soft-green { background: var(--mint-50); color: var(--mint-700); }
.badge-soft-amber { background: #fef3c7; color: #b45309; }
.badge-soft-purple { background: #e0e7ff; color: #6366f1; }


@keyframes growBar {
    from { height: 0 !important; }
}

.mk-list-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.mk-list-item:last-child { border: none; }
.mk-list-dot { width: 6px; height: 6px; border-radius: 50%; }
.mk-list-text { font-family: var(--font-d); font-size: 0.55rem; color: var(--text-2); }
.mk-list-badge { margin-left: auto; padding: 1px 5px; border-radius: var(--r-full); font-family: var(--font-d); font-size: 0.45rem; font-weight: 600; }

/* ── STATS ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: 0.25s var(--ease);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest);
}

.stat-num {
    font-family: var(--font-d);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-d);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
}

/* ── PROBLEMS / WHY ── */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    transition: 0.35s var(--ease);
    box-shadow: var(--shadow-sm);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mint-300);
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--ease);
}

.problem-icon:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.pi-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); color: #dc2626; }
.pi-amber { background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(217, 119, 6, 0.05)); color: #b45309; }
.pi-green { background: linear-gradient(135deg, rgba(11, 110, 79, 0.15), rgba(11, 110, 79, 0.05)); color: #0b6e4f; }

.problem-title {
    font-family: var(--font-d);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.problem-desc {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── FEATURES SHOWCASE ── */
.feat-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feat-showcase.reverse { direction: rtl; }
.feat-showcase.reverse>* { direction: ltr; }

.feat-label {
    font-family: var(--font-d);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.feat-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-2);
}

.feat-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--forest-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230b6e4f' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
}

.feat-btn { margin-top: 1.5rem; }

/* Feature mockup panels */
.feat-mock {
    background: #fff;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.feat-mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.feat-mock-bar .mockup-dots i { width: 7px; height: 7px; }
.feat-mock-body { padding: 16px; }

/* Student table mockup */
.mk-table {
    width: 100%;
    border-collapse: collapse;
}

.mk-table th {
    font-family: var(--font-d);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    padding: 6px 8px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}

.mk-table td {
    font-family: var(--font-d);
    font-size: 0.6rem;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.mk-table tr:hover td { background: var(--forest-soft); }

.mk-student-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mk-student-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: #fff;
}

.mk-badge { padding: 2px 6px; border-radius: var(--r-full); font-size: 0.45rem; font-weight: 600; }
.mk-badge-green { background: var(--forest-light); color: var(--forest); }
.mk-badge-amber { background: #fef3c7; color: #d97706; }
.mk-badge-blue { background: #dbeafe; color: #2563eb; }

/* Grade entry mockup */
.mk-grade-grid {
    display: grid;
    grid-template-columns: 1fr 60px 60px 60px 60px;
    gap: 1px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.mk-grade-cell {
    background: #fff;
    padding: 6px 8px;
    font-family: var(--font-d);
    font-size: 0.55rem;
}

.mk-grade-cell.header {
    background: var(--bg-cream);
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.5rem;
}

.mk-grade-cell.name { font-weight: 500; color: var(--text-1); }
.mk-grade-cell.val { text-align: center; font-weight: 600; }
.mk-grade-cell.val.high { color: var(--forest); }
.mk-grade-cell.val.mid { color: #d97706; }
.mk-grade-cell.val.low { color: #ef4444; }

/* Schedule mockup */
.mk-schedule {
    display: grid;
    grid-template-columns: 50px repeat(5, 1fr);
    gap: 2px;
}

.mk-sched-header {
    font-family: var(--font-d);
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-3);
    text-align: center;
    padding: 4px;
    background: var(--bg-cream);
    border-radius: 4px;
}

.mk-sched-time {
    font-family: var(--font-d);
    font-size: 0.45rem;
    color: var(--text-3);
    padding: 8px 4px;
    text-align: right;
}

.mk-sched-slot {
    border-radius: 4px;
    padding: 4px 5px;
    font-family: var(--font-d);
    font-size: 0.45rem;
    font-weight: 600;
    line-height: 1.3;
}

.mk-sched-slot.math { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.mk-sched-slot.fr { background: rgba(11, 110, 79, 0.1); color: var(--forest); }
.mk-sched-slot.sci { background: rgba(234, 179, 8, 0.1); color: #b45309; }
.mk-sched-slot.hist { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.mk-sched-slot.ang { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.mk-sched-slot.eps { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.mk-sched-slot.empty { background: #f9f9f9; }

/* ── Messaging mockup ── */
.mk-msg-wrap {
    display: flex;
    gap: 0;
    height: 220px;
    font-family: var(--font-d);
    font-size: 0.55rem;
}

.mk-msg-sidebar {
    width: 38%;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mk-msg-search { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mk-msg-search input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 0.45rem; font-family: var(--font-d); background: var(--bg-cream); outline: none; }
.mk-msg-contact { display: flex; align-items: center; gap: 6px; padding: 7px 8px; cursor: default; border-bottom: 1px solid rgba(0, 0, 0, 0.04); transition: background 0.15s; }
.mk-msg-contact.active { background: var(--forest-light); }
.mk-msg-avatar { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.45rem; color: #fff; flex-shrink: 0; }
.mk-msg-avatar.av-green { background: var(--forest); }
.mk-msg-avatar.av-blue { background: #2563eb; }
.mk-msg-avatar.av-amber { background: #d97706; }
.mk-msg-contact-info { flex: 1; min-width: 0; }
.mk-msg-contact-name { font-weight: 600; color: var(--text-1); font-size: 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-msg-contact-preview { color: var(--text-3); font-size: 0.42rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-msg-badge { width: 14px; height: 14px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 0.38rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-msg-chat { flex: 1; display: flex; flex-direction: column; }
.mk-msg-chat-header { padding: 6px 10px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-1); font-size: 0.5rem; }
.mk-msg-chat-body { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.mk-msg-bubble { max-width: 75%; padding: 5px 9px; border-radius: 10px; font-size: 0.45rem; line-height: 1.4; }
.mk-msg-bubble.received { background: var(--bg-cream); color: var(--text-2); align-self: flex-start; border-bottom-left-radius: 3px; }
.mk-msg-bubble.sent { background: var(--forest); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.mk-msg-time { font-size: 0.35rem; color: var(--text-3); text-align: center; margin: 2px 0; }
.mk-msg-input-row { display: flex; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--border); align-items: center; }
.mk-msg-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 14px; padding: 4px 10px; font-size: 0.42rem; font-family: var(--font-d); outline: none; }
.mk-msg-send-btn { width: 22px; height: 22px; border-radius: 50%; background: var(--forest); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mk-msg-send-btn svg { width: 10px; height: 10px; color: #fff; }

/* ── MODULES GRID ── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(12px);
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: var(--shadow-sm);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--gold));
    transform: scaleX(0);
    transition: 0.35s var(--ease);
    transform-origin: left;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.module-card:hover::before { transform: scaleX(1); }

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--ease);
}

.module-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.mi-green { background: linear-gradient(135deg, rgba(11, 110, 79, 0.2), rgba(11, 110, 79, 0.08)); color: #0b6e4f; }
.mi-purple { background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08)); color: #4f46e5; }
.mi-amber { background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.08)); color: #b45309; }
.mi-blue { background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.08)); color: #2563eb; }
.mi-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08)); color: #dc2626; }
.mi-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.08)); color: #db2777; }

.module-name { font-family: var(--font-d); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.module-desc { font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }

/* ── PORTALS ── */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.portal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: 0.25s var(--ease);
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--forest);
}

.portal-emoji {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--forest-soft), rgba(11, 110, 79, 0.05));
    color: var(--forest);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--ease);
}

.portal-emoji:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.portal-name { font-family: var(--font-d); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.35rem; }
.portal-desc { font-size: 0.95rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.75rem; }
.portal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.portal-tag { padding: 0.2rem 0.6rem; background: var(--forest-soft); border-radius: var(--r-full); font-family: var(--font-d); font-size: 0.7rem; font-weight: 500; color: var(--forest); }

/* ── HOW IT WORKS ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    counter-reset: step;
}

.step { text-align: center; position: relative; }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--forest), var(--forest-dark));
    color: #fff; font-family: var(--font-d); font-size: 1.25rem; font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(11, 110, 79, 0.25);
}

.step-title { font-family: var(--font-d); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.95rem; color: var(--text-2); max-width: 280px; margin: 0 auto; line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.testi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-quote { flex: 1; font-size: 1.05rem; font-style: italic; color: var(--text-1); line-height: 1.65; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--forest), var(--gold)); display: grid; place-items: center; color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 0.8rem; }
.testi-name { font-family: var(--font-d); font-size: 0.9rem; font-weight: 600; }
.testi-role { font-size: 0.8rem; color: var(--text-3); }

/* ── PRICING PREVIEW ── */
.pricing-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.pp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: 0.25s var(--ease);
    position: relative;
}

.pp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pp-card.pop { background: #fff; border-color: var(--forest); box-shadow: var(--shadow-lg); }

.pp-name { font-family: var(--font-d); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pp-price { font-family: var(--font-d); font-size: 2rem; font-weight: 700; color: var(--forest); margin-bottom: 0.25rem; }
.pp-price span { font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
.pp-sub { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1.25rem; }
.pp-feat { font-size: 0.85rem; color: var(--text-2); padding: 0.35rem 0; border-top: 1px solid var(--border); }
.pp-cta { display: block; margin-top: 1.25rem; padding: 0.7rem 1.25rem; border-radius: var(--r-full); font-family: var(--font-d); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: 0.2s var(--ease); }
.pp-cta-fill { background: var(--forest); color: #fff; }
.pp-cta-fill:hover { background: var(--forest-dark); }
.pp-cta-out { background: transparent; border: 1.5px solid var(--border-md); color: var(--text-1); }
.pp-cta-out:hover { border-color: var(--forest); color: var(--forest); }

/* ── FINAL CTA — see globals.css for canonical .final-cta styles ── */

@media(max-width:1024px) {
    .hero { padding-top: 7rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-social-proof { justify-content: center; }
    .hero-visual { order: 1; max-width: min(600px, 100%); margin: 3rem auto 0; }
    .mockup-wrap { transform: none; }
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-preview { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: repeat(3, 1fr); }
}

@media(max-width:768px) {
    .hero h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .problems-grid { grid-template-columns: 1fr; }
    .feat-showcase { grid-template-columns: 1fr; gap: 3rem; }
    .feat-showcase.reverse { direction: ltr; }
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
    .portals-grid { grid-template-columns: 1fr; }
    .portal-card { padding: 2rem; gap: 1.5rem; }
    .steps { grid-template-columns: 1fr; gap: 3.5rem; }
    .testi-grid { grid-template-columns: 1fr; }
    .pricing-preview { grid-template-columns: 1fr; }
    
    /* Mockup tablet/mobile overrides */
    .mockup-body { grid-template-columns: 1fr; }
    .mk-sidebar { display: none !important; }
    .mk-kpis { grid-template-columns: repeat(2, 1fr); }
    .mk-panels { grid-template-columns: 1fr; }
}

@media(max-width:480px) {
    .hero { padding-top: 7.5rem; padding-bottom: 9rem; padding-left: 5%; padding-right: 5%; }
    .hero h1 { font-size: 1.7rem; line-height: 1.15; margin-bottom: 1rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
    .stats-row { grid-template-columns: 1fr; }
    .modules-grid { grid-template-columns: 1fr; }
    .portal-card { flex-direction: column; text-align: center; }
    .portal-emoji { margin: 0 auto; }
    .portal-tags { justify-content: center; }
    .stat-num { font-size: 2.25rem; }
}

/* ── OFFLINE SECTION ── */
.offline-status-mock {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 320px;
}

.offline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.15);
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.sync-progress-mock {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.sync-bar {
    height: 4px;
    width: 60%;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.sync-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: syncSlide 2s infinite;
}

@keyframes syncSlide {
    from { transform: translateX(-100%) }
    to { transform: translateX(100%) }
}

.badge-new {
    background: var(--gold);
    color: var(--forest);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4px;
}

.badge-pop {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--mint-700), var(--gold));
    color: #fff;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-family: var(--font-d);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 2;
}

.pp-price-lg { font-size: 1.5rem !important; }
.mt-24 { margin-top: 1.5rem !important; }
.link-forest { font-family: var(--font-d); font-size: 0.85rem; color: var(--mint-700); font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.link-forest:hover { opacity: 0.8; }

.bg-grad-soft { background: linear-gradient(135deg, rgba(11, 110, 79, 0.04), rgba(183, 121, 31, 0.04)) !important; }
.bg-grad-up { background: linear-gradient(180deg, transparent, rgba(11, 110, 79, 0.03), transparent) !important; }

.feat-list-gold { --list-color: var(--gold) !important; }
.feat-mock-glass { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.1) !important; }
.feat-mock-bar-glass { background: rgba(255, 255, 255, 0.1) !important; }

.av-grad-green { background: linear-gradient(135deg, #0b6e4f, #28c840) !important; }
.av-grad-blue { background: linear-gradient(135deg, #6366f1, #818cf8) !important; }
.av-grad-amber { background: linear-gradient(135deg, #d97706, #fbbf24) !important; }
.av-grad-blue-alt { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }
.av-grad-pink { background: linear-gradient(135deg, #ec4899, #f472b6) !important; }

.mk-label-sm { font-family: var(--font-d); font-size: 0.6rem; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.border-glass { border-color: rgba(255,255,255,0.2) !important; }
.fs-1-1 { font-size: 1.1rem !important; }
.opacity-70 { opacity: 0.7 !important; }
.fs-xs { font-size: 0.7rem !important; }
.p-40 { padding: 40px !important; }


