/* ═══════════════════════════════════════════
   Enaion Landing — style.css
   Dark · Clean · Conversational
   ═══════════════════════════════════════════ */

   :root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-card: #141418;
    --bg-card-hover: #1a1a1f;
    --border: #222228;
    --border-light: #2a2a32;
    --text-primary: #e8e8ec;
    --text-secondary: #8a8a96;
    --text-muted: #5a5a66;
    --accent: #4af;
    --accent-dim: rgba(68, 170, 255, 0.12);
    --accent-glow: rgba(68, 170, 255, 0.06);
    --font-body: 'Sora', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Korean */
html[lang="ko"] body,
html[lang="ko"] .hero-problem,
html[lang="ko"] .hero-answer,
html[lang="ko"] .system-scenario,
html[lang="ko"] .system-solution,
html[lang="ko"] .what-problem,
html[lang="ko"] .what-answer,
html[lang="ko"] .connect-card-title,
html[lang="ko"] .connect-card-desc {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

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

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav-scrolled {
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 26px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-lang {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    transition: all 0.3s;
}

.nav-lang:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-contact {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-contact:hover {
    color: var(--accent);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(68, 170, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 170, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 64px;
    animation: fadeDown 0.8s var(--ease) both;
}

.hero-title-main {
    display: block;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    display: block;
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
    margin-top: 16px;
}

.hero-problem {
    margin-bottom: 56px;
}

.hero-problem p:first-child {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-problem-detail {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 28px;
}

.hero-question {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
}

.hero-answer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 56px;
}

.hero-answer p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 8px;
}

.hero-answer-bold {
    font-size: clamp(20px, 2.5vw, 26px) !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.5 !important;
    margin-top: 12px !important;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3c4;
    box-shadow: 0 0 12px rgba(51, 204, 68, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Section Header ── */
.section-header {
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ── Core Systems ── */
.core-systems {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.system-card {
    margin-bottom: 24px;
}

.system-card-inner {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 40px;
    transition: all 0.4s var(--ease);
}

.system-card-inner:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.system-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
}

.system-name {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.system-type {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

html[lang="ko"] .system-type {
    font-family: 'Noto Sans KR', sans-serif;
}

.system-scenario {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.system-solution {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 24px;
    font-weight: 500;
}

.system-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.system-link:hover {
    border-bottom-color: var(--accent);
}

.link-arrow {
    font-size: 16px;
    transition: transform 0.3s var(--ease);
}

.system-link:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* Visual Image */
.visual-img-wrap {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.system-card-inner:hover .visual-img {
    filter: brightness(1);
    transform: scale(1.03);
}

/* ── What We Do ── */
.what-we-do {
    padding: 140px 0;
}

.what-content {
    max-width: 600px;
}

.what-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.what-problem {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.what-answer {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.what-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Connect ── */
.connect {
    padding: 140px 0;
    background: var(--bg-secondary);
}

.connect-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.connect-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.connect-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease);
    position: relative;
    cursor: pointer;
}

.connect-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.connect-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.connect-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.connect-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.connect-card-arrow {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--accent);
    margin-top: 20px;
    transition: transform 0.3s var(--ease);
}

.connect-card:hover .connect-card-arrow {
    transform: translateX(6px);
}

/* ── Contact Page ── */
.contact-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.contact-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-cat {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-cat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-cat-text {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select-wrap {
    position: relative;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 8px;
}

.form-submit:hover {
    opacity: 0.9;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success */
.contact-success {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(51, 204, 68, 0.15);
    color: #3c4;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-success h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-success p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.success-back {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    transition: opacity 0.3s;
}

.success-back:hover {
    opacity: 0.8;
}

/* ── Footer ── */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 48px;
}

.footer-logo-img {
    height: 22px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.system-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.system-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.system-card.reveal:nth-child(4) { transition-delay: 0.18s; }

.connect-card.reveal:nth-child(2) { transition-delay: 0.06s; }
.connect-card.reveal:nth-child(3) { transition-delay: 0.12s; }
.connect-card.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ── Animations ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    .system-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .system-card-inner {
        padding: 28px;
    }

    .visual-img-wrap {
        height: 180px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-categories {
        display: none;
    }

    .connect-grid {
        grid-template-columns: 1fr;
    }

    .connect-grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        margin-bottom: 48px;
    }

    .core-systems,
    .what-we-do,
    .connect {
        padding: 100px 0;
    }

    .system-name {
        font-size: 22px;
    }

    .connect-card {
        padding: 24px;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .contact-page {
        padding: 100px 0 60px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .nav-contact {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* ── Selection ── */
::selection {
    background: var(--accent-dim);
    color: var(--accent);
}