:root {
    --blue: #2f80ed;
    --cyan: #54d2d2;
    --green: #31d07a;
    --orange: #ff9f43;
    --dark: #102a43;
    --muted: #6b7c93;
    --soft: #eefaf7;
    --white: #ffffff;
    --line: rgba(16, 42, 67, 0.1);
    --shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background: radial-gradient(circle at top right, rgba(84,210,210,.35), transparent 32%), linear-gradient(135deg, #f5fff9 0%, #edf7ff 100%);
    color: var(--dark);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.sidebar {
    position: fixed;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 260px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 30px;
    padding: 24px;
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: white; font-weight: 800;
}
.brand small { display:block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.brand-mark.brand-mark-logo {
    background: #ffffff;
    padding: 4px;
    overflow: hidden;
}

.brand-mark-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.nav-links { display: grid; gap: 10px; }
.nav-links a {
    padding: 13px 15px;
    border-radius: 16px;
    color: #456;
    font-weight: 700;
    transition: .2s;
}
.nav-links a:hover, .nav-links a.active {
    background: linear-gradient(135deg, rgba(47,128,237,.14), rgba(49,208,122,.16));
    color: var(--dark);
}
.sidebar-card {
    margin-top: auto;
    background: #102a43;
    color: white;
    border-radius: 22px;
    padding: 18px;
}
.sidebar-card p { margin: 0 0 8px; font-weight: 800; }
.sidebar-card span { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }
.main-content { margin-left: 310px; padding: 28px 34px 44px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 24px; }
.eyebrow { margin:0; color: var(--green); font-weight:800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin:4px 0 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.primary-btn, .ghost-btn {
    display: inline-flex; align-items:center; justify-content:center;
    border:0; border-radius: 999px; padding: 13px 20px;
    font-weight: 800; cursor:pointer; transition:.2s;
}
.primary-btn { background: linear-gradient(135deg, var(--blue), var(--green)); color:white; box-shadow: 0 14px 28px rgba(47,128,237,.22); }
.primary-btn:hover { transform: translateY(-2px); }
.primary-btn.full { width:100%; font-size: 15px; }
.ghost-btn { background: rgba(255,255,255,.78); color: var(--dark); border: 1px solid var(--line); }
.hero-card, .panel, .stat-card, .upload-panel, .result-panel {
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(255,255,255,.88);
    border-radius: 32px;
    box-shadow: var(--shadow);
}
.hero-card { display:grid; grid-template-columns: 1.3fr .7fr; min-height: 330px; overflow:hidden; margin-bottom: 22px; }
.hero-text { padding: 42px; }
.pill { display:inline-flex; padding: 9px 14px; border-radius:999px; background: rgba(255,159,67,.16); color:#b85d00; font-weight:800; font-size:13px; }
.hero-card h2 { font-size: clamp(34px, 5vw, 58px); line-height:.98; letter-spacing:-.06em; margin:20px 0; max-width:850px; }
.hero-card p { color: var(--muted); line-height:1.8; max-width:720px; }
.hero-actions { display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.hero-visual { position:relative; display:grid; place-items:center; background: linear-gradient(135deg, rgba(47,128,237,.12), rgba(49,208,122,.14)); }
.hand-shape { width: 170px; height:170px; border-radius: 52px; display:grid; place-items:center; font-size: 82px; background: white; box-shadow: var(--shadow); transform: rotate(-8deg); }
.floating-card { position:absolute; background:white; padding:14px 18px; border-radius: 18px; font-weight:800; box-shadow: 0 14px 34px rgba(16,42,67,.12); }
.floating-card.top { top:52px; right:36px; }
.floating-card.bottom { bottom:58px; left:32px; border-left: 5px solid var(--orange); }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin-bottom: 22px; }
.stat-card { padding:22px; }
.stat-card span { color:var(--muted); font-weight:700; font-size: 13px; }
.stat-card strong { display:block; font-size: 30px; letter-spacing:-.04em; margin:8px 0; }
.stat-card p { margin:0; color:var(--muted); font-size: 13px; line-height:1.5; }
.stat-card.accent { background: linear-gradient(135deg, rgba(255,159,67,.92), rgba(49,208,122,.82)); color:white; }
.stat-card.accent span, .stat-card.accent p { color: rgba(255,255,255,.86); }
.two-column, .translate-layout { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.panel, .upload-panel, .result-panel { padding:26px; }
.section-title { margin-bottom:20px; }
.section-title h3 { margin:0; font-size: 22px; letter-spacing:-.03em; }
.section-title p { margin:6px 0 0; color:var(--muted); line-height:1.6; }
.steps { display:grid; gap:12px; }
.steps div { display:flex; gap:14px; padding:16px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.55); }
.steps b { color:var(--blue); }
.history-list { display:grid; gap:12px; }
.history-item { display:flex; justify-content:space-between; gap:16px; padding:15px; border-radius:19px; background:rgba(238,250,247,.8); }
.history-item p { margin:5px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.history-item span, .confidence, .status { background:white; color:var(--green); border-radius:999px; padding:7px 10px; font-weight:800; font-size:12px; white-space: nowrap; }
.upload-form { display:grid; gap:18px; }
.drop-zone { min-height:280px; border:2px dashed rgba(47,128,237,.35); border-radius:28px; display:grid; place-items:center; text-align:center; padding:26px; background:linear-gradient(135deg, rgba(238,250,247,.72), rgba(237,247,255,.9)); cursor:pointer; }
.drop-zone strong { font-size:20px; }
.drop-zone small { display:block; color:var(--muted); margin-top:8px; }
.upload-icon { width:62px; height:62px; border-radius:22px; display:grid; place-items:center; background:white; color:var(--blue); font-size:34px; box-shadow: 0 12px 24px rgba(16,42,67,.08); margin-bottom:14px; }
.video-preview { width:100%; border-radius:24px; background:#0d1b2a; margin-bottom:18px; max-height: 330px; }
.result-card { background:#102a43; color:white; border-radius:26px; padding:22px; }
.result-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:16px; }
.result-meta span { background:rgba(255,255,255,.12); border-radius:999px; padding:8px 12px; font-size:12px; font-weight:800; }
.result-card h4 { margin:0 0 8px; font-size:22px; }
.result-card p { margin:0; line-height:1.8; color:rgba(255,255,255,.8); }
.empty-state { min-height: 390px; display:grid; place-items:center; text-align:center; padding:30px; border-radius:28px; background:rgba(238,250,247,.8); }
.empty-state div { font-size:58px; }
.empty-state h4 { margin:8px 0; font-size:24px; }
.empty-state p { color:var(--muted); max-width:340px; line-height:1.7; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; min-width:850px; }
th, td { text-align:left; padding:16px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-size:13px; }
.flow-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.flow-grid div { padding:18px; border-radius:22px; background:rgba(238,250,247,.8); }
.flow-grid p { color:var(--muted); line-height:1.6; margin-bottom:0; }
.roadmap { display:grid; gap:12px; padding-left:20px; color:var(--muted); line-height:1.7; }
.alerts { margin-bottom: 16px; }
.alert { padding: 13px 16px; border-radius: 16px; font-weight: 700; }
.alert.success { background: rgba(49,208,122,.16); color: #137d45; }
.alert.error { background: rgba(255,159,67,.18); color: #a44b00; }
.mobile-topbar {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.camera-caption {
    display: none;
}

.sidebar-close-btn {
    display: none;
}

@media (max-width: 980px) {
    /* Topbar mobile: sticky, cuma logo + tombol hamburger */
    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(14, 63, 79, 0.08);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #0e3f4f;
    }

    .mobile-brand .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .mobile-brand strong {
        font-size: 16px;
        letter-spacing: -0.02em;
    }

    .hamburger-btn {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(14, 63, 79, 0.12);
        border-radius: 14px;
        background: #ffffff;
        color: #0e3f4f;
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Sidebar jadi drawer: nempel di kiri, geser masuk saat dibuka */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(300px, 84vw);
        margin: 0;
        border-radius: 0;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: grid;
        place-items: center;
        align-self: flex-end;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: #f2f7f6;
        color: #0e3f4f;
        font-size: 16px;
        cursor: pointer;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 150;
        background: rgba(10, 30, 38, 0.5);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.is-open {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .main-content { margin-left:0; padding:16px; }
    .hero-card, .two-column, .translate-layout, .stats-grid, .flow-grid { grid-template-columns:1fr; }
    .topbar { align-items:flex-start; gap:14px; flex-direction:column; }
    .topbar .primary-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .main-content { padding: 12px; }
    .hero-text, .panel, .upload-panel, .result-panel { padding: 20px; }
    .kamus-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================= */
/* Edukasi SIBI Page */
/* ============================= */

.education-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    margin-bottom: 24px;
}

.education-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(12, 92, 122, 0.12);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(16, 68, 88, 0.08);
    backdrop-filter: blur(14px);
}

.main-education-card {
    background:
        radial-gradient(circle at top left, rgba(49, 214, 184, 0.24), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 143, 69, 0.18), transparent 30%),
        rgba(255, 255, 255, 0.82);
}

.education-card h2,
.education-card h3 {
    margin: 12px 0 10px;
    color: #0201cc;
}

.education-card p {
    color: #52717c;
    line-height: 1.7;
}

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

.icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dffcf4, #dff2ff);
    color: #087f8c;
    font-size: 26px;
    margin-bottom: 16px;
}

.tag-orange,
.tag-blue,
.tag-green {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.tag-orange {
    background: #fff0e4;
    color: #d96b1f;
}

.tag-blue {
    background: #e5f6ff;
    color: #0877a8;
}

.tag-green {
    background: #e4fbef;
    color: #147d4f;
}

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.pretty-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.pretty-list li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 14px;
    color: #43636f;
    line-height: 1.6;
}

.pretty-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #dbfff3;
    color: #087f5b;
    font-size: 13px;
    font-weight: 800;
}

.process-section {
    margin-top: 28px;
}

.section-title {
    margin-bottom: 18px;
}

.process-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: stretch;
}

.process-item {
    background: #ffffff;
    border: 1px solid rgba(12, 92, 122, 0.12);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 35px rgba(16, 68, 88, 0.06);
}

.process-item span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: #103f4a;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 12px;
}

.process-item h4 {
    margin: 0 0 8px;
    color: #0201cc;
}

.process-item p {
    margin: 0;
    color: #607985;
    line-height: 1.5;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8f45;
    font-size: 28px;
    font-weight: 800;
}

.dashboard-education {
    margin-top: 28px;
}

.education-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(33, 209, 178, 0.14), rgba(56, 189, 248, 0.14)),
        #ffffff;
    border: 1px solid rgba(12, 92, 122, 0.12);
    box-shadow: 0 20px 45px rgba(16, 68, 88, 0.08);
}

.education-preview-card h2 {
    margin: 8px 0;
    color: #0201cc;
}

.education-preview-card p {
    color: #52717c;
    line-height: 1.6;
    max-width: 720px;
}

@media (max-width: 1100px) {
    .education-hero,
    .two-column-section {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-flow {
        grid-template-columns: 1fr;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .education-preview-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .education-card {
        padding: 22px;
    }
}
/* ============================= */
/* Translate Page Camera Upgrade */
/* ============================= */

.translate-hero {
    padding: 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 145, 77, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    margin-bottom: 24px;
}

.translate-hero h2 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
    color: var(--deep-teal, #0e3f4f);
    margin: 8px 0 14px;
}

.translate-hero p {
    color: var(--text-muted, #5e7780);
    line-height: 1.7;
    max-width: 760px;
}

.translate-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.mode-card {
    text-align: left;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 18px 38px rgba(30, 86, 105, 0.07);
    cursor: pointer;
    transition: 0.25s ease;
    color: #0e3f4f;
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 46px rgba(30, 86, 105, 0.11);
}

.mode-card.active {
    background:
        linear-gradient(135deg, rgba(22, 199, 183, 0.18), rgba(83, 199, 245, 0.16)),
        rgba(255, 255, 255, 0.88);
    border-color: rgba(22, 199, 183, 0.38);
}

.mode-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dffcf4, #e2f5ff);
    color: #0f8f82;
    font-size: 28px;
    margin-bottom: 16px;
}

.mode-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.mode-card p {
    color: var(--text-muted, #5e7780);
    line-height: 1.6;
}

.mode-panel {
    display: none;
}

.mode-panel.active {
    display: block;
}

.camera-layout,
.realtime-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.camera-card,
.record-result-card,
.live-translation-card,
.preview-card,
.result-card,
.upload-card {
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    backdrop-filter: blur(18px);
}

.camera-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.camera-header h2,
.record-result-card h2,
.live-translation-card h2 {
    color: var(--deep-teal, #0e3f4f);
    margin: 8px 0 10px;
}

.camera-header p,
.record-result-card p {
    color: var(--text-muted, #5e7780);
    line-height: 1.7;
}

.camera-badge,
.live-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    background: #fff0e4;
    color: #d96b1f;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.live-pill {
    background: #e8fff7;
    color: #0f8f82;
}

.live-pill span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #16c7b7;
    box-shadow: 0 0 0 6px rgba(22, 199, 183, 0.14);
}

.camera-frame {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(14, 63, 79, 0.92), rgba(13, 111, 120, 0.88));
    display: grid;
    place-items: center;
}

.camera-frame video {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    display: block;
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.26), transparent 40%),
        linear-gradient(135deg, #0e3f4f, #0b6974);
}

.camera-placeholder i {
    font-size: 62px;
    color: #ffb072;
    margin-bottom: 10px;
}

.camera-placeholder p {
    font-weight: 800;
}

.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.secondary-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    padding: 13px 18px;
    cursor: pointer;
    transition: 0.25s ease;
}

.secondary-btn {
    background: #ffffff;
    color: #0e3f4f;
    border: 1px solid rgba(14, 63, 79, 0.12);
}

.danger-btn {
    background: #fff0ec;
    color: #d4472f;
}

.secondary-btn:hover,
.danger-btn:hover {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

#recordedVideo {
    width: 100%;
    border-radius: 24px;
    margin-top: 18px;
    display: none;
    background: #0e3f4f;
}

.dummy-output {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: #eafff8;
    color: #0e3f4f;
    font-weight: 700;
    line-height: 1.6;
}

.dummy-output i {
    color: #0f8f82;
    font-size: 24px;
}

.translation-box {
    min-height: 170px;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, #0e3f4f, #0b6974);
    color: white;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
    margin: 20px 0;
    display: flex;
    align-items: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.feedback-card {
    margin-top: 18px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(22, 199, 183, 0.14), transparent 46%),
        radial-gradient(circle at bottom left, rgba(255, 143, 69, 0.10), transparent 50%),
        #ffffff;
    border: 1px solid rgba(14, 63, 79, 0.08);
    box-shadow: 0 20px 44px rgba(30, 86, 105, 0.10);
    animation: softPop 0.4s ease both;
}

.feedback-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.feedback-header-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffb36b, #ff8f45);
    color: white;
    font-size: 21px;
    box-shadow: 0 12px 22px rgba(255, 143, 69, 0.30);
}

.feedback-header h4 {
    margin: 2px 0 6px;
    color: #0e3f4f;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.feedback-question {
    margin: 0;
    color: #5e7780;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.65;
}

.feedback-question strong {
    color: #d4472f;
}

.feedback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 20px;
    background: #f7fffc;
    border: 1px dashed rgba(15, 143, 130, 0.22);
}

.feedback-chip {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #16c7b7, #0f8f82);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 12px 22px rgba(15, 143, 130, 0.28);
    transition: 0.25s ease;
    animation: softPop 0.3s ease both;
}

.feedback-chip:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 30px rgba(15, 143, 130, 0.36);
}

