:root {
    /* Color Palette */
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-light: rgba(234, 88, 12, 0.1);
    
    /* Dark Theme (Default) */
    --bg-color: #0f1115;
    --bg-secondary: #16181d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(22, 24, 29, 0.6);
    --card-bg: rgba(22, 24, 29, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}
[data-theme="light"] .blob {
    opacity: 0.08;
}
.blob-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary);
}
.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #3b82f6;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-img {
    height: 36px;
    object-fit: contain;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 1.2rem;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.theme-toggle:hover {
    background-color: var(--border-color);
}
[data-theme="dark"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* Sections */
.section-padding {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    justify-content: center;
    padding-top: 10rem;
    gap: 4rem;
}
.hero-content {
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background-color: var(--border-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}
.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero-title span {
    color: var(--primary);
}
.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tech Section */
.tech-section {
    background-color: var(--bg-secondary);
    border-radius: 32px;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(234, 88, 12, 0.3);
}
[data-theme="dark"] .tech-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.tech-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.tech-card-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.tech-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CEO Section */
.ceo-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}
.ceo-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.ceo-profile:hover {
    transform: translateY(-5px);
}
.ceo-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-color);
    box-shadow: var(--shadow);
}
.ceo-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
}
.ceo-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.ceo-message {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ceo-message .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}
.ceo-message .section-subtitle {
    margin-bottom: 0;
}
.ceo-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
.ceo-quote {
    padding: 1.5rem;
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}
.ceo-quote strong {
    color: var(--primary);
}

/* Services Section */
.services-section {
    padding-bottom: 8rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
}
.service-img-wrapper {
    height: 300px;
    overflow: hidden;
}
.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.service-card:hover .service-img {
    transform: scale(1.05);
}
.service-content {
    padding: 2.5rem;
}
.service-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.service-subtitle-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    font-size: 1.25rem;
}
.service-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.service-badge {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}
.service-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* B2B Section */
.b2b-section {
    padding-bottom: 8rem;
}
.b2b-header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: flex-end;
}
.b2b-header-left .section-title {
    margin-bottom: 0;
    text-align: left;
}
.b2b-header-right {
    padding-bottom: 0.5rem;
}
.b2b-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}
.b2b-stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.b2b-stat-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.b2b-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.b2b-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s;
}
.b2b-card:hover {
    transform: translateY(-5px);
}
.b2b-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.b2b-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.b2b-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.b2b-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Vision Section */
.vision-section {
    position: relative;
    padding: 8rem 0;
    background-color: #0f1115; /* Always dark for this section */
    color: #f8fafc;
    overflow: hidden;
}
.vision-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?q=80&w=1000&auto=format&fit=crop'); /* DNA/Science placeholder */
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
}
.vision-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,17,21,0) 0%, rgba(15,17,21,1) 45%, rgba(15,17,21,1) 100%);
    z-index: 2;
}
.vision-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 3;
}
.vision-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.vision-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}
.vision-right {
    background: rgba(22, 24, 29, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem;
    border-radius: 24px;
}
.vision-right-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}
.vision-right-title span {
    color: var(--primary);
}
.vision-text {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.vision-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}
.vision-buttons .btn-outline {
    color: #f8fafc;
    border-color: rgba(255,255,255,0.2);
}

/* Footer */
.footer {
    background-color: #16181d; /* Dark footer always */
    color: #f8fafc;
    padding: 5rem 0 0 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
}
.footer-brand .logo {
    color: #f8fafc;
    margin-bottom: 1.5rem;
    display: inline-flex;
}
.footer-tagline {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.footer-copy {
    color: #64748b;
    font-size: 0.85rem;
}
.footer-links-group {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 2rem;
}
.footer-col strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}
.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #f8fafc;
}
.info-col p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
}
.info-col span {
    width: 100px;
    flex-shrink: 0;
}
.contact-col p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.address-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}
.address-link:hover {
    color: #f8fafc;
    text-decoration: underline;
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: #f8fafc;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}
.social-links a:hover {
    background-color: rgba(255,255,255,0.1);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 0;
}
.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    color: #64748b;
}
.footer-legal a:hover {
    color: #f8fafc;
}

/* Responsive updates for new sections */
@media (max-width: 1024px) {
    .b2b-header-container { grid-template-columns: 1fr; gap: 2rem; }
    .b2b-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .b2b-cards { grid-template-columns: repeat(2, 1fr); }
    .vision-container { grid-template-columns: 1fr; }
    .vision-left { text-align: center; margin-bottom: 2rem; }
    .vision-bg-image { width: 100%; opacity: 0.3; }
    .vision-section::after { background: rgba(15,17,21,0.8); }
    .footer-container { grid-template-columns: 1fr; }
    .footer-links-group { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    /* Navbar */
    .nav-container { 
        flex-wrap: wrap; 
        justify-content: space-between; 
        align-items: center; 
        gap: 0.8rem 0; 
        padding: 0 1rem; 
    }
    .logo { order: 1; }
    .nav-actions { order: 2; gap: 0.5rem; }
    .nav-actions .theme-toggle { width: 32px; height: 32px; font-size: 1.1rem; }
    .nav-actions .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    
    .nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    
    /* Layouts and Typography */
    .section-padding { padding: 4rem 1.5rem; }
    .section-title { font-size: 2rem; }
    
    .hero { padding-top: 8rem; gap: 3rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.5rem; }
    .stat-value { font-size: 1.8rem; }
    
    .tech-grid { grid-template-columns: 1fr; }
    .ceo-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .ceo-message .section-title { text-align: center; }
    
    .services-grid { grid-template-columns: 1fr; }
    .service-content { padding: 1.5rem; }
    .service-title { font-size: 1.8rem; }
    
    .b2b-stats { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
    .b2b-stat-item h3 { font-size: 1.8rem; }
    .b2b-cards { grid-template-columns: 1fr; }
    
    .vision-section { padding: 5rem 0; }
    .vision-title { font-size: 2.2rem; }
    .vision-right { padding: 2rem; }
    .vision-right-title { font-size: 1.5rem; }
    
    .footer-links-group { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-container { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
}
