@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    /* Brand Colors */
    --color-main-orange: #D97706;
    /* Burnt Orange */
    --color-main-grey: #374151;
    /* Charcoal Grey */
    --color-secondary-grey: #9CA3AF;
    /* Slate Grey */
    --color-bg: #F9FAFB;
    /* Soft White */
    --color-accent-black: #111827;
    /* Deep Navy Black */
    --color-accent-blue: #3B82F6;
    /* Electric Blue */

    /* Generic */
    --color-surface: #FFFFFF;
    --color-surface-hover: #F3F4F6;
    --color-text-main: var(--color-accent-black);
    --color-text-muted: var(--color-main-grey);
    --color-primary: var(--color-main-orange);
    --color-primary-hover: #B45309;
    --border-color: #E5E7EB;

    --font-heading: 'Pretendard', sans-serif;
    --font-body: 'Pretendard', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Font Fix (V6) */
body,
input,
textarea,
select,
button {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-accent-black);
    line-height: 1.3;
    font-weight: 700;
}

.text-gradient {
    color: var(--color-accent-blue);
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-main-orange);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-main-grey);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-accent-black);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Fix (V6 - Transparency) */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-wrapper {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img-clean {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Apply blend mode to image itself to knock out white background */
    mix-blend-mode: multiply;
}

.logo-text-html {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-accent-black);
    letter-spacing: -0.02em;
    padding-top: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: #0F172A;
    /* Dark fallback */
    color: #FFFFFF;
    /* Light text */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Invert colors for Hero only */
.hero .hero-title,
.hero .hero-subtitle {
    color: #FFFFFF;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    word-break: keep-all;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 500;
}

/* Abstract Background (V4) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.8;
    animation: slow-breathe 20s ease-in-out infinite alternate;
}

@keyframes slow-breathe {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Services Section */
.services {
    padding: 8rem 0;
    background-color: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent-black);
}

.section-description {
    color: var(--color-main-grey);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.3);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 6, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-main-orange);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-secondary-grey);
}

.feature-card.expanded .toggle-icon {
    transform: rotate(180deg);
    color: var(--color-main-orange);
}

.feature-card p {
    color: var(--color-main-grey);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.feature-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease;
    opacity: 0;
    border-top: 1px solid transparent;
}

.feature-card.expanded .feature-details {
    max-height: 500px;
    opacity: 1;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.detail-list {
    list-style: none;
    color: var(--color-main-grey);
    font-size: 0.95rem;
}

.detail-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.detail-list li::before {
    content: "•";
    color: var(--color-main-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Impact Section (New V4) */
.impact {
    padding: 8rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--border-color);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.impact-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-main-orange), var(--color-accent-blue));
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-main-orange);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-black);
    margin-bottom: 1.5rem;
}

.impact-desc {
    color: var(--color-main-grey);
    font-size: 1rem;
    line-height: 1.6;
    word-break: keep-all;
    /* Preserve word breaks for Korean */
}

.impact-cta {
    text-align: center;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    padding: 4rem 2rem;
    border-radius: 24px;
    color: #FFFFFF;
}

.impact-cta h3 {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--color-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-accent-black);
}

.footer-brand p {
    color: var(--color-secondary-grey);
}

.contact-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--color-main-orange);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--color-main-orange);
}

.footer-bottom {
    text-align: center;
    color: var(--color-secondary-grey);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--color-surface);
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg);
}

.modal-header h2 {
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-secondary-grey);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-accent-black);
}

.modal-body {
    padding: 2rem;
}

.modal-intro {
    color: var(--color-main-grey);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-main-grey);
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--color-accent-black);
    font-family: inherit;
    transition: all 0.2s;
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: var(--color-main-orange);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

input::placeholder {
    color: var(--color-secondary-grey);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .features-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}