.feedback-chip.is-space {
    width: 36px;
    background: #e6f1f0;
    color: #93a8ae;
    font-size: 15px;
    box-shadow: none;
}

.feedback-chip-remove {
    position: absolute;
    top: -9px;
    right: -9px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    background: #ff5a52;
    color: white;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(255, 90, 82, 0.40);
    transition: 0.2s ease;
}

.feedback-chip-remove:hover {
    background: #d4472f;
    transform: scale(1.18);
}

.feedback-actions {
    display: flex;
    gap: 10px;
}

.feedback-actions .primary-btn {
    padding: 12px 22px;
    font-size: 14px;
}

.feedback-status {
    margin: 14px 0 0;
    color: #0f8f82;
    font-weight: 800;
    font-size: 13.5px;
    min-height: 18px;
}

.translation-notes {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.translation-notes div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #496a75;
    font-weight: 700;
}

.translation-notes i {
    color: #ff914d;
    font-size: 22px;
}

.file-drop-area {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 230px;
    border: 2px dashed rgba(14, 63, 79, 0.18);
    border-radius: 28px;
    background: #f7fffc;
    cursor: pointer;
    padding: 24px;
    transition: 0.25s ease;
}

.file-drop-area:hover {
    border-color: rgba(22, 199, 183, 0.55);
    background: #edfff9;
}

