/* =========================================================================
   (사)인천청년창업협회 — istartup.or.kr
   Design system & styles
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy:        #11345e;   /* primary brand navy (from official BI) */
  --navy-link:   #17436f;
  --navy-800:    #0c2645;   /* footer / deep surfaces */
  --navy-900:    #0a1f39;
  --tint:        #f2f5f9;   /* alternating section surface */
  --tint-2:      #e9eff6;
  --accent:      #c79a45;   /* brass — decorative only (contrast-safe as decor) */
  --accent-deep: #8a6420;   /* brass for text use (AA on white) */

  /* Ink & UI */
  --ink:     #1b2432;
  --muted:   #566274;
  --faint:   #7c8698;
  --line:    #e3e8ef;
  --line-2:  #d4dbe6;
  --white:   #ffffff;

  /* Footer text on navy */
  --on-navy:        #eef2f8;
  --on-navy-muted:  #a9b7cc;

  /* Type */
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  /* Metrics */
  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 60, .05), 0 2px 8px rgba(16, 33, 60, .04);
  --shadow-md: 0 10px 30px rgba(12, 38, 69, .10), 0 2px 8px rgba(12, 38, 69, .06);
  --ring: 0 0 0 3px rgba(17, 52, 94, .28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* offset sticky header for in-page anchors */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'tnum';
  text-rendering: optimizeLegibility;
}

/* Korean-friendly wrapping everywhere */
h1, h2, h3, h4, p, li, dt, dd, figcaption, blockquote {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--navy-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility helpers ---------- */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
:where(a, button):focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(3.75rem, 8vw, 6.5rem);
}
.section--tint { background: var(--tint); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
}
.section__intro {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 33, 60, .03), 0 6px 20px rgba(16, 33, 60, .05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand__sub {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav { }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.6vw, 1.4rem);
  flex-wrap: wrap;
}
.nav__link {
  display: inline-block;
  padding: .5rem .35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.nav__link:hover { color: var(--navy); text-decoration: none; }
.nav__link::after {
  content: "";
  position: absolute;
  left: .35rem; right: .35rem; bottom: .15rem;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  border-radius: 2px;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 52, 94, .22);
}
.btn--primary:hover { background: #0e2c50; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17, 52, 94, .28); }
.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 480px at 82% -10%, rgba(17, 52, 94, .06), transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.25rem, 7vw, 6rem);
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.hero h1 .accent { color: var(--navy); }
.hero__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: #33405a;
  max-width: 34rem;
  font-weight: 500;
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.hero__meta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__meta div { line-height: 1.35; }
.hero__meta dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .25rem;
}
.hero__meta dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.02rem; }

/* Seal card (right) */
.seal {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  text-align: center;
  isolation: isolate;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(199, 154, 69, .5), rgba(17, 52, 94, .12) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.seal__emblem {
  width: clamp(150px, 20vw, 190px);
  height: auto;
  margin: 0 auto .4rem;
}
.seal__rule {
  width: 46px; height: 2px;
  background: var(--accent);
  border: 0;
  margin: 1.1rem auto;
  border-radius: 2px;
}
.seal__name { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.seal__en {
  margin-top: .35rem;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.seal__est {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .3rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Business grid ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.biz-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.biz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.biz-card__num {
  flex: none;
  font-size: .95rem;
  font-weight: 800;
  color: var(--accent-deep);
  font-feature-settings: 'tnum';
  min-width: 2.2rem;
  padding-top: .1rem;
  letter-spacing: .02em;
}
.biz-card__text {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}
.biz-card--wide { grid-column: 1 / -1; background: var(--tint); box-shadow: none; }

/* ---------- Timeline (history) ---------- */
.timeline {
  position: relative;
  margin-top: .5rem;
  padding-left: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: .4rem; bottom: .4rem;
  width: 2px;
  background: linear-gradient(var(--line-2), var(--line));
}
.tl-item {
  position: relative;
  padding: 0 0 2.2rem 1.75rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.75rem; top: .35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px #fff;
}
.tl-date {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-deep);
  font-feature-settings: 'tnum';
}
.tl-title {
  margin-top: .3rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
}
.tl-desc { margin-top: .35rem; color: var(--muted); font-size: .98rem; }

/* ---------- Membership ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.panel--feature { grid-column: 1 / -1; }
.panel__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.panel__label::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
}
.panel h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.panel__note {
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

/* Requirement / benefit lists */
.ruled-list > li {
  display: flex;
  gap: .85rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.ruled-list > li:first-child { border-top: 0; padding-top: 0; }
.ruled-list .mark {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint-2);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  margin-top: .05rem;
}
.ruled-list .mark--check { background: rgba(17,52,94,.08); }

/* Fee highlight */
.fee-figure {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  background: var(--tint);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.fee-figure__amt { font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.fee-figure__unit { font-size: 1rem; font-weight: 700; color: var(--navy); }
.fee-figure__tag {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(199,154,69,.14);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* Membership status callout */
.callout {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--navy);
  background: var(--tint);
  border-radius: var(--radius-sm);
}
.callout__icon {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--navy);
}
.callout__title { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.callout__body { color: var(--muted); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-800);
  color: var(--on-navy);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__mark { width: 56px; height: 56px; flex: none; opacity: .96; }
.footer__org { font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer__org-en { color: var(--on-navy-muted); font-size: .82rem; letter-spacing: .06em; margin-top: .2rem; }
.footer__mission { margin-top: .9rem; color: var(--on-navy-muted); max-width: 32rem; font-size: .96rem; line-height: 1.7; }

.footer__info { font-size: .95rem; }
.footer__info dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; }
.footer__info dt { color: var(--on-navy-muted); font-weight: 600; white-space: nowrap; }
.footer__info dd { margin: 0; color: var(--on-navy); }
.footer__info a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.35); }
.footer__info a:hover { text-decoration-color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  color: var(--on-navy-muted);
  font-size: .86rem;
}
.footer__bottom a { color: var(--on-navy-muted); }

/* ---------- Scroll reveal (progressive enhancement) ----------
   Only hidden when the `reveal-on` class is present on <html>, which an
   inline head script adds only when JS is available AND motion is allowed.
   Without JS (or with reduced motion) content is fully visible by default. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal { opacity: 0; transform: translateY(14px); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .seal { max-width: 380px; margin-inline: auto; order: -1; }
  .footer__top { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .biz-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .header__inner { min-height: 60px; }
  .brand__sub { display: none; }
  .nav__list { gap: .1rem .55rem; }
  .nav__link { font-size: .88rem; padding: .4rem .25rem; }
  .fee-figure__tag { margin-left: 0; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__actions, .skip-link { display: none; }
  body { color: #000; }
  a { color: #000; }
}
