/* ===== PARK GOLF — Portal (대문) ===== */
:root{
  --bg:#090c12;
  --panel:#10141d;
  --panel-hi:#161b27;
  --ink:#f2f1ea;
  --ink-dim:#9aa3b2;
  --ink-faint:#586273;
  --line:rgba(255,255,255,.08);
  --line-hi:rgba(255,255,255,.18);
  --mint:#35e3a3;
  --serif:Georgia,"Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI","Malgun Gothic",sans-serif;
  --mono:"Consolas","SF Mono",Menlo,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;
  min-height:100vh;
  padding:clamp(20px,3.4vw,46px);
  overflow-x:hidden;
}

/* ---- background ---- */
.bg-grid,.bg-glow{position:fixed;inset:0;z-index:-1;pointer-events:none}
.bg-grid{
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:66px 66px;
  -webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 38%,#000,transparent 100%);
          mask-image:radial-gradient(ellipse 80% 70% at 50% 38%,#000,transparent 100%);
}
.bg-glow{
  background:
    radial-gradient(620px 420px at 18% 8%,rgba(53,227,163,.14),transparent 70%),
    radial-gradient(680px 520px at 92% 96%,rgba(92,200,255,.10),transparent 72%);
}

/* (상단 헤더 브랜드 및 RESERVATION/REVIEW CTA는 제거됨 — 히어로 중앙 .subgates 참고) */

/* ---- hero ---- */
.hero{
  flex:1;
  display:flex;flex-direction:column;justify-content:center;
  max-width:1180px;width:100%;margin:0 auto;
  padding:clamp(40px,7vh,90px) 0;
}
.title-row{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  margin-bottom:clamp(40px,6vh,72px);
}
.title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(3.1rem,8.4vw,6.7rem);
  line-height:.98;letter-spacing:-.02em;
  animation:rise .9s .16s both;
}
.title .period{color:var(--mint)}
/* ---- gates ---- */
.gates{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,1.7vw,22px);
}
.gate{
  --accent:#35e3a3;
  position:relative;
  display:flex;flex-direction:column;
  min-height:300px;
  padding:clamp(22px,2vw,30px);
  background:linear-gradient(170deg,var(--panel-hi),var(--panel));
  border:1px solid var(--line);
  border-radius:16px;
  text-decoration:none;color:inherit;
  overflow:hidden;
  transition:transform .32s cubic-bezier(.2,.7,.2,1),border-color .32s,box-shadow .32s;
  animation:rise .8s both;
}
.gate:nth-child(1){animation-delay:.34s}
.gate:nth-child(2){animation-delay:.42s}
.gate:nth-child(3){animation-delay:.5s}
.gate:nth-child(4){animation-delay:.58s}
.gate::before{
  content:"";position:absolute;left:0;top:0;right:0;height:3px;
  background:var(--accent);
  transform:scaleX(0);transform-origin:left;
  transition:transform .36s cubic-bezier(.2,.7,.2,1);
}
.gate::after{
  content:"";position:absolute;right:-40%;top:-40%;
  width:80%;height:80%;border-radius:50%;
  background:radial-gradient(circle,var(--accent),transparent 70%);
  opacity:0;transition:opacity .36s;
}
.gate:hover,.gate:focus-visible{
  transform:translateY(-8px);
  border-color:color-mix(in srgb,var(--accent) 55%,transparent);
  box-shadow:0 24px 50px -22px rgba(0,0,0,.85);
  outline:none;
}
.gate:hover::before,.gate:focus-visible::before{transform:scaleX(1)}
.gate:hover::after,.gate:focus-visible::after{opacity:.13}

.gate-head{
  display:flex;justify-content:space-between;align-items:flex-start;
  margin-bottom:auto;
}
.gate-no{
  font-family:var(--mono);font-size:1.55rem;font-weight:700;
  color:var(--ink-faint);transition:color .3s;
}
.gate:hover .gate-no,.gate:focus-visible .gate-no{color:var(--accent)}
.gate-tag{
  display:flex;align-items:center;gap:7px;
  font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;
  color:var(--ink-dim);
  border:1px solid var(--line);border-radius:100px;
  padding:6px 11px;
}
.led{
  width:7px;height:7px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 8px var(--accent);
}
.gate--demo .gate-tag{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,transparent)}
.gate--soon .led{animation:blink 2.4s infinite}

.gate-body{margin:34px 0 24px}
.gate-name{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.9rem,2.7vw,2.45rem);
  line-height:1.05;margin-bottom:12px;letter-spacing:-.01em;
  word-break:keep-all;
}
.gate-ko{
  font-family:var(--sans);font-weight:700;font-size:.78rem;letter-spacing:.1em;
  color:var(--accent);margin-bottom:14px;text-transform:uppercase;
}