.file-drop-area i {
    font-size: 54px;
    color: #0f8f82;
    margin-bottom: 12px;
}

.file-drop-area span {
    color: #0e3f4f;
    font-weight: 800;
    margin-bottom: 6px;
}

.file-drop-area small {
    color: #6b858e;
}

.upload-form input[type="file"] {
    display: none;
}

.upload-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.preview-card {
    margin-top: 24px;
}

.preview-card video {
    width: 100%;
    border-radius: 24px;
    margin-top: 12px;
}

.result-card {
    margin-top: 24px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.result-header h2 {
    color: #0e3f4f;
    line-height: 1.3;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    color: #5e7780;
    font-weight: 700;
}

.result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

@media (max-width: 1100px) {
    .translate-options,
    .camera-layout,
    .realtime-layout {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* Cleaner Translation Result */
/* ============================= */

.result-card {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 145, 77, 0.18), transparent 32%),
        linear-gradient(135deg, #f3fffb, #eef9ff);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 24px 55px rgba(30, 86, 105, 0.10);
}

.result-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -48px;
    top: -48px;
    border-radius: 999px;
    background: rgba(255, 145, 77, 0.20);
}

.result-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.result-header h2 {
    max-width: 820px;
    color: #0e3f4f;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.04em;
    margin-top: 12px;
}

.status-pill {
    min-width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff0e4;
    color: #d96b1f;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(255, 145, 77, 0.16);
}

.result-meta {
    display: none;
}
/* ============================= */
/* User-centered Landing Page */
/* ============================= */

.hero-showcase {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 199, 183, 0.24), transparent 34%),
        radial-gradient(circle at 90% 80%, rgba(255, 145, 77, 0.20), transparent 30%),
        rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 26px 60px rgba(30, 86, 105, 0.10);
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #e9fff8;
    color: #0f8f82;
    font-weight: 800;
    font-size: 13px;
}

.hero-copy h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: var(--deep-teal, #0e3f4f);
    margin: 18px 0;
}

