@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0e14;
    --bg-panel: #10151c;
    --bg-panel-alt: #0d1117;
    --bg-input: #0a0e14;
    --border: #22272e;
    --border-light: #2d333b;
    --text: #c9d1d9;
    --text-dim: #6e7681;
    --text-bright: #e6edf3;
    --accent-green: #3fb950;
    --accent-blue: #58a6ff;
    --accent-orange: #ffa657;
    --accent-pink: #f778ba;
    --accent-purple: #bc8cff;
    --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--mono);
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-green);
    color: #04150a;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-panel-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}



.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.navbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-bright);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-green);
    color: #04150a;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo-mark svg {
    width: 22px;
    height: 22px;
    display: block;
}

.logo-mark svg path,
.logo-mark svg polyline,
.logo-mark svg line {
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.logo-mark svg .fill-soft {
    fill: #f8fbff;
    stroke: none;
}

.logo span {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    font-size: 13.5px;
}

.nav-links a {
    color: var(--text-dim);
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-green);
}

.nav-cta {
    border: 1px solid var(--border-light);
    padding: 9px 16px;
    border-radius: 6px;
    color: var(--accent-green) !important;
    font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-green);
    color: #04150a !important;
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.3);
}

/* ============ HERO (home) ============ */

.hero {
    position: relative;
    padding: 90px 0 70px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(63,185,80,0.16), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-green);
    margin-bottom: 26px;
}

.eyebrow::before {
    content: "●";
    font-size: 9px;
    animation: blink 1.4s steps(1) infinite;
}

.hero h1 {
    position: relative;
    font-size: 46px;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1.25;
    max-width: 780px;
    margin: 0 auto 20px;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    color: var(--accent-green);
}

.hero-sub {
    position: relative;
    max-width: 560px;
    margin: 0 auto 34px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn {
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.15s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-green);
    color: #04150a;
    border-color: var(--accent-green);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-bright);
}

.btn-ghost:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.hero-stats {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 24px;
    color: var(--text-bright);
    font-weight: 800;
}

.stat span {
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}



.page-hero {
    position: relative;
    padding: 64px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(88,166,255,0.14), transparent 70%);
    pointer-events: none;
}

.breadcrumb {
    position: relative;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 18px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-hero h1 {
    position: relative;
    font-size: 38px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}

.page-hero p {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
}



.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 46px;
}

.section-tag {
    font-size: 12px;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-tag::before {
    content: "// ";
}

.section-head h2 {
    font-size: 30px;
    color: var(--text-bright);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 44px;
}



.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 26px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-2px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--accent-green);
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 15.5px;
    color: var(--text-bright);
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.65;
}



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

.step-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 26px;
}

.step-num {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 15.5px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.6;
}

.step-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -24px;
    top: 30px;
    color: var(--border-light);
    font-size: 18px;
    display: none;
}

@media (min-width: 801px) {
    .step-card:not(:last-child)::after {
        display: block;
    }
}

.steps-vertical {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-row {
    display: flex;
    gap: 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.step-row .step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 0;
}

.step-row h3 {
    font-size: 15.5px;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.step-row p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.65;
}



#builder {
    padding-top: 70px;
}

.builder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-section,
.preview-section {
    background: var(--bg-panel);
    padding: 25px;
    padding-top: 46px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.form-section::before,
.preview-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: var(--bg-panel-alt);
    border-bottom: 1px solid var(--border);
}

.form-section::after,
.preview-section::after {
    position: absolute;
    top: 0;
    left: 16px;
    height: 34px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.form-section::after {
    content: "~/resume/form.js";
}

.preview-section::after {
    content: "$ cv --render --live";
    color: var(--accent-green);
}

h2 {
    margin-bottom: 20px;
    color: var(--text-bright);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

h2::before {
    content: "// ";
    color: var(--accent-purple);
    font-weight: 500;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 12.5px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

label::before {
    content: "> ";
    color: var(--text-dim);
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    outline: none;
    font-size: 14.5px;
    background: var(--bg-input);
    color: var(--text-bright);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

input:focus,
textarea:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-panel-alt);
    color: var(--accent-green);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.15s ease;
}

button::before {
    content: "$ ";
    color: var(--text-dim);
}

button:hover {
    background: var(--accent-green);
    color: #04150a;
    border-color: var(--accent-green);
    box-shadow: 0 0 18px rgba(63, 185, 80, 0.35);
}

button:hover::before {
    color: #04150a;
}

button + button {
    color: var(--accent-blue);
}

button + button:hover {
    background: var(--accent-blue);
    color: #04101c;
    border-color: var(--accent-blue);
    box-shadow: 0 0 18px rgba(88, 166, 255, 0.35);
}

button + button:hover::before {
    color: #04101c;
}

.contact-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
    font-size: 12.5px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.7;
}

.contact-note a {
    color: var(--accent-green);
    font-weight: 600;
}

.contact-note a:hover {
    text-decoration: underline;
}

/* CV */

#cvPreview {
    background: #ffffff;
    color: #1c1f26;
    min-height: 700px;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--border);
}

.cv-header {
    border-bottom: 3px solid var(--accent-green);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.cv-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #10151c;
}

#previewName::before {
    content: "const developer = ";
    color: #8b949e;
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.cv-header h3 {
    color: #1a7f37;
    font-weight: 600;
    margin-top: 5px;
    font-size: 16px;
}

.cv-header h3::before {
    content: "// ";
    color: #8b949e;
}

.contact {
    margin-top: 10px;
    color: #57606a;
    font-size: 13.5px;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-section h2 {
    font-size: 15px;
    color: #1a7f37;
    border-bottom: 1px solid #e2e5e9;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-weight: 700;
}

.cv-section h2::before {
    content: "function ";
    color: #8250df;
}

.cv-section h2::after {
    content: "() {";
    color: #8b949e;
    font-weight: 500;
}

.cv-section p {
    line-height: 1.65;
    color: #2d333b;
    font-size: 14px;
    white-space: pre-line;
}

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

.skill {
    background: #ecf6ee;
    color: #1a7f37;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #cdeed4;
}

.skill::before {
    content: "#";
    color: #8b949e;
    margin-right: 2px;
}



.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--bg-panel);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-bright);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--accent-green);
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 22px 20px;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.7;
}



.contact-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 34px;
    text-align: center;
}

.contact-card .feature-icon {
    margin: 0 auto 18px;
}

.contact-card h3 {
    font-size: 17px;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-light);
    padding: 12px 18px;
    border-radius: 6px;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.15s ease;
}

.contact-email:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.3);
}



footer {
    padding: 50px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 13px;
    max-width: 280px;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 12px;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-dim);
    font-size: 13px;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-bottom span::before {
    content: "$ ";
    color: var(--border-light);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}



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

    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .builder-container {
        grid-template-columns: 1fr;
    }
}

@media print {
    body { background: #fff; }
    .navbar, .hero, .section:not(#builder), footer,
    .form-section, .preview-section::before, .preview-section::after { display: none; }
    #builder { padding: 0; }
    .builder-container { display: block; width: 100%; margin: 0; }
    .preview-section { box-shadow: none; border: none; padding: 0; }
    #cvPreview { box-shadow: none; }
}
