:root {
  --bg: #ffffff;
  --bg-dark: #080b10;
  --surface: #111520;
  --surface-2: #181e2c;
  --text: #0b1220;
  --text-light: #e8edf8;
  --muted: #8a99b8;
  --line: rgba(255, 255, 255, 0.1);
  --line-light: rgba(11, 18, 32, 0.1);
  --primary: #00e676;
  --primary-dim: #00c853;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans KR", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── TOPBAR ─── */
.topbar {
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 100%;
}

.topbar-inner {
  width: min(1160px, calc(100% - 3.2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.logo-mjk {
  background: var(--primary);
  color: #080b10;
  border-radius: 0;
  padding: 0.01em 0.15em;
  margin-right: -0.45em;
}

.logo-rest {
  color: #fff;
}

.topbar nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.topbar nav a:hover {
  color: #fff;
}

.topbar-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-outline-nav {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  transition: all 0.2s;
}

.btn-outline-nav:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ─── BUTTONS ─── */
.btn {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.72rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #051a0c;
}

.btn-primary:hover {
  background: #39ff8e;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost-dark {
  border-color: var(--line-light);
  color: var(--text);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: rgba(11, 18, 32, 0.3);
}

/* ─── HERO ─── */
.hero-section {
  background: var(--bg-dark);
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 1rem clamp(5rem, 12vw, 10rem);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 230, 118, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 150, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
  max-width: 1000px;
}

.hero-h1 .highlight {
  color: #fff;
}

.hero-h1 .accent {
  color: var(--primary);
}

.hero-sub {
  margin: 1.8rem auto 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ─── TRUST STRIP ─── */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line-light);
  padding: 1rem 1.6rem;
}

.trust-strip-inner {
  width: min(1160px, calc(100% - 3.2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.trust-strip p {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-tags span {
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.8rem;
}

/* ─── SECTION WRAPPER (LIGHT) ─── */
.section-light {
  background: #fff;
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.section-dark {
  background: var(--bg-dark);
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head .eyebrow {
  color: var(--primary);
}

.section-head h2 {
  margin: 0.5rem 0 0.8rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head h2 .accent {
  color: var(--primary);
}

.section-dark .section-head h2 {
  color: #fff;
}

.section-head p {
  margin: 0 auto;
  max-width: 480px;
  color: #64748b;
  font-size: 1rem;
}

.section-dark .section-head p {
  color: var(--muted);
}

/* ─── SERVICE CARDS (DARK CARDS ON LIGHT BG) ─── */
.dual-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.dual-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.dual-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dual-card h3 {
  margin: 0 0 0.4rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.3rem;
  color: #fff;
}

.dual-card > p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dual-card ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dual-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.dual-card ul li::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ─── THREE CARDS ─── */
.three-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.card-num {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-dim);
  letter-spacing: 0.1em;
  margin: 0 0 0.8rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* ─── PROCESS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.3), transparent);
}

.step-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.6rem;
  text-align: center;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--primary);
  color: #051a0c;
  margin-bottom: 1rem;
}

.step-item h3 {
  margin: 0 0 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  color: #fff;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* ─── PORTFOLIO (SPLIT LAYOUT) ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.portfolio-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-light);
  background: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  box-shadow: 0 16px 48px rgba(11, 18, 32, 0.1);
  transform: translateY(-2px);
}

.portfolio-card.featured {
  background: linear-gradient(135deg, #f0fff8, #e6f9f0);
  border-color: rgba(0, 200, 83, 0.2);
}

.port-tag {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin: 0 0 0.8rem;
}

.port-tag.soon {
  color: #0f766e;
}

.portfolio-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  color: var(--text);
}

.portfolio-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  flex: 1;
}

.portfolio-card a,
.portfolio-card .soon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #166534;
}

.portfolio-card .soon-label {
  color: #0f766e;
}

/* ─── CONTACT / CTA ─── */
.contact-section {
  background: var(--bg-dark);
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .eyebrow {
  color: var(--primary);
}

.contact-inner h2 {
  margin: 0.5rem 0 0.9rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.contact-inner p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 500px;
  font-size: 0.97rem;
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.6rem;
}

.footer-inner {
  width: min(1160px, calc(100% - 3.2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.83rem;
}

/* ─── ANIMATIONS ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { animation: fade-up 0.5s ease both; }
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.16s; }
.anim-d3 { animation-delay: 0.24s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .three-cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps::before { display: none; }

  .dual-cards,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner nav {
    display: none;
  }

  .hero-h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .three-cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
  }
}
