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

:root {
    --forest-950: #010d01;
    --forest-900: #021a02;
    --forest-800: #043904;
    --forest-700: #065806;
    --forest-600: #0a8a0a;
    --green-500:  #15B915;
    --green-400:  #3fd43f;
    --green-300:  #7fff7f;

    --gold-600: #A07830;
    --gold-500: #C9A84C;
    --gold-400: #E0C36E;
    --gold-300: #F0D98A;

    --white:     #ffffff;
    --white-90:  rgba(255,255,255,0.90);
    --white-70:  rgba(255,255,255,0.70);
    --white-50:  rgba(255,255,255,0.50);
    --white-30:  rgba(255,255,255,0.30);
    --white-20:  rgba(255,255,255,0.20);
    --white-15:  rgba(255,255,255,0.15);
    --white-08:  rgba(255,255,255,0.08);
    --white-05:  rgba(255,255,255,0.05);

    --border:    rgba(255,255,255,0.12);
    --card-bg:   rgba(255,255,255,0.05);

    --font-base:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full: 999px;
}

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

html { scroll-behavior: auto; }

body {
    font-family: var(--font-base);
    margin: 0;
    padding: 0;
    color: var(--white);
    background-color: var(--forest-950);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--forest-950); }
::-webkit-scrollbar-thumb { background: var(--forest-700); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--forest-600); }

.floating-orbs { display: none; }

main, nav, footer {
    position: relative;
    z-index: 1;
}

.text-accent { color: var(--gold-400); }
.tracking-wide { letter-spacing: 0.05em; }

.navbar-glass {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--forest-900);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    background: var(--forest-800);
    border: 1px solid var(--border);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
}
.btn-github:hover {
    background: var(--forest-700);
    color: var(--white);
}

.hero-section {
    padding: 100px 0 80px;
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-isu.hero-logo {
    height: 92px;
}

.hero-badge {
    display: inline-block;
    background: var(--forest-800);
    border: 1px solid rgba(21,185,21,0.3);
    color: var(--green-400);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--white-70);
    font-weight: 500;
    line-height: 1.7;
}

.btn-accent-hero {
    display: inline-flex;
    align-items: center;
    background: var(--gold-500);
    color: var(--forest-950);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
}
.btn-accent-hero:hover {
    background: var(--gold-400);
    color: var(--forest-950);
}

.btn-ghost-hero {
    display: inline-flex;
    align-items: center;
    background: var(--forest-800);
    border: 1px solid var(--border);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
}
.btn-ghost-hero:hover {
    background: var(--forest-700);
    color: var(--white);
}


.process-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--green-400);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.process-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
    position: relative;
}
.process-card--featured {
    background: rgba(21,185,21,0.06);
    border-color: rgba(21,185,21,0.25);
}
.process-card--featured .process-icon-wrap {
    background: rgba(21,185,21,0.2);
    color: var(--green-400);
    border-color: rgba(21,185,21,0.35);
}

.process-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--forest-800);
    border: 1px solid var(--border);
    color: var(--gold-400);
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.process-number {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--white-30);
    margin-bottom: 0.5rem;
}

.process-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.process-card-text {
    font-size: 0.92rem;
    color: var(--white-70);
    line-height: 1.7;
    margin: 0;
}

.generator-section {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border);
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.step-section { }

.step-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: var(--green-500);
    color: var(--forest-950);
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.9rem;
    margin-right: 12px;
}

.canvas-container {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--forest-900);
    border: 2px dashed var(--border);
    position: relative;
    cursor: grab;
}
.canvas-container.has-image {
    border-style: solid;
    border-color: rgba(21,185,21,0.3);
}
.canvas-container:active { cursor: grabbing; }

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 420px;
}

.form-control, .form-select {
    background-color: var(--forest-900) !important;
    border: 1px solid var(--border) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1rem;
    font-family: var(--font-base);
}
.form-control:focus, .form-select:focus {
    background-color: var(--forest-800) !important;
    border-color: var(--green-500) !important;
    box-shadow: none !important;
    color: var(--white) !important;
    outline: 2px solid var(--green-500);
    outline-offset: 1px;
}
.form-select option {
    background-color: var(--forest-900);
    color: var(--white);
}
.form-control::file-selector-button {
    background-color: var(--forest-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    margin-right: 1rem;
    font-weight: 600;
    font-family: var(--font-base);
}
.form-control::file-selector-button:hover {
    background-color: var(--forest-600);
}

.btn-accent {
    background: var(--gold-500);
    color: var(--forest-950);
    border: none;
    font-weight: 700;
    border-radius: var(--radius-md);
}
.btn-accent:hover {
    background: var(--gold-400);
    color: var(--forest-950);
}

.btn-outline-light {
    border: 1px solid var(--border);
    background: var(--forest-800);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
}
.btn-outline-light:hover {
    background: var(--forest-700);
    color: var(--white);
}

.slider-accent { accent-color: var(--green-500); }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 36px;
    background: var(--forest-900);
}

.footer-inner {
    text-align: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.logo-isu.footer-logo {
    height: 54px;
    opacity: 1;
}

.footer-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--white-70);
    margin-bottom: 0.2rem;
}

.footer-version {
    font-size: 0.75rem;
    color: var(--white-30);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white-50);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.footer-links a:hover {
    color: var(--white-90);
}

.footer-dot {
    color: var(--white-20);
}

.footer-about-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.footer-about-avatar {
    font-size: 3.25rem;
    color: var(--green-400);
    line-height: 1;
    flex-shrink: 0;
}

.footer-about-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.footer-about-role {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green-400);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}

.footer-about-bio {
    font-size: 0.875rem;
    color: var(--white-70);
    line-height: 1.7;
    margin: 0;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 1.75rem;
}

.animate-fade-up {
    opacity: 1;
    transform: none;
}
.delay-1, .delay-2, .delay-3, .delay-4 { }

@media (max-width: 768px) {
    .hero-section { padding: 60px 0 50px; }
    .hero-logo { height: 52px; }
    .hero-logos { gap: 0.75rem; }

    .hero-title { letter-spacing: -0.02em; }

    .process-section,
    .generator-section { padding: 60px 0; }

    .glass-card { padding: 1.75rem !important; }

    .canvas-container { max-width: 100%; border-radius: var(--radius-md); }

    #downloadBtn, #shareBtn {
        width: 100%;
        justify-content: center;
    }

    .nav-brand { font-size: 1rem; }
    .nav-logo { height: 30px; }
}

@media (max-width: 430px) {
    .hero-logo { height: 42px; }
    .btn-accent-hero, .btn-ghost-hero {
        width: 100%;
        justify-content: center;
    }
    .footer-logo { height: 32px; }
}
