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

:root {
    --blue:       #1a56ff;
    --blue-mid:   #4f75ff;
    --blue-light: #e8edff;
    --cyan:       #00d4ff;
    --dark:       #0d1117;
    --text:       #1a1f2e;
    --muted:      #6b7280;
    --white:      #ffffff;
    --off:        #f5f7ff;
    --border:     #e2e6f0;
    --red:        #ef4444;
    --red-light:  #fff1f1;
    --red-border: #fca5a5;
    --yellow:     #f59e0b;
    --yel-light:  #fffbeb;
    --yel-border: #fcd34d;
    --green:      #10b981;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--off);
    color: var(--text);
}

/* =========================
   SHARED
========================= */
.section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading.center { text-align: center; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

.section-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 6px 14px;
    border-radius: 100px; margin-bottom: 1rem;
}

.red-tag    { background: #fff1f1; color: var(--red); border: 1px solid #fca5a5; }
.yellow-tag { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.blue-tag   { background: var(--blue-light); color: var(--blue); border: 1px solid rgba(26,86,255,0.25); }

.section-heading h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800; letter-spacing: -1px;
    line-height: 1.15; margin-bottom: 0.75rem; color: var(--text);
}

.red-text    { color: var(--red); }
.yellow-text { color: var(--yellow); }
.blue-text   { color: var(--blue); }

.section-heading p {
    font-size: 15px; color: var(--muted);
    line-height: 1.7; max-width: 560px;
}

.field-example {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(239,68,68,0.2);
    padding: 4px 10px; border-radius: 6px;
    color: var(--text);
}
.field-example span {
    color: var(--muted); font-weight: 500;
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yellow-ex { border-color: rgba(245,158,11,0.25); }

/* =========================
   HERO
========================= */
.hero {
    background: linear-gradient(135deg, #0d1526 0%, #0f2044 60%, #0a1a3a 100%);
    padding: clamp(6rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
    position: relative; overflow: hidden; text-align: center;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}

.hero::after {
    content: ''; position: absolute;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, rgba(26,86,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 18px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px; color: rgba(255,255,255,0.7);
    margin-bottom: 1.75rem; text-transform: uppercase;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800; color: #fff;
    letter-spacing: -2px; line-height: 1.05;
    margin-bottom: 1.25rem;
}

.accent { color: var(--cyan); }

.hero p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.65); line-height: 1.75;
    max-width: 580px; margin: 0 auto 2.5rem;
}
.hero p strong { color: rgba(255,255,255,0.9); }

.hero-stat {
    display: inline-flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1rem 2rem;
    gap: 2rem;
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-num.red    { color: #f87171; }
.stat-num.yellow { color: #fbbf24; }
.stat-num.green  { color: #34d399; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* =========================
   MANDATORY SECTION
========================= */
.mandatory-section {
    background: var(--white);
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.field-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1.5px solid var(--red-border);
    background: var(--red-light);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.field-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--red);
    border-radius: 4px 0 0 4px;
}

.field-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(239,68,68,0.12);
    transform: translateY(-2px);
}

.field-num {
    font-family: 'Syne', sans-serif;
    font-size: 11px; font-weight: 800;
    color: var(--red); opacity: 0.6;
    min-width: 22px; flex-shrink: 0;
    margin-top: 2px;
}

.field-icon-wrap {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: white;
    border: 1.5px solid var(--red-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--red);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(239,68,68,0.08);
}

.field-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--text); margin-bottom: 4px;
}

.field-info p {
    font-size: 12px; color: var(--muted);
    line-height: 1.55; margin: 0;
}

/* =========================
   OPTIONAL SECTION
========================= */
.optional-section {
    background: var(--off);
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-bottom: 1px solid var(--border);
}

.optional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.optional-card {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 1.5rem;
    border-radius: 14px;
    border: 1.5px solid var(--yel-border);
    background: var(--yel-light);
    transition: all 0.2s;
    position: relative; overflow: hidden;
}

.optional-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--yellow);
    border-radius: 4px 0 0 4px;
}

.optional-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 4px 20px rgba(245,158,11,0.1);
}

.opt-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: white;
    border: 1.5px solid var(--yel-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: var(--yellow);
    flex-shrink: 0;
}

.optional-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text); margin-bottom: 5px;
}

.optional-card p {
    font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* =========================
   SAMPLE SECTION
========================= */
.sample-section {
    background: var(--white);
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
}

.resume-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Left callout strip */
.callout-strip {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 90px;
}

.callout-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.callout-line {
    width: 3px;
    border-radius: 4px;
    flex-shrink: 0;
}

.red-callout .callout-line  { background: var(--red); height: 238px; }
.green-callout .callout-line { background: var(--green); flex: 1; min-height: 220px; }

.callout-text {
    display: flex; flex-direction: column; gap: 4px;
    padding-top: 8px;
}

.callout-text i { font-size: 14px; }
.red-callout  .callout-text i { color: var(--red); }
.green-callout .callout-text i { color: var(--green); }

.callout-text span {
    font-size: 11px; font-weight: 700;
    line-height: 1.4; color: var(--text);
}

.callout-text small {
    font-size: 10px; color: var(--muted);
    font-weight: 400;
}

/* Resume paper */
.resume-paper {
    flex: 1;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(13,17,23,0.08);
    overflow: hidden;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Mandatory top zone */
.resume-top {
    padding: 2rem 2.25rem 1.75rem;
    border: 3px solid var(--red);
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(239,68,68,0.03) 0%, rgba(255,255,255,0) 100%);
    position: relative;
}

.mandatory-banner {
    display: flex; align-items: center; gap: 8px;
    background: var(--red);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 8px 16px;
    margin: -2rem -2.25rem 1.5rem;
    border-radius: 11px 11px 0 0;
}

.resume-name-row { margin-bottom: 12px; }

.resume-name {
    font-size: 2rem; font-weight: 700;
    color: var(--dark); letter-spacing: -0.5px;
    line-height: 1.1;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}

.resume-title {
    font-size: 1.05rem; color: #4b5563;
    font-style: italic; margin-top: 4px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
}

/* red field tag on right */
.r-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px; font-weight: 700;
    background: var(--red); color: white;
    padding: 3px 9px; border-radius: 100px;
    letter-spacing: 0.5px; white-space: nowrap;
    font-style: normal;
}