.hero-copy p {
    max-width: 660px;
    color: var(--text-muted, #5e7780);
    line-height: 1.8;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 13px 20px;
    background: #ffffff;
    color: var(--deep-teal, #0e3f4f);
    font-weight: 800;
    border: 1px solid rgba(14, 63, 79, 0.12);
    box-shadow: 0 12px 28px rgba(30, 86, 105, 0.07);
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.phone-mockup {
    width: 265px;
    min-height: 395px;
    border-radius: 38px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #eafff8);
    border: 8px solid #103f4a;
    box-shadow:
        0 30px 60px rgba(14, 63, 79, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.mockup-top {
    width: 74px;
    height: 8px;
    border-radius: 999px;
    background: #103f4a;
    margin: 0 auto 18px;
}

.mockup-video {
    height: 145px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(22, 199, 183, 0.16), rgba(83, 199, 245, 0.16));
    color: #0e7d89;
    font-size: 54px;
    margin-bottom: 18px;
}

.mockup-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.mockup-lines span {
    height: 10px;
    border-radius: 999px;
    background: #d9f6f2;
}

.mockup-lines span:nth-child(2) {
    width: 78%;
}

.mockup-lines span:nth-child(3) {
    width: 58%;
}

.mockup-translate {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 22px;
    background: #103f4a;
    color: white;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.mockup-translate i {
    color: #ffb072;
    font-size: 22px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 18px 36px rgba(30, 86, 105, 0.12);
    font-weight: 800;
    color: var(--deep-teal, #0e3f4f);
}

.floating-card i {
    font-size: 24px;
    color: var(--fresh-teal, #16c7b7);
}

.card-one {
    top: 70px;
    left: 20px;
}

.card-two {
    right: 10px;
    bottom: 70px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    color: var(--deep-teal, #0e3f4f);
    margin: 8px 0 12px;
}

.section-heading p {
    max-width: 820px;
    color: var(--text-muted, #5e7780);
    line-height: 1.7;
}

.small-heading {
    margin-bottom: 18px;
}

.landing-education {
    margin-top: 28px;
}

.education-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.edu-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(22, 199, 183, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 20px 45px rgba(30, 86, 105, 0.08);
    backdrop-filter: blur(16px);
}

.edu-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -48px;
    bottom: -48px;
    border-radius: 999px;
    background: rgba(255, 145, 77, 0.12);
}

.edu-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dffcf4, #e2f5ff);
    color: #0f8f82;
    font-size: 28px;
    margin-bottom: 18px;
    transition: 0.25s ease;
}

.edu-icon.icon-teal { background: linear-gradient(135deg, #dffcf4, #baf3e6); color: #0f8f82; }
.edu-icon.icon-orange { background: linear-gradient(135deg, #ffe6cf, #ffcd9e); color: #d9711b; }
.edu-icon.icon-blue { background: linear-gradient(135deg, #dceeff, #b7dcff); color: #1c68c9; }

.edu-card h3 {
    color: var(--deep-teal, #0e3f4f);
    font-size: 22px;
    margin-bottom: 10px;
}

.edu-card p {
    color: var(--text-muted, #5e7780);
    line-height: 1.7;
}

.how-to-use {
    margin-top: 28px;
}

.how-to-card {
    padding: 30px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(22, 199, 183, 0.12), rgba(83, 199, 245, 0.12)),
        rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    backdrop-filter: blur(18px);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.step-item {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(14, 63, 79, 0.08);
    transition: 0.25s ease;
}

.step-item span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: #0e3f4f;
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-num.num-teal { background: linear-gradient(135deg, #16c7b7, #0f8f82); }
.step-num.num-orange { background: linear-gradient(135deg, #ffb36b, #ff8f45); }
.step-num.num-blue { background: linear-gradient(135deg, #6ab6ff, #2f80ed); }

.step-arrow {
    display: grid;
    place-items: center;
    color: #93a8ae;
    font-size: 22px;
}

.step-item h3 {
    color: var(--deep-teal, #0e3f4f);
    margin-bottom: 8px;
}

.step-item p {
    color: var(--text-muted, #5e7780);
    line-height: 1.6;
}

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

    .step-arrow {
        transform: rotate(90deg);
        margin: -4px auto;
    }
}

.video-tips-section {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
    align-items: center;
    padding: 30px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 145, 77, 0.18), transparent 34%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
}

.tips-content h2 {
    color: var(--deep-teal, #0e3f4f);
    font-size: clamp(26px, 4vw, 38px);
    margin: 8px 0 12px;
}

.tips-content p {
    color: var(--text-muted, #5e7780);
    line-height: 1.7;
}

.tips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tip-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #0e3f4f;
    font-weight: 800;
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 12px 26px rgba(30, 86, 105, 0.06);
}

.tip-pill i {
    color: #ff914d;
    font-size: 20px;
}

.cta-section {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, #0e3f4f, #0b6974);
    color: white;
    box-shadow: 0 24px 55px rgba(14, 63, 79, 0.22);
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 8px 0 10px;
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 720px;
    line-height: 1.7;
}

.cta-section .eyebrow {
    color: #91fff0;
}

@media (max-width: 1000px) {
    .hero-showcase,
    .education-strip,
    .steps-grid,
    .video-tips-section,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .hero-showcase {
        padding: 24px;
    }

    .phone-mockup {
        width: 230px;
    }

    .floating-card {
        position: static;
        margin: 8px;
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
    }
}
/* ============================= */
/* UI Refinement Patch */
/* ============================= */

/* 1. Logo/sidebar spacing */
.brand {
    gap: 16px;
    padding: 6px 4px 18px;
}

.brand-mark {
    flex-shrink: 0;
}

.brand span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand strong {
    line-height: 1.1;
}

.brand small {
    line-height: 1.3;
}

/* 2. Navigation spacing */
.nav-links a {
    gap: 14px;
}

.nav-links a i {
    width: 22px;
    min-width: 22px;
    text-align: center;
}

/* 3. Make all main CTA buttons soft orange */
.primary-btn,
.btn-primary {
    background: linear-gradient(135deg, #ffb36b, #ff8f45) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(255, 143, 69, 0.28) !important;
    gap: 12px;
}

.primary-btn i,
.btn-primary i {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.primary-btn:hover,
.btn-primary:hover {
    box-shadow: 0 20px 40px rgba(255, 143, 69, 0.34) !important;
}

/* 4. Softer secondary button */
.ghost-btn {
    gap: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #0e3f4f;
}

.ghost-btn i {
    font-size: 19px;
    flex-shrink: 0;
}

/* 5. Floating cards on hero mockup: softer, less opaque */
.floating-card {
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(14, 63, 79, 0.08);
    box-shadow: 0 14px 28px rgba(30, 86, 105, 0.08);
    color: #0e3f4f;
    opacity: 0.88;
}

.floating-card i {
    color: #12b8aa;
}

.card-one {
    top: 82px;
    left: 36px;
}

.card-two {
    right: 28px;
    bottom: 82px;
}

/* 6. Make hero visual less boxed */
.hero-visual {
    border-radius: 30px;
}

.phone-mockup {
    box-shadow:
        0 26px 54px rgba(14, 63, 79, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* 7. Upload button in topbar better spacing */
.topbar .primary-btn {
    padding-inline: 22px;
    min-height: 54px;
}

/* 8. CTA button in dark section */
.cta-section .primary-btn {
    min-width: 240px;
    justify-content: center;
}

/* 9. About page card spacing */
.info-card + .info-card,
.about-card + .about-card,
.project-card + .project-card,
.roadmap-card,
.roadmap-section {
    margin-top: 28px;
}

/* If your about sections are generic cards */
.main-content > section + section {
    margin-top: 28px;
}

/* 10. Make sidebar card softer but still elegant */
.sidebar-card {
    background:
        radial-gradient(circle at top right, rgba(255, 179, 107, 0.28), transparent 38%),
        linear-gradient(135deg, #0e3f4f, #0b6671);
}

.sidebar-card .mini-icon {
    margin-bottom: 4px;
}

/* 11. Fix icon-text crowding globally inside buttons */
button i,
a i {
    vertical-align: middle;
}

/* 12. Optional: make orange icons consistent */
.tip-pill i,
.mockup-translate i,
.translation-notes i {
    color: #ff8f45;
}
.why-section {
    margin-top: 28px;
}
/* ============================= */
/* About Page User Friendly */
/* ============================= */

.about-hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 143, 69, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    margin-bottom: 28px;
}

.about-hero-card h2 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.05em;
    color: #0e3f4f;
    margin: 10px 0 14px;
    max-width: 780px;
}

.about-hero-card p {
    color: #5e7780;
    line-height: 1.8;
    max-width: 820px;
}

.about-hero-icon {
    width: 130px;
    height: 130px;
    border-radius: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffb36b, #ff8f45);
    color: white;
    font-size: 68px;
    box-shadow: 0 22px 45px rgba(255, 143, 69, 0.28);
    flex-shrink: 0;
}

.about-section-card {
    padding: 32px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    backdrop-filter: blur(18px);
    margin-top: 28px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.about-mini-card {
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(22, 199, 183, 0.14), transparent 36%),
        #f7fffc;
    border: 1px solid rgba(14, 63, 79, 0.08);
}

.about-mini-card h3 {
    color: #0e3f4f;
    margin: 14px 0 8px;
}

.about-mini-card p {
    color: #5e7780;
    line-height: 1.7;
}

.future-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.future-list div {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #f7fffc;
    border: 1px solid rgba(14, 63, 79, 0.08);
    color: #0e3f4f;
    font-weight: 700;
}

.future-list i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff0e4;
    color: #ff8f45;
    font-size: 22px;
    flex-shrink: 0;
}

@media (max-width: 1000px) {
    .about-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* Benefit List for About Page */
/* ============================= */

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.benefit-list div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 143, 69, 0.12), transparent 36%),
        #f7fffc;
    border: 1px solid rgba(14, 63, 79, 0.08);
}

.benefit-list i {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff0e4;
    color: #ff8f45;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-list span {
    color: #5e7780;
    line-height: 1.7;
}

.benefit-list strong {
    display: block;
    color: #0e3f4f;
    font-size: 18px;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .benefit-list {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* SDG 4 Section (About Page) */
/* ============================= */

.sdg-section {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(22, 199, 183, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 143, 130, 0.16);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    margin-top: 28px;
}

.sdg-section-icon {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    padding: 10px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 143, 130, 0.20);
    border: 1px solid rgba(15, 143, 130, 0.14);
}

.sdg-section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
}

.sdg-section-copy h2 {
    font-family: var(--font-heading);
    color: #0e3f4f;
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 8px 0 12px;
}

.sdg-section-copy > p {
    color: #5e7780;
    line-height: 1.75;
    max-width: 780px;
    margin-bottom: 20px;
}

.sdg-point-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.sdg-point-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f0fdfa;
    border: 1px solid rgba(15, 143, 130, 0.14);
}

.sdg-point-list i {
    flex-shrink: 0;
    color: #0f8f82;
    font-size: 20px;
    margin-top: 1px;
}

.sdg-point-list span {
    color: #34535c;
    font-weight: 600;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 900px) {
    .sdg-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .sdg-point-list {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* Smooth Animation Upgrade */
/* ============================= */

/* 1. Animasi masuk halaman */
.main-content {
    animation: pageFadeIn 0.7s ease both;
}

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


/* 2. Hero card muncul lebih hidup */
.hero-showcase,
.about-hero-card,
.translate-hero {
    animation: softPop 0.8s ease both;
}

@keyframes softPop {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* 3. Floating card Gesture & Text Output bergerak pelan */
.floating-card {
    animation: floatingCard 3.8s ease-in-out infinite;
}

.card-two {
    animation-delay: 0.8s;
}

@keyframes floatingCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* 4. Phone mockup bergerak super halus */
.phone-mockup {
    animation: phoneFloat 4.5s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-0.5deg);
    }
}


/* 5. Background orb bergerak pelan */
.bg-orb {
    animation: orbMove 8s ease-in-out infinite alternate;
}

.orb-two {
    animation-delay: 1.2s;
}

.orb-three {
    animation-delay: 2s;
}

@keyframes orbMove {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(18px, -14px) scale(1.08);
    }
}


/* 6. Tombol lebih hidup saat hover */
.primary-btn,
.ghost-btn,
.secondary-btn,
.danger-btn {
    transition: 0.25s ease;
}

.primary-btn:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
    transform: translateY(-3px);
}


/* 7. Card naik dikit saat hover */
.edu-card,
.about-mini-card,
.step-item,
.benefit-list div,
.mode-card {
    transition: 0.25s ease;
}

.edu-card:hover,
.about-mini-card:hover,
.step-item:hover,
.benefit-list div:hover,
.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(30, 86, 105, 0.12);
}


/* 8. Icon dalam card sedikit bergerak */
.edu-icon,
.mode-icon,
.about-hero-icon,
.mini-icon {
    transition: 0.25s ease;
}

.edu-card:hover .edu-icon,
.about-mini-card:hover .edu-icon,
.mode-card:hover .mode-icon {
    transform: rotate(-4deg) scale(1.05);
}


/* 9. Live badge / indicator pulse */
.live-pill span {
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 199, 183, 0.35);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(22, 199, 183, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 199, 183, 0);
    }
}


/* 10. Agar user yang sensitif animasi tetap nyaman */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ============================= */
/* Special Landing Hero */
/* ============================= */

.special-hero {
    position: relative;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 143, 69, 0.20), transparent 26%),
        radial-gradient(circle at 76% 30%, rgba(22, 199, 183, 0.24), transparent 34%),
        radial-gradient(circle at 90% 88%, rgba(83, 199, 245, 0.22), transparent 30%),
        rgba(255, 255, 255, 0.72);
}

.special-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 28px;
    border: 1px solid rgba(14, 63, 79, 0.08);
    pointer-events: none;
}

.special-hero .hero-copy {
    position: relative;
    z-index: 2;
}

.special-hero .hero-copy h2 {
    font-size: clamp(46px, 6.4vw, 92px);
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.colorful-text {
    display: inline-block;
    background:
        radial-gradient(circle at 10% 20%, #ffcf3f 0 12%, transparent 13%),
        radial-gradient(circle at 25% 75%, #ec7ab7 0 14%, transparent 15%),
        radial-gradient(circle at 48% 36%, #21bf73 0 16%, transparent 17%),
        radial-gradient(circle at 70% 82%, #2563eb 0 14%, transparent 15%),
        radial-gradient(circle at 86% 24%, #ff5a4f 0 14%, transparent 15%),
        linear-gradient(135deg, #0e3f4f, #0e3f4f);
    background-size: 170% 170%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textPatternMove 6s ease-in-out infinite alternate;
}

@keyframes textPatternMove {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

.translation-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.stage-card {
    position: relative;
    min-height: 330px;
    border-radius: 34px;
    padding: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 24px 55px rgba(30, 86, 105, 0.12);
    backdrop-filter: blur(18px);
}

.video-stage {
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 199, 183, 0.24), transparent 32%),
        linear-gradient(135deg, #f4fffb, #e9f8ff);
}

.text-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 143, 69, 0.20), transparent 32%),
        linear-gradient(135deg, #0e3f4f, #0a6b73);
    color: white;
}

.stage-top {
    display: flex;
    gap: 8px;
}

.stage-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(14, 63, 79, 0.22);
}

.sign-person {
    position: absolute;
    width: 170px;
    height: 210px;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
}

.person-head {
    position: absolute;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffcfb3;
    left: 54px;
    top: 8px;
    box-shadow: inset -8px -8px 0 rgba(14, 63, 79, 0.10);
}

.person-body {
    position: absolute;
    width: 100px;
    height: 110px;
    border-radius: 42px 42px 28px 28px;
    background: linear-gradient(135deg, #0e3f4f, #0b6974);
    left: 35px;
    top: 78px;
}

.person-arm {
    position: absolute;
    width: 84px;
    height: 22px;
    border-radius: 999px;
    background: #ffcfb3;
    top: 112px;
    transform-origin: right center;
}

.left-arm {
    left: -10px;
    transform: rotate(-34deg);
    animation: leftSign 2.4s ease-in-out infinite;
}

.right-arm {
    right: -10px;
    transform-origin: left center;
    transform: rotate(34deg);
    animation: rightSign 2.4s ease-in-out infinite;
}

@keyframes leftSign {
    0%, 100% {
        transform: rotate(-34deg) translateY(0);
    }
    50% {
        transform: rotate(-12deg) translateY(-8px);
    }
}

@keyframes rightSign {
    0%, 100% {
        transform: rotate(34deg) translateY(0);
    }
    50% {
        transform: rotate(12deg) translateY(-8px);
    }
}

.gesture-chip {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #0e3f4f;
    font-weight: 800;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 26px rgba(30, 86, 105, 0.10);
}

.gesture-chip i {
    color: #10b9aa;
    font-size: 22px;
}

.flow-arrow {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffb36b, #ff8f45);
    color: white;
    font-size: 28px;
    box-shadow: 0 18px 34px rgba(255, 143, 69, 0.28);
    animation: arrowPulse 1.8s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(6px) scale(1.04);
    }
}

.text-icon {
    width: 66px;
    height: 66px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffb36b;
    font-size: 34px;
    margin-bottom: 20px;
}

.typing-label {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    margin-bottom: 10px;
}

.text-stage h3 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: white;
}

.mini-wave {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.mini-wave span {
    width: 38px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    animation: waveMove 1.2s ease-in-out infinite;
}

.mini-wave span:nth-child(2) {
    animation-delay: 0.2s;
}

.mini-wave span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes waveMove {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1.8);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .special-hero {
        grid-template-columns: 1fr;
    }

    .translation-stage {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
}
/* ============================= */
/* Impact Cards for Kenali SIBI */
/* ============================= */

.impact-strip {
    margin-top: 26px;
}

.impact-card {
    position: relative;
    min-height: 275px;
    padding: 30px;
    isolation: isolate;
}

.impact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(255, 143, 69, 0.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(22, 199, 183, 0.14), transparent 36%);
    opacity: 0;
    transition: 0.25s ease;
    z-index: -1;
}

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

.impact-number {
    position: absolute;
    right: 24px;
    top: 16px;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.08em;
    color: rgba(14, 63, 79, 0.07);
    transition: 0.25s ease;
}

.impact-card:hover .impact-number {
    color: rgba(255, 143, 69, 0.20);
    transform: translateY(-4px);
}

.impact-card .edu-icon {
    margin-bottom: 22px;
}

.impact-card h3 {
    max-width: 260px;
    font-size: 24px;
    line-height: 1.15;
}

.impact-card p {
    margin-top: 12px;
    max-width: 340px;
}

@media (max-width: 1000px) {
    .impact-card {
        min-height: auto;
    }

    .impact-number {
        font-size: 52px;
    }
}
/* ============================= */
/* Hero Section - More Compact */
/* ============================= */

.special-hero {
    min-height: 460px;
    padding: 26px 30px;
    gap: 22px;
    align-items: center;
}

.special-hero::before {
    inset: 12px;
}

.special-hero .hero-copy h2 {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    margin: 14px 0 14px;
    max-width: 620px;
}

.special-hero .hero-copy p {
    font-size: 15px;
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 0;
}

.hero-badge {
    padding: 8px 13px;
    font-size: 12px;
    margin-bottom: 6px;
}

.hero-actions {
    margin-top: 18px;
    gap: 10px;
}

.hero-actions .primary-btn,
.hero-actions .ghost-btn {
    padding: 13px 20px;
    min-height: 50px;
    font-size: 15px;
}

.translation-stage {
    grid-template-columns: 0.9fr auto 0.9fr;
    gap: 14px;
    align-items: center;
}

.stage-card {
    min-height: 250px;
    padding: 18px;
    border-radius: 28px;
}

.video-stage {
    min-height: 260px;
}

.text-stage {
    min-height: 260px;
    padding: 22px;
}

.flow-arrow {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.sign-person {
    width: 140px;
    height: 175px;
    top: 52%;
}

.person-head {
    width: 50px;
    height: 50px;
    left: 45px;
    top: 8px;
}

.person-body {
    width: 82px;
    height: 92px;
    left: 29px;
    top: 66px;
}

.person-arm {
    width: 68px;
    height: 18px;
    top: 95px;
}

.gesture-chip {
    left: 16px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 14px;
}

.gesture-chip i {
    font-size: 18px;
}

.text-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 28px;
    margin-bottom: 16px;
}

.typing-label {
    font-size: 11px;
    margin-bottom: 8px;
}

.text-stage h3 {
    font-size: 22px;
    line-height: 1.22;
    max-width: 210px;
}

.mini-wave {
    margin-top: 18px;
}

.mini-wave span {
    width: 30px;
    height: 6px;
}

@media (max-width: 1200px) {
    .special-hero .hero-copy h2 {
        font-size: clamp(32px, 4.6vw, 60px);
    }

    .stage-card {
        min-height: 230px;
    }

    .text-stage h3 {
        font-size: 20px;
    }
}

@media (max-width: 1100px) {
    .special-hero {
        min-height: auto;
        padding: 24px;
    }

    .translation-stage {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }
}
/* ============================= */
/* Final Hero Refinement */
/* ============================= */

.special-hero {
    min-height: calc(100vh - 190px);
    max-height: 620px;
    padding: 32px 34px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 34px;
    overflow: hidden;
}

.special-hero .hero-copy {
    max-width: 620px;
    align-self: center;
}

.special-hero .hero-badge {
    margin-bottom: 14px;
}

.special-hero .hero-copy h2 {
    font-size: clamp(44px, 5.4vw, 82px);
    line-height: 0.9;
    letter-spacing: -0.075em;
    margin: 0 0 18px;
    max-width: 610px;
}

.special-hero .hero-copy p {
    max-width: 560px;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
}

.special-hero .hero-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.special-hero .hero-actions .primary-btn,
.special-hero .hero-actions .ghost-btn {
    min-height: 50px;
    padding: 12px 20px;
    font-size: 15px;
}


/* Right visual area */
.translation-stage {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) 54px minmax(210px, 1fr);
    align-items: center;
    gap: 14px;
    transform: translateY(4px);
}

.stage-card {
    min-height: 285px;
    border-radius: 30px;
}

.video-stage {
    min-height: 290px;
    padding: 20px;
}

.text-stage {
    min-height: 290px;
    padding: 24px;
}

.stage-top {
    gap: 7px;
}

.stage-top span {
    width: 9px;
    height: 9px;
}


/* Person illustration compact */
.sign-person {
    width: 145px;
    height: 178px;
    top: 52%;
}

.person-head {
    width: 52px;
    height: 52px;
    left: 46px;
    top: 8px;
}

.person-body {
    width: 86px;
    height: 92px;
    left: 30px;
    top: 68px;
}

.person-arm {
    width: 70px;
    height: 18px;
    top: 98px;
}

.gesture-chip {
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    font-size: 14px;
}

.gesture-chip i {
    font-size: 19px;
}


/* Arrow */
.flow-arrow {
    width: 52px;
    height: 52px;
    font-size: 24px;
    justify-self: center;
}


/* Text result card */
.text-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 28px;
    margin-bottom: 18px;
}

.typing-label {
    font-size: 11px;
    margin-bottom: 10px;
}

.text-stage h3 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.18;
    max-width: 250px;
}

.mini-wave {
    margin-top: 22px;
}

.mini-wave span {
    width: 32px;
    height: 7px;
}


/* Make colorful word still readable */
.colorful-text {
    padding-right: 4px;
}


/* Laptop screen adjustment */
@media (max-width: 1366px) {
    .special-hero {
        min-height: calc(100vh - 170px);
        padding: 28px 30px;
        gap: 26px;
    }

    .special-hero .hero-copy h2 {
        font-size: clamp(40px, 5vw, 72px);
        line-height: 0.9;
        max-width: 560px;
    }

    .special-hero .hero-copy p {
        max-width: 520px;
        font-size: 15px;
    }

    .translation-stage {
        grid-template-columns: minmax(170px, 0.88fr) 50px minmax(190px, 0.95fr);
        gap: 12px;
    }

    .stage-card {
        min-height: 260px;
    }

    .video-stage,
    .text-stage {
        min-height: 265px;
    }

    .sign-person {
        transform: translate(-50%, -50%) scale(0.92);
    }

    .text-stage h3 {
        font-size: 24px;
    }
}


/* Smaller laptop / browser zoom */
@media (max-width: 1180px) {
    .special-hero {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: auto;
    }

    .translation-stage {
        grid-template-columns: 1fr;
        transform: none;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .video-stage,
    .text-stage {
        min-height: 240px;
    }
}
/* Make topbar more compact */
.topbar {
    padding: 18px 24px;
    margin-bottom: 22px;
}

.topbar h1 {
    font-size: clamp(30px, 3vw, 42px);
}

.topbar .primary-btn {
    min-height: 48px;
    padding: 11px 20px;
}
/* ============================= */
/* Sidebar + Brand + Font Refresh */
/* ============================= */

:root {
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

/* Global font */
body {
    font-family: var(--font-body);
}

/* Page title atas */
.topbar h1 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #17364d;
    margin: 4px 0 0;
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero title tetap keren tapi lebih lembut */
.special-hero .hero-copy h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.07em;
}

/* Sidebar */
.sidebar {
    padding: 26px 22px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.08);
    box-shadow: 0 18px 42px rgba(30, 86, 105, 0.08);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 26px;
    padding: 8px 4px 12px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #69c8ff, #2ed39d);
    color: white;
    font-size: 24px;
    box-shadow: 0 12px 24px rgba(46, 211, 157, 0.22);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #17364d;
    line-height: 1.05;
}

.brand-text small {
    font-size: 13px;
    color: #6b8392;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation kiri */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #325164;
    font-weight: 700;
    transition: 0.25s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a i {
    width: 20px;
    min-width: 20px;
    text-align: center;
    font-size: 18px;
    color: #587180;
    transition: 0.25s ease;
}

.nav-links a:hover {
    background: rgba(234, 255, 248, 0.9);
    border-color: rgba(22, 199, 183, 0.14);
    color: #0f3f53;
    transform: translateX(2px);
}

.nav-links a:hover i {
    color: #14b7a8;
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(233, 255, 248, 1), rgba(224, 247, 255, 0.95));
    color: #103e52;
    border-color: rgba(22, 199, 183, 0.18);
    box-shadow: 0 10px 22px rgba(22, 199, 183, 0.08);
}

.nav-links a.active i {
    color: #13b7aa;
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2ed39d, #69c8ff);
}

/* Sidebar bottom card */
.sidebar-card {
    margin-top: 18px;
    padding: 20px 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 177, 102, 0.16), transparent 35%),
        linear-gradient(160deg, #114b63, #0a6a75);
    color: white;
    box-shadow: 0 18px 32px rgba(14, 63, 79, 0.14);
}

.sidebar-card .mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #ffd29a;
    margin-bottom: 12px;
}

.sidebar-card p {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: white;
    letter-spacing: -0.03em;
}

/* Tips list */
.tips-list-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.tips-list-mini li {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.tips-list-mini li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffb36b;
    box-shadow: 0 0 0 4px rgba(255, 179, 107, 0.14);
}

/* Sedikit rapihin hero paragraph & tombol */
.special-hero .hero-copy p {
    font-family: var(--font-body);
    color: #5f7685;
}

.hero-actions .primary-btn,
.hero-actions .ghost-btn,
.topbar .primary-btn {
    font-family: var(--font-body);
    font-weight: 800;
}

/* Biar brand dan nav lebih enak di layar kecil */
@media (max-width: 1180px) {
    .brand-text strong {
        font-size: 22px;
    }

    .brand-text small {
        font-size: 12px;
    }

    .nav-links a {
        padding: 12px 14px;
    }

    .sidebar-card {
        padding: 18px 16px;
    }
}
/* ============================= */
/* FIX: Compact Landing + Sidebar */
/* ============================= */

/* Hilangkan horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Sidebar brand jangan terlalu besar */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 22px;
}

.brand-text strong {
    font-size: 21px;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.brand-text small {
    font-size: 12px;
    max-width: 120px;
    line-height: 1.35;
}

/* Sidebar menu lebih compact */
.nav-links {
    gap: 8px;
}

.nav-links a {
    padding: 13px 15px;
    border-radius: 17px;
    font-size: 15px;
}

/* Tips card tetap bagus tapi tidak terlalu besar */
.sidebar-card {
    padding: 18px;
    border-radius: 24px;
}

.sidebar-card p {
    font-size: 19px;
}

.tips-list-mini li {
    font-size: 13.5px;
}


/* Topbar lebih pendek */
.topbar {
    padding: 16px 22px;
    margin-bottom: 18px;
}

.topbar h1 {
    font-size: clamp(28px, 2.4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.topbar .eyebrow {
    font-size: 12px;
}

.topbar .primary-btn {
    min-height: 48px;
    padding: 11px 20px;
}


/* Hero dibuat muat 1 layar */
.special-hero {
    min-height: 540px;
    max-height: 560px;
    padding: 28px 32px;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 28px;
    overflow: hidden;
}

/* Judul hero dikecilkan agar tombol terlihat */
.special-hero .hero-copy h2 {
    font-size: clamp(42px, 4.8vw, 72px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    margin: 12px 0 18px;
    max-width: 590px;
}

/* Paragraf lebih ringkas */
.special-hero .hero-copy p {
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.65;
}

/* Tombol naik dan lebih compact */
.special-hero .hero-actions {
    margin-top: 18px;
    gap: 12px;
}

.special-hero .hero-actions .primary-btn,
.special-hero .hero-actions .ghost-btn {
    min-height: 48px;
    padding: 12px 19px;
    font-size: 14.5px;
}

/* Badge lebih kecil */
.special-hero .hero-badge {
    padding: 8px 13px;
    font-size: 12px;
}


/* Ilustrasi kanan dikecilkan */
.translation-stage {
    grid-template-columns: 0.85fr 48px 0.92fr;
    gap: 12px;
    align-items: center;
    transform: scale(0.92);
    transform-origin: center right;
}

.stage-card {
    min-height: 255px;
    border-radius: 28px;
}

.video-stage,
.text-stage {
    min-height: 260px;
    padding: 20px;
}

.sign-person {
    transform: translate(-50%, -50%) scale(0.88);
}

.flow-arrow {
    width: 48px;
    height: 48px;
    font-size: 23px;
}

.gesture-chip {
    padding: 10px 13px;
    font-size: 13.5px;
}

.text-icon {
    width: 54px;
    height: 54px;
    font-size: 26px;
    margin-bottom: 16px;
}

.text-stage h3 {
    font-size: 23px;
    line-height: 1.18;
    max-width: 220px;
}

.mini-wave {
    margin-top: 18px;
}


/* Section setelah hero jangan terlalu nempel */
.landing-education {
    margin-top: 34px;
}


/* Untuk layar laptop kecil */
@media (max-width: 1366px) {
    .special-hero {
        min-height: 500px;
        max-height: 520px;
        padding: 24px 28px;
    }

    .special-hero .hero-copy h2 {
        font-size: clamp(38px, 4.5vw, 64px);
        max-width: 540px;
    }

    .special-hero .hero-copy p {
        font-size: 14px;
        max-width: 500px;
    }

    .translation-stage {
        transform: scale(0.86);
        transform-origin: center right;
    }

    .stage-card {
        min-height: 245px;
    }

    .video-stage,
    .text-stage {
        min-height: 250px;
    }
}
.special-hero {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 30px 34px 34px !important;
    grid-template-columns: 0.95fr 1.05fr !important;
    align-items: center !important;
    gap: 30px !important;
    overflow: visible !important;
}

/* biar isi tidak keluar dari card */
.special-hero .hero-copy {
    max-width: 620px !important;
    position: relative;
    z-index: 2;
}

/* judul dikecilkan sedikit tapi tetap bold */
.special-hero .hero-copy h2 {
    font-size: clamp(36px, 4.45vw, 66px) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.07em !important;
    margin: 12px 0 18px !important;
    max-width: 600px !important;
}

/* paragraf tetap terbaca */
.special-hero .hero-copy p {
    max-width: 540px !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* tombol jangan ketimpa bawah */
.special-hero .hero-actions {
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    position: relative;
    z-index: 5;
}

.special-hero .hero-actions .primary-btn,
.special-hero .hero-actions .ghost-btn {
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: 14.5px !important;
}

/* visual kanan jangan terlalu besar */
.translation-stage {
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(180px, 0.85fr) 48px minmax(190px, 0.95fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* kartu visual kanan lebih compact */
.stage-card {
    min-height: 250px !important;
    border-radius: 28px !important;
}

.video-stage,
.text-stage {
    min-height: 255px !important;
    padding: 20px !important;
}

/* ilustrasi orang dikecilkan */
.sign-person {
    width: 135px !important;
    height: 170px !important;
    top: 52% !important;
    transform: translate(-50%, -50%) scale(0.88) !important;
}

.person-head {
    width: 50px !important;
    height: 50px !important;
    left: 44px !important;
    top: 8px !important;
}

.person-body {
    width: 82px !important;
    height: 90px !important;
    left: 28px !important;
    top: 66px !important;
}

.person-arm {
    width: 68px !important;
    height: 18px !important;
    top: 96px !important;
}

/* chip gesture */
.gesture-chip {
    left: 16px !important;
    bottom: 16px !important;
    padding: 10px 13px !important;
    font-size: 13px !important;
}

/* panah */
.flow-arrow {
    width: 48px !important;
    height: 48px !important;
    font-size: 23px !important;
}

/* kartu hasil translate */
.text-icon {
    width: 52px !important;
    height: 52px !important;
    font-size: 25px !important;
    margin-bottom: 15px !important;
}

.text-stage h3 {
    font-size: 22px !important;
    line-height: 1.18 !important;
    max-width: 220px !important;
}

.typing-label {
    font-size: 10.5px !important;
}

.mini-wave {
    margin-top: 18px !important;
}

/* kasih jarak section setelah hero */
.landing-education {
    margin-top: 42px !important;
}

/* hilangkan horizontal scroll */
html,
body {
    overflow-x: hidden !important;
}

/* layar laptop kecil */
@media (max-width: 1366px) {
    .special-hero {
        padding: 26px 30px 32px !important;
        gap: 24px !important;
    }

    .special-hero .hero-copy h2 {
        font-size: clamp(34px, 4.15vw, 58px) !important;
        max-width: 540px !important;
    }

    .translation-stage {
        grid-template-columns: minmax(160px, 0.8fr) 44px minmax(170px, 0.9fr) !important;
    }

    .stage-card {
        min-height: 235px !important;
    }

    .video-stage,
    .text-stage {
        min-height: 240px !important;
    }

    .text-stage h3 {
        font-size: 20px !important;
    }
}

/* kalau layar makin sempit, visual turun ke bawah */
@media (max-width: 1100px) {
    .special-hero {
        grid-template-columns: 1fr !important;
    }

    .translation-stage {
        grid-template-columns: 1fr !important;
    }

    .flow-arrow {
        transform: rotate(90deg) !important;
        margin: 0 auto !important;
    }
}
.live-transcript {
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.live-transcript p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
}

.live-transcript ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.live-transcript li {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}
/* ============================= */
/* Kamus Abjad Page */
/* ============================= */

.kamus-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 143, 69, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(14, 63, 79, 0.10);
    box-shadow: 0 22px 50px rgba(30, 86, 105, 0.08);
    margin-bottom: 28px;
}

.kamus-hero-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #0e3f4f;
    margin: 8px 0 14px;
}

.kamus-hero-copy p {
    color: #5e7780;
    line-height: 1.7;
    max-width: 640px;
}

.kamus-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(14, 63, 79, 0.12);
    box-shadow: 0 14px 30px rgba(30, 86, 105, 0.08);
    min-width: 240px;
}

.kamus-search i {
    color: #0f8f82;
    font-size: 20px;
    flex-shrink: 0;
}

.kamus-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0e3f4f;
    width: 100%;
    text-transform: uppercase;
}

.kamus-search input::placeholder {
    color: #93a8ae;
    text-transform: none;
    font-weight: 600;
}

.kamus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.kamus-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid rgba(14, 63, 79, 0.10);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(22, 199, 183, 0.10), transparent 46%),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 34px rgba(30, 86, 105, 0.07);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font: inherit;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.kamus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(22, 199, 183, 0), rgba(22, 199, 183, 0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}

.kamus-card:hover,
.kamus-card:focus-visible {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 30px 54px rgba(15, 143, 130, 0.20);
    border-color: rgba(22, 199, 183, 0.45);
    outline: none;
}

.kamus-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(22, 199, 183, 0.9), rgba(255, 143, 69, 0.7));
}

.kamus-letter-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #16c7b7, #0f8f82);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 22px rgba(15, 143, 130, 0.38);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kamus-card:hover .kamus-letter-badge {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 14px 26px rgba(15, 143, 130, 0.48);
}

.kamus-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.16), transparent 45%),
        radial-gradient(circle at bottom right, rgba(255, 143, 69, 0.10), transparent 50%),
        #f4fbfa;
    box-shadow: inset 0 0 0 1px rgba(14, 63, 79, 0.06);
    display: grid;
    place-items: center;
}

.kamus-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(14, 63, 79, 0.16));
    transition: 0.4s cubic-bezier(.2,.8,.2,1);
}

.kamus-card:hover .kamus-card-img img {
    transform: scale(1.1);
}

.kamus-card-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding: 0 4px;
    color: #0e3f4f;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.kamus-card-caption i {
    color: #93a8ae;
    font-size: 17px;
    transition: 0.25s ease;
}

.kamus-card:hover .kamus-card-caption i {
    color: #16c7b7;
    transform: scale(1.2) rotate(8deg);
}

.kamus-card.is-hidden {
    display: none;
}

.kamus-empty {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(14, 63, 79, 0.18);
    color: #5e7780;
    font-weight: 700;
    margin-bottom: 26px;
}

.kamus-empty.is-visible {
    display: flex;
}

.kamus-empty i {
    font-size: 22px;
    color: #ff8f45;
}

.kamus-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 28px;
    background: #fff4e8;
    border: 1px solid rgba(255, 143, 69, 0.18);
}

.kamus-note-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #ff8f45;
    font-size: 24px;
    flex-shrink: 0;
}

.kamus-note h3 {
    color: #0e3f4f;
    margin-bottom: 6px;
}

.kamus-note p {
    color: #5e7780;
    line-height: 1.7;
}

/* Modal */
.kamus-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.kamus-modal.is-open {
    display: flex;
}

.kamus-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 38, 0.62);
    backdrop-filter: blur(6px);
}

