/* =====================================================
   SkillSynergy Certificate Generator — Light Premium UI
   ===================================================== */

:root {
    --bg-primary: #f4f8fc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(19, 122, 181, 0.12);
    --border: rgba(17, 24, 39, 0.1);
    --border-hover: rgba(19, 122, 181, 0.3);

    --gold: #f2b544;
    --gold-light: #ffd879;
    --gold-dark: #d4921b;
    --blue: #1688bf;
    --blue-dark: #0f4b85;
    --blue-soft: #e8f5fc;
    --sky: #53a8df;
    --ink: #14324a;

    --text-primary: #17324b;
    --text-secondary: #3c546b;
    --text-muted: #6f8091;

    --input-bg: #ffffff;
    --input-border: rgba(22, 136, 191, 0.18);

    --success: #1f9d63;
    --error: #d94b4b;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --radius-xl: 36px;

    --shadow-card: 0 30px 80px rgba(18, 51, 77, 0.12);
    --shadow-soft: 0 14px 36px rgba(20, 50, 74, 0.08);
    --shadow-blue: 0 18px 40px rgba(22, 136, 191, 0.16);

    --container: 1240px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(83, 168, 223, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fbfe 0%, #eef6fb 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; }

.ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(55px);
    opacity: 0.55;
}

.blob-1 {
    width: 340px;
    height: 340px;
    background: rgba(83, 168, 223, 0.2);
    top: 100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(242, 181, 68, 0.14);
    left: -120px;
    top: 420px;
}

.blob-3 {
    width: 360px;
    height: 360px;
    background: rgba(19, 122, 181, 0.12);
    bottom: -120px;
    right: 20%;
}

.topbar {
    position: relative;
    z-index: 5;
    background: linear-gradient(90deg, #1688bf, #1b92c9);
    color: #ffffff;
}

.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-info,
.topbar-social {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.topbar-item,
.social-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.topbar-item svg,
.social-dot svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.social-dot {
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
}

.social-dot:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.2); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(20, 50, 74, 0.08);
    box-shadow: 0 8px 28px rgba(20, 50, 74, 0.04);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(19,122,181,0.15);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-logo {
    display: inline-flex;
    align-items: center;
}

.logo-icon {
    width: 150px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blue);
}

.logo-sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.nav-link-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    box-shadow: var(--shadow-blue);
}

.nav-link-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
}

.hero {
    position: relative;
    z-index: 1;
    padding: 2.75rem 1.5rem 1.25rem;
}

.hero-shell {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 1.75rem;
    align-items: stretch;
}

.hero-panel,
.form-card,
.success-card,
.step-card,
.verify-card,
.trust-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.88));
    border: 1px solid rgba(19, 122, 181, 0.09);
    box-shadow: var(--shadow-card);
}

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 2.8rem;
    overflow: hidden;
    position: relative;
    min-height: 100%;
}

.hero-panel::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -130px;
    top: 50%;
    transform: translateY(-50%);
    border: 26px solid rgba(22, 136, 191, 0.14);
}

.hero-panel::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    left: -18px;
    bottom: -18px;
    background: radial-gradient(circle, rgba(242,181,68,0.22), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(83, 168, 223, 0.12);
    color: #4475df;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4475df;
}

.hero-title {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--blue-dark);
    margin-bottom: 1.15rem;
}

.title-accent { color: var(--blue); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 1.75rem;
}

.hero-copy {
    font-size: 1.04rem;
    color: var(--text-secondary);
    max-width: 630px;
    margin-bottom: 2rem;
}

.hero-copy strong { color: var(--blue-dark); }

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-cta,
.hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 0.95rem 1.4rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    transition: var(--transition);
}

.hero-cta {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.hero-secondary {
    background: #fff;
    color: var(--blue-dark);
    border: 1px solid rgba(19, 122, 181, 0.16);
}

.hero-cta:hover,
.hero-secondary:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.stat-item {
    background: rgba(232, 245, 252, 0.72);
    border: 1px solid rgba(19, 122, 181, 0.09);
    border-radius: 18px;
    padding: 1rem 1rem 0.95rem;
}

.stat-num {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider { display: none; }
.desktop-br { display: block; }

.main-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.form-card,
.success-card,
.verify-card {
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.form-card::before,
.success-card::before,
.verify-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--blue), var(--gold-light));
}

.form-card-header {
    margin-bottom: 1.65rem;
}

.form-eyebrow,
.section-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.55rem;
}

.form-title,
.success-title,
.verify-title,
.hiw-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--blue-dark);
}

.form-desc,
.success-subtitle,
.verify-sub,
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.45rem;
}

