/* =============================================
   SPRONEXT NEXT Business — styles.css
   ============================================= */

:root {
  --teal: #00665f;
  --teal-dark: #002d2b;
  --teal-deep: #001c1b;
  --mint: #7fd8ce;
  --cyan: #4fc8da;
  --coral: #ff8a62;
  --ink: #111917;
  --muted: #667471;
  --paper: #f5faf8;
  --line: rgba(0, 102, 95, 0.16);
  --white: #ffffff;
  --header-h: 72px;
}

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

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

main,
section {
  overflow: visible;
}

section {
  scroll-margin-top: var(--header-h);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

/* ── Skip link ── */
.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;
}

/* ── Header ── */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 28, 27, 0.82), rgba(0, 28, 27, 0));
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 28, 27, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(210px, 44vw);
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  opacity: 0.88;
  transition: opacity 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed;
  z-index: 19;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 24px;
  background: rgba(0, 28, 27, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 14px 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.9;
}

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

.mobile-menu a:hover {
  opacity: 1;
  color: var(--mint);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 6vw, 86px) 72px;
  color: var(--white);
  touch-action: pan-y;
}

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

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

.hero-shade {
  background:
    radial-gradient(circle at 72% 34%, rgba(79, 200, 218, 0.22), transparent 36%),
    linear-gradient(90deg, rgba(0, 28, 27, 0.94) 0%, rgba(0, 45, 43, 0.86) 39%, rgba(0, 45, 43, 0.38) 72%, rgba(0, 28, 27, 0.66) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 28, 27, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 890px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.12;
  font-weight: 900;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}

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

.button.primary {
  color: var(--teal-deep);
  background: var(--white);
}

.button.primary:hover {
  background: var(--mint);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Hero panel ── */
.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 6vw, 86px);
  bottom: 48px;
  width: min(390px, calc(100% - 44px));
  padding: 22px;
  border-left: 3px solid var(--coral);
  background: rgba(0, 45, 43, 0.74);
  backdrop-filter: blur(18px);
}

.hero-panel span,
.hero-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.hero-panel p {
  margin: 10px 0 0;
  line-height: 1.6;
}

/* ── Section layout ── */
.section-inner {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.section-band {
  background: var(--white);
}

.section-block,
.section-band,
.contact {
  padding: clamp(72px, 10vw, 124px) 0;
}

.intro-grid,
.architecture-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.architecture h2,
.contact h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  font-weight: 900;
}

.intro p:last-child,
.architecture-copy,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 500;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

/* ── Service cards ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 45, 43, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 32px 72px rgba(0, 45, 43, 0.12);
  transform: translateY(-3px);
}

.card-index {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.service-card h3 {
  margin: 28px 0 14px;
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  font-weight: 500;
}

/* ── Architecture (dark band) ── */
.architecture {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 102, 95, 0.98), rgba(0, 28, 27, 0.98)),
    var(--teal);
}

.architecture .section-kicker {
  color: var(--mint);
}

.architecture h2,
.architecture-copy {
  color: var(--white);
}

.architecture-copy {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.75);
}

.architecture-stack {
  display: grid;
  gap: 12px;
}

.architecture-stack div {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.architecture-stack div:hover {
  background: rgba(255, 255, 255, 0.13);
}

.architecture-stack strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.architecture-stack span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

/* ── Process ── */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 260px;
  padding: 26px 24px;
  border-top: 4px solid var(--teal);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.process-list li:hover {
  box-shadow: 0 16px 48px rgba(0, 45, 43, 0.1);
}

.process-list span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-top: 42px;
  color: var(--teal-dark);
  font-size: 22px;
}

.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

/* ── Metrics ── */
.metrics {
  padding: 48px 0;
  background: var(--teal-dark);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metrics-grid div {
  padding: 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  text-align: center;
}

.metrics-grid strong {
  display: block;
  color: var(--mint);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
}

.metrics-grid span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

/* ── Contact ── */
.contact {
  background:
    linear-gradient(90deg, rgba(245, 250, 248, 0.98), rgba(245, 250, 248, 0.9)),
    url("./assets/spronext-erp-hero.png");
  background-size: cover;
  background-position: center;
}

.contact-grid {
  align-items: center;
}

.contact .button.primary {
  justify-self: end;
  color: var(--white);
  background: var(--teal);
}

.contact .button.primary:hover {
  background: var(--teal-dark);
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(22px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--teal);
  font-weight: 700;
}

.site-footer img {
  width: 178px;
  max-width: 44vw;
  height: auto;
  display: block;
}

/* ── Responsive: tablet ── */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 840px;
    align-items: start;
  }

  .hero-content {
    margin-top: 58px;
  }

  .hero-panel {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .intro-grid,
  .architecture-grid,
  .contact-grid,
  .service-grid,
  .process-list,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

  .contact .button.primary {
    justify-self: start;
  }
}

/* ── Responsive: mobile ── */
@media (max-width: 560px) {
  .site-header {
    padding: 0 18px;
  }

  .hero {
    min-height: 780px;
    padding: 96px 20px 238px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: calc(100% - 36px);
  }

  .section-block,
  .section-band,
  .contact {
    padding: 64px 0;
  }

  .section-heading {
    display: block;
  }

  .service-card {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .service-card,
  .architecture-stack div,
  .process-list li,
  .nav-toggle span,
  .site-header {
    transition: none;
  }
}