.kamus-modal-content {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 26px;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 36px 70px rgba(10, 30, 38, 0.35);
    text-align: center;
    animation: kamusModalPop 0.25s ease both;
}

@keyframes kamusModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kamus-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #0e3f4f;
    color: #ffffff;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(14, 63, 79, 0.35);
    transition: 0.2s ease;
}

.kamus-modal-close:hover {
    background: #d4472f;
    transform: scale(1.08);
}

.kamus-modal-content img {
    width: 78%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 24px;
    margin: 8px auto 18px;
    display: block;
    padding: 18px;
    filter: drop-shadow(0 14px 22px rgba(14, 63, 79, 0.18));
    background:
        radial-gradient(circle at top left, rgba(22, 199, 183, 0.16), transparent 45%),
        radial-gradient(circle at bottom right, rgba(255, 143, 69, 0.10), transparent 50%),
        #f4fbfa;
    box-shadow: inset 0 0 0 1px rgba(14, 63, 79, 0.06);
}

.kamus-modal-letter {
    display: inline-flex;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16c7b7, #0f8f82);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}

@media (max-width: 720px) {
    .kamus-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .kamus-search {
        width: 100%;
    }
}

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

.mode-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mode-card h3,
.mode-card p {
    max-width: 360px;
}

.realtime-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.camera-card,
.live-translation-card {
    height: 100%;
}

@media (max-width: 900px) {
    .translate-options,
    .realtime-layout {
        grid-template-columns: 1fr;
    }
}
/* ============================= */
/* Dashboard Polish */
/* ============================= */

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    position: relative;
    z-index: 5;
}