.alert-box {
    display: none;
    margin-bottom: 1.1rem;
    border-radius: 16px;
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.alert-box.alert-error {
    display: block;
    background: rgba(217, 75, 75, 0.08);
    color: #b93333;
    border: 1px solid rgba(217, 75, 75, 0.18);
}

.field-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field-full { margin-bottom: 1.15rem; }

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.field-icon {
    width: 15px;
    height: 15px;
    color: var(--blue);
    flex-shrink: 0;
}

.input-wrap { position: relative; }

.form-input,
.verify-input,
.login-field input,
input[type="date"] {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    padding: 0.95rem 1.1rem;
    color: var(--text-primary);
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition);
}

.form-input::placeholder,
.verify-input::placeholder,
.login-field input::placeholder { color: #96a7b5; }

.form-input:hover,
.verify-input:hover,
.login-field input:hover,
input[type="date"]:hover { border-color: rgba(19, 122, 181, 0.3); }

.form-input:focus,
.verify-input:focus,
.login-field input:focus,
input[type="date"]:focus {
    border-color: rgba(19, 122, 181, 0.55);
    box-shadow: 0 0 0 4px rgba(22, 136, 191, 0.1);
}

.form-input.input-valid { border-color: rgba(31, 157, 99, 0.45); }

.form-input.input-error-state {
    border-color: rgba(217, 75, 75, 0.45);
    box-shadow: 0 0 0 4px rgba(217, 75, 75, 0.08);
}

.input-error {
    display: block;
    min-height: 1rem;
    margin-top: 0.35rem;
    padding-left: 0.15rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c43c3c;
}

.course-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.suggestion-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.chip {
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(19, 122, 181, 0.12);
    border-radius: 999px;
    background: rgba(232, 245, 252, 0.8);
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}

.chip:hover { transform: translateY(-1px); background: #fff; border-color: rgba(19, 122, 181, 0.25); }

.submit-btn,
.verify-btn,
.login-btn,
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-blue);
    transition: var(--transition);
}

.submit-btn,
.login-btn { width: 100%; min-height: 56px; padding: 1rem 1.4rem; font-size: 1rem; }

.verify-btn,
.search-btn { min-height: 54px; padding: 0.95rem 1.3rem; font-size: 0.96rem; }

.submit-btn:hover,
.verify-btn:hover,
.login-btn:hover,
.search-btn:hover { transform: translateY(-2px); }

.submit-btn.loading { pointer-events: none; opacity: 0.9; }

.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loading { display: flex; }

.btn-icon { width: 18px; height: 18px; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.success-card { text-align: left; }

.success-animation {
    width: 88px;
    height: 88px;
    margin-bottom: 1rem;
    position: relative;
}

.success-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(31, 157, 99, 0.18);
    animation: ringExpand 1.8s ease infinite;
}

.ring-outer { inset: -8px; }
.ring-inner { animation-delay: 0.35s; }

@keyframes ringExpand {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.12); opacity: 0; }
}

.success-checkmark svg { width: 88px; height: 88px; }
.check-path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck 0.6s ease 0.15s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.cert-detail-card {
    background: rgba(244, 248, 252, 0.95);
    border: 1px solid rgba(19, 122, 181, 0.08);
    border-radius: 24px;
    padding: 1.2rem 1.25rem;
    margin: 1.5rem 0;
}

.cert-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(20, 50, 74, 0.08);
}

.cert-detail-row:last-child { border-bottom: none; }

.detail-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.detail-value {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.cert-code-badge {
    display: inline-block;
    padding: 0.42rem 0.7rem;
    border-radius: 12px;
    background: rgba(22, 136, 191, 0.08);
    border: 1px solid rgba(22, 136, 191, 0.16);
    color: var(--blue-dark);
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
}

.cert-preview-wrap,
.cert-img-preview {
    margin-bottom: 1.4rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(19, 122, 181, 0.12);
    background: #ffffff;
}

.cert-preview-img,
.cert-img-preview img {
    width: 100%;
    display: block;
}

.success-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.action-btn,
.verify-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    font-size: 0.94rem;
    font-weight: 800;
    transition: var(--transition);
}

.action-btn svg,
.verify-download svg { width: 16px; height: 16px; flex-shrink: 0; }

.action-btn-primary,
.verify-download {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.action-btn-secondary {
    background: rgba(232, 245, 252, 0.92);
    color: var(--blue-dark);
    border: 1px solid rgba(19, 122, 181, 0.14);
}

.action-btn-ghost {
    background: #ffffff;
    color: var(--text-secondary);
    border: 1px solid rgba(20, 50, 74, 0.1);
}

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

.trust-strip,
.how-it-works,
.verify-main {
    position: relative;
    z-index: 1;
}

.trust-strip {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}

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

.trust-card {
    border-radius: 26px;
    padding: 1.35rem 1.4rem;
}

.trust-kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.35rem;
}

