/* ==========================================
   PARAPIA - Modern SaaS Stylesheet
   ========================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

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

:root {
    /* Brand */
    --primary: #2563eb;
    --secondary: #06b6d4;
    --accent: #6366f1;
    --brand-grad: linear-gradient(120deg, #6366f1 0%, #2563eb 45%, #06b6d4 100%);

    --dark: #0b1120;
    --light: #f8fafc;

    /* Surfaces */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --ring: rgba(37, 99, 235, 0.12);

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 14px 40px rgba(37, 99, 235, 0.28);

    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--gray-900);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover { color: var(--secondary); }

/* ==========================================
   Layout Utilities (kept for compatibility)
   ========================================== */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex { display: flex; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-4 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.gap-8 { gap: 2rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.py-20 { padding: 5rem 0; }
.px-4 { padding: 0 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }

.bg-white { background: white; }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-blue-600 { background: var(--primary); }
.bg-gradient-blue { background: var(--brand-grad); }

.text-white { color: white; }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-600 { color: var(--primary); }
.text-yellow-400 { color: #facc15; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-lg); }

/* ==========================================
   Navigation
   ========================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    height: 4.75rem;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

nav.shadow-md {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

nav a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.25s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-grad);
    transition: width 0.25s ease;
}

nav a:hover { color: var(--gray-900); }
nav a:hover::after { width: 100%; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    color: var(--gray-700);
}

#mobile-menu {
    position: fixed;
    top: 4.75rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 17, 32, 0.45);
    backdrop-filter: blur(4px);
    z-index: 40;
}

#mobile-menu.hidden { display: none !important; }

#mobile-menu > div {
    background: white;
    border-radius: var(--radius);
    margin: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
}

#mobile-menu a {
    display: block;
    padding: 0.85rem 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
}

#mobile-menu a:last-child { border-bottom: none; }

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    margin-top: 4.75rem;
    padding: 6rem 1.5rem 5rem;
    min-height: calc(100vh - 4.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 50% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(40rem 24rem at 100% 0%, rgba(6, 182, 212, 0.10), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -6rem;
    right: -4rem;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 68%);
    border-radius: 50%;
    animation: blob 9s ease-in-out infinite;
    filter: blur(8px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -8rem;
    left: -4rem;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.20) 0%, transparent 68%);
    border-radius: 50%;
    animation: blob 9s ease-in-out infinite;
    animation-delay: 3s;
    filter: blur(8px);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 58rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 0.5rem 1.05rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(4px);
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-grad);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.gradient-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.08;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2.25rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand-grad);
    background-size: 160% 160%;
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.38);
    color: #fff;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after { transform: translateX(120%); }

.btn-secondary {
    border: 1.5px solid var(--gray-200);
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================
   Sections
   ========================================== */

section {
    padding: 6rem 1.5rem;
    margin: 0 auto;
    position: relative;
}

section.bg-light {
    background:
        radial-gradient(40rem 20rem at 0% 0%, rgba(99, 102, 241, 0.05), transparent 60%),
        var(--surface-soft);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-title p {
    font-size: 1.15rem;
    color: var(--gray-500);
}

/* ==========================================
   Cards
   ========================================== */

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.18);
}

.card h3 { margin-bottom: 0.6rem; }

.card p {
    color: var(--gray-500);
    margin-bottom: 0;
    font-size: 0.98rem;
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--brand-grad);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

/* ==========================================
   Portfolio Grid
   ========================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 2rem;
    min-height: 19rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--shadow-md);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
    transition: background 0.35s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.portfolio-item h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
    color: #fff;
}

.portfolio-item p {
    position: relative;
    z-index: 2;
    opacity: 0.92;
    margin-bottom: 1rem;
    font-size: 0.96rem;
}

.portfolio-item span {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-block;
    align-self: flex-start;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.bg-blue { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.bg-purple { background: linear-gradient(140deg, #a855f7, #d946ef); }
.bg-green { background: linear-gradient(140deg, #10b981, #14b8a6); }
.bg-orange { background: linear-gradient(140deg, #fb923c, #ef4444); }

/* ==========================================
   Team
   ========================================== */

.team-member {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, background 0.3s ease;
}

.team-member:hover {
    transform: translateY(-6px);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.1rem;
    display: block;
    padding: 4px;
    background: var(--brand-grad);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.team-member h3 {
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
}

.team-member p {
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ==========================================
   Testimonials
   ========================================== */

.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.6rem;
    right: 1.3rem;
    font-size: 4.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.12);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.testimonial-author h4 {
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

.testimonial-card > p {
    color: var(--gray-700);
    font-size: 1rem;
    margin-bottom: 0;
}

.stars {
    margin-top: 1.1rem;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-section {
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgba(255,255,255,0.12), transparent 55%),
        linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
    color: white;
    overflow: hidden;
}

.contact-section .section-title h2,
.contact-section .section-title p { color: #fff; }

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

#contact-form .btn {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    font-weight: 700;
}

#contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
}

.contact-info-item h4 {
    margin-bottom: 0.6rem;
    color: #fff;
}

.contact-info-item a,
.contact-info-item p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.contact-info-item a:hover { color: #fff; }

/* ==========================================
   Footer
   ========================================== */

footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 1.5rem 2rem;
}

footer .container {
    max-width: 1180px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

footer h3, footer h4 {
    color: white;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

footer p { color: var(--gray-400); }

footer a {
    color: var(--gray-400);
    font-size: 0.95rem;
}

footer a:hover { color: white; }

footer ul { list-style: none; }
footer li { margin-bottom: 0.6rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==========================================
   Animations
   ========================================== */

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.12); }
    66% { transform: translate(-24px, 24px) scale(0.92); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    .hero { padding: 4rem 1.25rem 3.5rem; }
    .hero p { font-size: 1.05rem; }

    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }

    section { padding: 3.5rem 1.25rem; }

    .btn-group { flex-direction: column; }
    .btn { width: 100%; }

    .contact-info { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   Utility Classes
   ========================================== */

.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.3s ease; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--secondary));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================
   DARK THEME (홈페이지 전용 - body.theme-dark)
   Catalyst Analytics 스타일: 다크 + 블루 강조
   ========================================== */

body.theme-dark {
    --d-bg: #0a0b10;
    --d-surface: #15161e;
    --d-surface-2: #1b1d27;
    --d-border: rgba(255, 255, 255, 0.07);
    --d-border-strong: rgba(255, 255, 255, 0.12);
    --d-text: #c8cad4;
    --d-muted: #8b8e9c;
    --d-blue: #2f6bff;
    --d-blue-soft: rgba(47, 107, 255, 0.14);

    background: var(--d-bg);
    color: var(--d-text);
}

/* 배경 글로우 */
body.theme-dark::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(50rem 26rem at 50% -8%, rgba(47, 107, 255, 0.10), transparent 60%),
        radial-gradient(36rem 20rem at 100% 100%, rgba(47, 107, 255, 0.06), transparent 60%);
}

/* 헤딩 흰색 (전역 헤딩이 어두운 색이라 반드시 덮어씀) */
.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5, .theme-dark h6 {
    color: #f4f6fb;
}

.theme-dark .section-title p,
.theme-dark .card p,
.theme-dark .team-member p,
.theme-dark .testimonial-card > p {
    color: var(--d-muted);
}

/* Nav */
.theme-dark nav {
    background: rgba(10, 11, 16, 0.72);
    border-bottom: 1px solid var(--d-border);
}
.theme-dark nav.shadow-md {
    background: rgba(10, 11, 16, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.theme-dark nav a { color: var(--d-muted); }
.theme-dark nav a:hover { color: #fff; }
.theme-dark .logo { color: #fff; }
.theme-dark .mobile-menu-btn { color: #e5e7eb; }
.theme-dark #mobile-menu > div { background: var(--d-surface-2); }
.theme-dark #mobile-menu a {
    color: var(--d-text);
    border-bottom: 1px solid var(--d-border);
}

/* Hero */
.theme-dark .hero {
    background:
        radial-gradient(48rem 26rem at 50% -10%, rgba(47, 107, 255, 0.16), transparent 60%),
        linear-gradient(180deg, #0c0d13 0%, var(--d-bg) 100%);
}
.theme-dark .hero::before { background: radial-gradient(circle, rgba(47,107,255,0.28) 0%, transparent 68%); }
.theme-dark .hero::after  { background: radial-gradient(circle, rgba(47,107,255,0.16) 0%, transparent 68%); }
.theme-dark .hero p { color: var(--d-muted); }

.theme-dark .badge {
    background: var(--d-blue-soft);
    color: #7fa8ff;
    border: 1px solid rgba(47, 107, 255, 0.3);
}

/* 강조 단어를 파란 박스로 (템플릿의 "Decisions" 스타일) */
.theme-dark .gradient-text {
    -webkit-text-fill-color: #fff;
    color: #fff;
    background: var(--d-blue);
    padding: 0.05em 0.4em;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(47, 107, 255, 0.4);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Sections */
.theme-dark section,
.theme-dark section.bg-light {
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Buttons */
.theme-dark .btn-primary {
    background: var(--d-blue);
    box-shadow: 0 12px 30px rgba(47, 107, 255, 0.38);
}
.theme-dark .btn-primary:hover {
    background: #4079ff;
    box-shadow: 0 18px 42px rgba(47, 107, 255, 0.5);
}
.theme-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--d-border-strong);
    color: #e7e9f0;
}
.theme-dark .btn-secondary:hover {
    border-color: var(--d-blue);
    color: #fff;
    background: var(--d-blue-soft);
}

/* Cards (서비스) */
.theme-dark .card {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.theme-dark .card:hover {
    border-color: rgba(47, 107, 255, 0.4);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.theme-dark .card-icon {
    background: var(--d-surface-2);
    border: 1px solid var(--d-border);
    box-shadow: none;
}

/* Team */
.theme-dark .team-member:hover {
    background: var(--d-surface);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* Testimonials */
.theme-dark .testimonial-card {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.theme-dark .testimonial-card::before { color: rgba(47, 107, 255, 0.35); }
.theme-dark .testimonial-author p { color: var(--d-muted); }

/* Contact (다크로 통일) */
.theme-dark .contact-section {
    background:
        radial-gradient(40rem 20rem at 50% 0%, rgba(47, 107, 255, 0.16), transparent 60%),
        #0c0d14;
    border-top: 1px solid var(--d-border);
}
.theme-dark .contact-section .section-title h2,
.theme-dark .contact-section .section-title p { color: #fff; }
.theme-dark .form-group input,
.theme-dark .form-group textarea {
    background: var(--d-surface);
    border: 1px solid var(--d-border-strong);
    color: #fff;
}
.theme-dark .form-group input::placeholder,
.theme-dark .form-group textarea::placeholder { color: var(--d-muted); }
.theme-dark .form-group input:focus,
.theme-dark .form-group textarea:focus {
    border-color: var(--d-blue);
    background: var(--d-surface-2);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.18);
}
.theme-dark #contact-form .btn {
    background: var(--d-blue);
    color: #fff;
}
.theme-dark .contact-info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--d-border);
}
.theme-dark .contact-info-item:hover { background: rgba(255, 255, 255, 0.06); }
.theme-dark .contact-info-item h4 { color: #fff; }
.theme-dark .contact-info-item a,
.theme-dark .contact-info-item p { color: var(--d-text); }

/* Footer */
.theme-dark footer {
    background: #08090d;
    border-top: 1px solid var(--d-border);
}

/* 설정(⚙️)·매뉴얼(📖) 아이콘 — 배경(#08090d)보다 아주 살짝만 진해 거의 안 보임 */
.theme-dark #admin-gear,
.theme-dark #manual-link { color: #15161c; transition: color 0.2s ease; }
.theme-dark #admin-gear:hover,
.theme-dark #manual-link:hover { color: #33363f; }

/* Scrollbar */
.theme-dark::-webkit-scrollbar-track { background: #0d0e13; }
.theme-dark::-webkit-scrollbar-thumb { background: #2a2c38; }

/* ==========================================
   NEW SECTIONS (히어로 2단 / 브랜드 / Why / FAQ)
   ========================================== */

/* --- Hero 2-column --- */
.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
}

.hero-inner .hero-content {
    text-align: left;
    max-width: none;
}

.hero-inner .hero p { margin-left: 0; margin-right: 0; }
.hero-inner .btn-group { justify-content: flex-start; }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at 50% 50%, #2f6bff 0%, #1b3aa0 55%, #0f1b46 100%);
    box-shadow:
        0 30px 80px rgba(47, 107, 255, 0.45),
        inset 0 0 60px rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-orb::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px solid rgba(47, 107, 255, 0.35);
    animation: float 6s ease-in-out infinite reverse;
}

.hero-orb-emoji { font-size: 7rem; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* --- Brand strip --- */
.brand-strip { padding: 2.5rem 1.5rem; }

.brand-eyebrow {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3rem;
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-400);
    opacity: 0.7;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.brand-logo:hover { opacity: 1; color: var(--gray-700); }

/* --- Why Choose Us --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.why-item { text-align: center; padding: 1rem; }

.why-badge {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05);
}

.why-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 0; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    border-radius: 14px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--surface);
    transition: border-color 0.25s ease;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-num {
    font-weight: 800;
    color: var(--gray-400);
    font-size: 0.95rem;
    min-width: 1.6rem;
}

.faq-question {
    flex: 1;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--gray-800);
}

.faq-toggle {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-toggle::before { content: '+'; }
.faq-item.open .faq-toggle::before { content: '\00d7'; }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.35rem 0 3.95rem;
}

.faq-a p { color: var(--gray-600); margin: 0; font-size: 0.96rem; line-height: 1.7; }

.faq-item.open .faq-a { max-height: 400px; padding-top: 0.2rem; padding-bottom: 1.25rem; }
.faq-item.open .faq-question { color: var(--primary); }

/* ============ DARK overrides for new sections ============ */
.theme-dark .brand-eyebrow { color: var(--d-muted); }
.theme-dark .brand-logo { color: #6f7280; }
.theme-dark .brand-logo:hover { color: #e7e9f0; }

.theme-dark .why-item p { color: var(--d-muted); }

.theme-dark .faq-item {
    background: var(--d-surface);
    border: 1px solid var(--d-border);
}
.theme-dark .faq-item.open { border-color: rgba(47, 107, 255, 0.4); }
.theme-dark .faq-question { color: #e7e9f0; }
.theme-dark .faq-item.open .faq-question { color: #6fa0ff; }
.theme-dark .faq-num { color: #5b5e6e; }
.theme-dark .faq-toggle { color: var(--d-muted); }
.theme-dark .faq-a p { color: var(--d-muted); }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-inner .hero-content { text-align: center; }
    .hero-inner .btn-group { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-orb { width: 220px; height: 220px; }
    .hero-orb-emoji { font-size: 4.5rem; }
}