.resume-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.r-info-item {
    display: flex; align-items: center; gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; color: #374151;
    padding: 6px 8px;
    border-radius: 7px;
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.12);
    position: relative;
}

.r-info-item i { color: var(--red); font-size: 10px; flex-shrink: 0; }

.r-tag-sm {
    margin-left: auto;
    font-size: 9px; font-weight: 700;
    background: var(--red); color: white;
    padding: 2px 6px; border-radius: 100px;
    white-space: nowrap; flex-shrink: 0;
}

.optional-info {
    background: rgba(245,158,11,0.04);
    border-color: rgba(245,158,11,0.2);
}

.optional-info i { color: var(--yellow); }

.opt-tag-sm {
    background: var(--yellow);
}

/* divider */
.resume-divider {
    background: var(--dark);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 10px 24px;
    display: flex; align-items: center;
    gap: 8px;
    opacity: 0.75;
}

/* Free format body */
.resume-body {
    padding: 1.5rem 2.25rem 2rem;
    background: rgba(16,185,129,0.02);
    border: 3px solid var(--green);
    border-top: none;
    border-radius: 0 0 14px 14px;
}

.r-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--blue); border-bottom: 1px solid var(--border);
    padding-bottom: 4px; margin: 1rem 0 0.6rem;
}

.r-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; color: #4b5563; line-height: 1.65;
}

.r-exp { margin-bottom: 0.5rem; }

.r-exp-header {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'DM Sans', sans-serif;
}
.r-exp-header strong { font-size: 13px; font-weight: 700; color: var(--dark); }
.r-exp-header span { font-size: 11px; color: var(--muted); }
.r-exp-company { font-size: 11px; color: var(--muted); font-style: italic; font-family: 'DM Sans', sans-serif; margin-bottom: 5px; }
.r-exp-list { padding-left: 16px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: #374151; line-height: 1.6; }

.r-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.r-skills span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600;
    background: var(--blue-light); color: var(--blue);
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid rgba(26,86,255,0.2);
}

/* =========================
   WARNING SECTION
========================= */
.warning-section {
    background: #fff1f1;
    border-top: 2px solid var(--red-border);
    border-bottom: 2px solid var(--red-border);
    padding: 2rem 0;
}

.big-warning {
    display: flex; align-items: center; gap: 20px;
    background: white;
    border: 2px solid var(--red);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(239,68,68,0.08);
}

.big-warning > i {
    font-size: 2.5rem; color: var(--red); flex-shrink: 0;
}

.big-warning h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem; font-weight: 800;
    color: var(--red); margin-bottom: 6px;
}

.big-warning p {
    font-size: 14px; color: #6b7280; line-height: 1.65; margin: 0;
}

/* =========================
   CTA
========================= */
.cta-section {
    background: linear-gradient(135deg, #0d1526 0%, #0f2044 100%);
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
    text-align: center; position: relative; overflow: hidden;
}

.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px; pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }

.cta-inner h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800; color: #fff;
    letter-spacing: -1px; margin-bottom: 0.75rem;
}

.cta-inner p {
    font-size: 15px; color: rgba(255,255,255,0.6);
    line-height: 1.7; margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--blue); color: #fff;
    padding: 15px 36px; border-radius: 10px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 24px rgba(26,86,255,0.4);
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--blue-mid); transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(26,86,255,0.5);
    color: #fff; text-decoration: none;
}

.cta-btn:hover i { transform: translateX(4px); }
.cta-btn i { transition: transform 0.2s; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .fields-grid { grid-template-columns: repeat(2, 1fr); }
    .resume-wrapper { flex-direction: column; }
    .callout-strip { display: none; }
    .red-callout .callout-line, .green-callout .callout-line { height: auto; }
}

@media (max-width: 640px) {
    .fields-grid { grid-template-columns: 1fr; }
    .optional-grid { grid-template-columns: 1fr; }
    .resume-info-grid { grid-template-columns: 1fr; }
    .resume-name { font-size: 1.4rem; }
    .hero-stat { flex-direction: column; gap: 1rem; padding: 1.25rem; }
    .stat-divider { width: 40px; height: 1px; }
    .resume-top { padding: 1.5rem 1.25rem; }
    .mandatory-banner { margin: -1.5rem -1.25rem 1.25rem; }
    .resume-body { padding: 1.25rem; }
    .big-warning { flex-direction: column; gap: 12px; text-align: center; }
    .big-warning > i { font-size: 2rem; }
}

@media (max-width: 480px) {
    .field-card { padding: 1rem 1.1rem; }
    .resume-paper { border-radius: 12px; }
    .r-tag { font-size: 8px; padding: 2px 6px; }
}