.trust-title {
    font-size: 1.06rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 0.25rem;
}

.trust-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.how-it-works {
    padding: 2.25rem 1.5rem 4rem;
}

.hiw-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.step-card {
    border-radius: 30px;
    padding: 1.8rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(22, 136, 191, 0.1);
    color: var(--blue-dark);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 0.45rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.step-arrow { display: none; }

.verify-page { min-height: 100vh; display: flex; flex-direction: column; }

.verify-main {
    flex: 1;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem 4rem;
}

.verify-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 1.4rem;
    align-items: start;
}

.verify-side {
    background: linear-gradient(180deg, #ffffff, #f4f9fc);
    border: 1px solid rgba(19, 122, 181, 0.09);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.verify-side h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--blue-dark);
    margin-bottom: 0.9rem;
}

.verify-side p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.verify-points {
    display: grid;
    gap: 0.8rem;
}

.verify-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(232, 245, 252, 0.72);
    border: 1px solid rgba(19, 122, 181, 0.08);
}

.verify-point svg {
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.verify-point strong {
    display: block;
    color: var(--blue-dark);
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.verify-point span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.verify-form {
    display: flex;
    gap: 0.75rem;
    margin: 1.35rem 0 1.5rem;
}

.cert-result {
    border: 1px solid rgba(19, 122, 181, 0.1);
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(244, 248, 252, 0.82);
}

.result-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.status-valid {
    color: var(--success);
    font-size: 1.05rem;
    font-weight: 800;
}

.status-invalid {
    color: var(--error);
    font-size: 1.05rem;
    font-weight: 800;
}

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

.result-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.result-item p {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(20, 50, 74, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-dark);
}

.footer-brand .logo-icon {
    width: 78px;
    height: 38px;
}

.footer-copy,
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a:hover,
.back-link:hover { color: var(--blue); }

@media (max-width: 1080px) {
    .hero-shell,
    .verify-layout { grid-template-columns: 1fr; }

    .hero-panel::before { right: -160px; top: 120px; transform: none; }
    .trust-grid,
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .topbar-inner,
    .nav-inner,
    .footer-inner,
    .hero,
    .main-content,
    .trust-strip,
    .how-it-works,
    .verify-main { padding-left: 1rem; padding-right: 1rem; }

    .topbar-inner { justify-content: center; }
    .topbar-social { display: none; }

    .nav-inner { flex-wrap: wrap; align-items: center; gap: 0; }
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0 1rem;
        border-top: 1px solid rgba(19,122,181,0.1);
        margin-top: 0.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.92rem; }
    .nav-link-btn { text-align: center; justify-content: center; margin-top: 0.25rem; }

    .hero-panel,
    .form-card,
    .success-card,
    .verify-card,
    .verify-side { padding: 1.45rem; border-radius: 24px; }

    .hero-badge { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
    .hero-title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.9rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.2rem; }
    .hero-copy { font-size: 0.92rem; margin-bottom: 1.5rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
    .hero-cta,
    .hero-secondary { width: 100%; min-width: 0; padding: 0.85rem 1.2rem; font-size: 0.95rem; }

    .hero-stats,
    .field-group,
    .result-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    .stat-item { padding: 0.85rem; }
    .stat-num { font-size: 1.35rem; }
    .stat-label { font-size: 0.75rem; }

    .form-card-header { margin-bottom: 1.25rem; }
    .form-title { font-size: 1.5rem; }
    .form-desc { font-size: 0.9rem; }
    .field-label { font-size: 0.88rem; }
    .form-input { padding: 0.85rem 1rem; font-size: 0.92rem; }
    .course-suggestions { gap: 0.5rem; }
    .chip { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
    .submit-btn { padding: 0.95rem; font-size: 0.95rem; }

    .verify-form,
    .success-actions { flex-direction: column; }
    .action-btn,
    .verify-download { width: 100%; }

    .cert-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .detail-label { font-size: 0.8rem; }
    .detail-value { text-align: left; font-size: 0.92rem; }
    .trust-card,
    .step-card { padding: 1.25rem; }
    .trust-title,
    .step-title { font-size: 1.15rem; }
    .desktop-br { display: none; }
}

@media (max-width: 460px) {
    .logo-text { font-size: 1.1rem; }
    .hero-title { font-size: 1.3rem; }
    .form-title,
    .success-title,
    .verify-title,
    .hiw-title { font-size: 1.4rem; }
    .topbar-item { font-size: 0.84rem; }
    .cert-code-badge { font-size: 0.72rem; word-break: break-all; }
    .hero-panel,
    .form-card,
    .success-card { padding: 1.1rem; }
    .nav-link { padding: 0.5rem 0.7rem; font-size: 0.82rem; }
}