.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 63, 79, 0.10);
    color: #0e3f4f;
    font-weight: 800;
    font-size: 12.5px;
    box-shadow: 0 10px 20px rgba(30, 86, 105, 0.06);
}

.hero-stat i {
    color: #16c7b7;
    font-size: 16px;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 8px;
    }
}
/* ============================= */
/* Phone Polish Pass (375-480px) */
/* ============================= */

@media (max-width: 600px) {
    /* #1: header kamera jangan mepet — badge "Kamera aktif" turun ke bawah */
    .camera-header {
        flex-wrap: wrap;
    }

    .camera-header .live-pill {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    /* #2: padding kartu-kartu besar dikurangi biar konten nggak kejepit */
    .translate-hero,
    .camera-card,
    .live-translation-card,
    .kamus-hero,
    .about-hero-card,
    .about-section-card,
    .sdg-section,
    .cta-section,
    .education-card {
        padding: 20px !important;
    }

    /* #3: teks live output disesuaikan biar muat & tetap enak dibaca */
    .translation-box {
        font-size: 19px !important;
        padding: 16px 18px !important;
    }

    /* #4: heading hero dashboard jangan terlalu besar di layar kecil */
    .special-hero .hero-copy h2 {
        font-size: clamp(28px, 8vw, 40px) !important;
    }

    /* #6/#7: ikon besar di halaman About dikecilin dikit */
    .about-hero-icon {
        width: 84px !important;
        height: 84px !important;
        font-size: 42px !important;
    }

    .sdg-section-icon {
        width: 80px !important;
        height: 80px !important;
    }

    /* #9: modal kamus — kurangi padding chrome biar gambar lebih lega */
    .kamus-modal-content {
        padding: 18px;
    }

    .kamus-modal {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    /* Kotak kamera: pakai aspect-ratio, bukan tinggi tetap 390px.
       Sebelumnya "min-height: 390px" dari .camera-frame (base rule, di
       bawah file ini) selalu menang walau ada override mobile duluan,
       makanya kotaknya kepanjangan/kezoom banget di HP. */
    .camera-frame {
        min-height: 0 !important;
        height: 42vh;
        max-height: 380px;
        aspect-ratio: auto;
    }

    .camera-frame video {
        min-height: 0 !important;
        height: 100%;
    }

    /* Caption hasil translate nempel di atas video — kelihatan tanpa scroll */
    .camera-caption {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 2;
        display: none;
        padding: 10px 16px;
        border-radius: 16px;
        background: rgba(14, 63, 79, 0.78);
        backdrop-filter: blur(8px);
        color: #ffffff;
        font-weight: 800;
        font-size: 16px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .camera-caption.is-visible {
        display: block;
    }
}

/* HP posisi miring (landscape): kamera dapat framing lebih lebar,
   pas buat isyarat tangan yang butuh ruang gerak horizontal. */
@media (max-width: 900px) and (orientation: landscape) {
    .camera-frame {
        height: 60vh;
        max-height: none;
        aspect-ratio: 16 / 9;
    }
}
