/* =============================================
   SPRONEXT Gateway — gateway.css
   ============================================= */

:root {
  --teal: #00665f;
  --teal-dark: #002d2b;
  --teal-deep: #001c1b;
  --mint: #7fd8ce;
  --cyan: #4fc8da;
  --coral: #ff8a62;
  --white: #ffffff;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background: var(--teal-deep);
  font-family: "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

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

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* ── Gateway layout ── */
.gateway {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 28px clamp(22px, 5vw, 72px) 30px;
}

.gateway-media,
.gateway-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gateway-media {
  background-image: url("./assets/spronext-gateway-hero.png");
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.02);
  will-change: transform;
}

.gateway-shade {
  background:
    radial-gradient(circle at 50% 30%, rgba(79, 200, 218, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(0, 28, 27, 0.78), rgba(0, 61, 57, 0.22) 48%, rgba(0, 28, 27, 0.72)),
    linear-gradient(180deg, rgba(0, 28, 27, 0.32), rgba(0, 28, 27, 0.68));
}

.gateway-header,
.gateway-hero,
.path-grid,
.gateway-footer {
  position: relative;
  z-index: 2;
}

/* ── Header ── */
.gateway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gateway-header img {
  display: block;
  width: min(214px, 45vw);
  height: auto;
}

.gateway-header span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Hero ── */
.gateway-hero {
  align-self: center;
  justify-self: center;
  max-width: 860px;
  padding: clamp(58px, 8vh, 92px) 0 30px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gateway-hero h1 {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.16;
  font-weight: 900;
  text-shadow: 0 18px 52px rgba(0, 20, 18, 0.58);
}

.gateway-copy {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.82;
  font-weight: 500;
  text-shadow: 0 12px 36px rgba(0, 20, 18, 0.65);
}

/* ── Path cards ── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  margin: auto auto 0;
}

.path-card {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 45, 43, 0.46), rgba(0, 28, 27, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 60px rgba(0, 20, 18, 0.22);
  backdrop-filter: blur(9px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  text-align: center;
  cursor: pointer;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(135deg, rgba(127, 216, 206, 0.24), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(255, 138, 98, 0.28), transparent 26%);
  pointer-events: none;
}

.path-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--coral);
  transition: width 200ms ease;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 216, 206, 0.64);
  background: linear-gradient(135deg, rgba(0, 73, 68, 0.54), rgba(0, 28, 27, 0.38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 32px 72px rgba(0, 20, 18, 0.32);
}

.path-card:hover::after {
  width: 6px;
}

.path-card:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.path-tag,
.path-card h2,
.path-card p,
.path-card strong {
  position: relative;
  z-index: 1;
}

.path-tag {
  color: var(--mint);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.path-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.path-card p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}

.path-card strong {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--mint);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  transition: border-color 200ms ease;
}

.path-card:hover strong {
  border-color: var(--cyan);
}

.business-card {
  background: linear-gradient(135deg, rgba(0, 45, 43, 0.5), rgba(0, 28, 27, 0.32));
}

.marketing-card::after {
  background: var(--cyan);
}

/* ── Footer ── */
.gateway-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.gateway-footer span:first-child {
  color: var(--white);
  font-weight: 900;
}

/* ── Responsive: tablet ── */
@media (max-width: 840px) {
  .gateway {
    min-height: 100svh;
    padding: 20px 18px 24px;
    grid-template-rows: auto auto 1fr auto;
  }

  .gateway-media {
    background-position: 54% top;
    transform: scale(1.06);
  }

  .gateway-shade {
    background:
      radial-gradient(circle at 52% 20%, rgba(79, 200, 218, 0.14), transparent 28%),
      linear-gradient(180deg, rgba(0, 28, 27, 0.58), rgba(0, 28, 27, 0.7) 42%, rgba(0, 28, 27, 0.9));
  }

  .gateway-header {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .gateway-header img {
    width: min(190px, 64vw);
  }

  .gateway-header span {
    display: none;
  }

  .gateway-hero {
    padding: 58px 0 24px;
  }

  .gateway-hero h1 {
    max-width: 560px;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.18;
  }

  .gateway-copy {
    max-width: 560px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.74;
  }

  .path-grid {
    grid-template-columns: 1fr;
    align-self: start;
    gap: 12px;
    width: min(560px, 100%);
  }

  .path-card {
    min-height: 190px;
    padding: 24px 22px;
  }

  .path-card h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .path-card p {
    font-size: 13px;
  }

  .path-card strong {
    margin-top: 20px;
    font-size: 13px;
  }

  .gateway-footer {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    text-align: center;
    font-size: 11px;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 420px) {
  .gateway {
    padding: 18px 16px 22px;
  }

  .gateway-hero {
    padding: 44px 0 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .gateway-hero h1 {
    font-size: clamp(28px, 9.5vw, 35px);
  }

  .gateway-copy {
    font-size: 13px;
  }

  .path-card {
    min-height: 176px;
    padding: 22px 18px;
  }

  .path-card h2 {
    margin: 12px 0 10px;
    font-size: 30px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .path-card,
  .path-card::after,
  .path-card strong {
    transition: none;
  }
}