.gate-go{
  display:flex;align-items:center;gap:9px;
  font-size:.84rem;font-weight:600;letter-spacing:.04em;
  color:var(--ink);padding-top:18px;
  border-top:1px solid var(--line);
}
.arw{font-style:normal;transition:transform .3s;color:var(--accent);font-size:1.05rem}
.gate:hover .arw,.gate:focus-visible .arw{transform:translateX(6px)}

/* ---- 문서 게이트 (QR 서비스 정책 · 기획 개요) — product 게이트 위, 가로로 더 넓은 2분할 ---- */
.subgates{
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(14px,1.7vw,22px);
  margin-bottom:clamp(14px,1.7vw,22px);
}
.subgates .gate{min-height:auto}
.gate--doc .gate-tag{
  color:var(--accent);
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);
}

/* QR 서비스 정책 + QR Client 정책 — 세로 스택(각 반높이) */
.gate-stack{display:flex;flex-direction:column;gap:12px}
.gate-stack .gate{flex:1}
.gate--compact{min-height:auto}
.gate--compact .gate-body{margin:16px 0 14px}
.gate--compact .gate-name{font-size:clamp(1.5rem,2.1vw,1.85rem);margin-bottom:8px}
.gate--compact .gate-go{padding-top:12px}
/* 기획서(정책 스택 옆 단일 doc 게이트) — 늘어난 칸에서 이름을 상하 가운데로
   (head는 상단 margin-bottom:auto, body에 margin-bottom:auto 추가 → 위아래 auto 여백이 균등 분배) */
.subgates > .gate--doc .gate-body{margin-bottom:auto}
.gate-sub{
  --accent:#f5b54a;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 18px;
  background:linear-gradient(170deg,var(--panel-hi),var(--panel));
  border:1px solid var(--line);border-radius:12px;
  text-decoration:none;color:var(--ink-dim);
  transition:transform .28s cubic-bezier(.2,.7,.2,1),border-color .28s,color .28s;
  animation:rise .8s .46s both;
}
.gate-sub:hover,.gate-sub:focus-visible{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--accent) 50%,transparent);
  color:var(--ink);
  outline:none;
}
.gate-sub .gs-name{
  display:flex;align-items:center;gap:9px;
  font-family:var(--sans);font-weight:700;font-size:.84rem;letter-spacing:.06em;
}
.gate-sub .gs-go{
  display:flex;align-items:center;gap:7px;
  font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;font-weight:700;
  color:var(--ink-faint);transition:color .28s;
}
.gate-sub:hover .gs-go{color:var(--accent)}
.gate-sub:hover .arw{transform:translateX(5px)}

/* ---- animations ---- */
@keyframes rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:translateY(0)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}

/* ---- responsive ---- */
@media(max-width:1080px){
  .gates{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .gates{grid-template-columns:1fr}
  .gate{min-height:auto}
  .gate-body{margin:26px 0 22px}
  .gate-head{align-items:center}
  .subgates{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ---- 기획서 열: 기획서 게이트 + 표면별 서브 링크(Client / Web / App) ---- */
.gate-col{display:flex;flex-direction:column;gap:12px}
.gate-col > .gate{flex:1}
.gate-col > .gate--doc .gate-body{margin-bottom:auto}
.gate-subs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gate-sub .led{background:var(--accent);box-shadow:0 0 8px var(--accent)}
@media(max-width:860px){.gate-subs{grid-template-columns:1fr}}

/* ---- 준비 중 데모 게이트 (기획서 반영 전) ---- */
.gate--soon .gate-tag{color:var(--ink-dim);border-color:var(--line)}
.gate--soon .gate-name{color:var(--ink-dim)}
.gate--soon:hover .gate-name{color:var(--ink)}
/* 서브 링크는 한 줄 고정 (표면 이름 + 화살표) */
.gate-subs .gate-sub{padding:10px 14px;min-width:0}
.gate-subs .gs-name{white-space:nowrap;font-family:var(--mono);font-size:.74rem;letter-spacing:.12em}
.gate-subs .gs-go{flex:0 0 auto}

/* Document navigation */
.planning-card .gate-name a{color:inherit;text-decoration:none;display:block;padding-bottom:24px}
.planning-card .gate-subs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.planning-card .gate-sub{display:flex;justify-content:space-between;padding:18px;min-height:60px;color:var(--ink)}
.gate--compact{min-height:110px}.gates{grid-template-columns:1fr}.gate--demo{min-height:100px}.gate--demo .gate-name{font-size:1.6rem}
body{padding-top:0}.hero{padding-top:40px}.title-row{margin-bottom:32px}
@media(max-width:600px){.planning-card .gate-subs{grid-template-columns:1fr}.subgates{grid-template-columns:1fr}}

/* Restrained color and framing; no additional copy. */
.gate{background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 14%,transparent),transparent 68%),linear-gradient(145deg,#1a2537,#111a29);border-color:color-mix(in srgb,var(--accent) 26%,#233147);box-shadow:0 12px 32px #0002}
.gate::before{transform:scaleX(1);height:2px;background:linear-gradient(90deg,var(--accent),transparent)}
.gate-name{color:#e9f1ff}.gate--compact .gate-name{font-family:var(--sans);font-size:1.5rem;font-weight:650;letter-spacing:-.035em}
.planning-card .gate-name{font-family:var(--sans);font-size:1.7rem;font-weight:650;letter-spacing:-.035em}
.planning-card .gate-sub{background:linear-gradient(120deg,#202b43,#182238);border-color:#48516c;color:#d8def5;box-shadow:inset 0 1px #ffffff07}
.planning-card .gate-sub:hover{background:linear-gradient(120deg,#303556,#202c44);border-color:#b79bff}
.planning-card .gate-sub:nth-child(2){border-left:3px solid #b8d978}.planning-card .gate-sub:nth-child(3){border-left:3px solid #6abce9}.planning-card .gate-sub:nth-child(4){border-left:3px solid #bd9bea}
.gate--demo{background:radial-gradient(ellipse at 92% 0%,#83b4541c,transparent 55%),linear-gradient(110deg,#1c2b30,#172331)}
.screen-gates{grid-template-columns:repeat(3,minmax(0,1fr))}.screen-gates .gate{background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 65%),linear-gradient(125deg,#1e2b3e,#152030)}.screen-gates .gate-name{font-family:var(--sans);font-size:1.5rem;font-weight:650}
@media(max-width:700px){.screen-gates{grid-template-columns:1fr}}

/* Portal icon tiles */
.title{font-size:clamp(2.6rem,8vw,6.4rem)}
.gate::after{pointer-events:none}
.gate--compact .gate-body,.screen-gates .gate-body{display:flex;align-items:center;gap:20px;margin:12px 0}
.gate--compact .gate-name,.screen-gates .gate-name{margin:0;line-height:1.25}
.icon-tile{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:56px;height:56px;border:1px solid color-mix(in srgb,var(--accent) 36%,transparent);border-radius:16px;color:var(--accent);background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 20%,#162333),#152334);box-shadow:inset 0 1px #ffffff16,0 8px 20px #0002;transition:transform .25s,box-shadow .25s}
.icon-tile svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.gate:hover>.gate-body>.icon-tile{transform:translateY(-2px) rotate(-3deg);box-shadow:inset 0 1px #ffffff20,0 8px 24px color-mix(in srgb,var(--accent) 15%,transparent)}
.planning-card .gate-name a{display:flex;align-items:center;gap:16px;padding-bottom:16px}
.gate-sub-label{display:flex;align-items:center;gap:10px;min-width:0}
.icon-tile--small{width:30px;height:30px;border-radius:9px;box-shadow:inset 0 1px #ffffff0c}
.icon-tile--small svg{width:18px;height:18px}
.planning-card .gate-sub{--accent:#b79bff;padding:14px}
.planning-card .gate-sub:nth-child(2){--accent:#b8d978}.planning-card .gate-sub:nth-child(3){--accent:#6abce9}.planning-card .gate-sub:nth-child(4){--accent:#bd9bea}
@media(max-width:1080px) and (min-width:701px){.screen-gates .gate-body{gap:12px}.screen-gates .icon-tile{width:44px;height:44px}.screen-gates .gate-name{font-size:1.2rem}.screen-gates .gate{padding:20px}}
@media(max-width:380px){.gate--compact .gate-body,.screen-gates .gate-body{gap:14px}.icon-tile{width:48px;height:48px}}

/* Keep planning entries visible while editing is deferred. */
button.gate,button.gate-sub{width:100%;font:inherit;text-align:left;appearance:none}
.gate:disabled,.planning-card .gate-sub:disabled{--accent:#8591a3;color:#8591a3;border-color:#353e4e;background:linear-gradient(120deg,#1a2332,#151d2a);cursor:not-allowed;transform:none;box-shadow:none}
.gate:disabled::before,.gate:disabled::after{display:none}
.planning-card .gate-sub:disabled{border-left-color:#515b6b}
.planning-card .gate-sub:disabled .icon-tile{opacity:.55}
.gate-sub-state{font:500 11px/1.4 var(--sans);color:#8591a3;white-space:nowrap}
.gate-heading{font-size:1.5rem;font-weight:700}
button.gate:disabled{justify-content:center;gap:8px}
.policy-card .gate-body{margin:0 0 20px}
.policy-gate-sections{display:grid;gap:10px;margin-left:76px;color:#adbdcf;font-size:14px;line-height:1.5}
@media(max-width:380px){.policy-gate-sections{margin-left:62px;font-size:13px}}
