/* 사주투데이 안내 페이지 — FlowDesk형 랜딩 레이아웃 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&display=swap");

:root {
  --g-paper: #fffdf9;
  --g-mist: #f3eee6;
  --g-ink: #1c1915;
  --g-muted: #6f675c;
  --g-line: #e6dfd3;
  --g-line-strong: #d4cbbb;
  --g-accent: #c45c3e;
  --g-accent-deep: #a3482f;
  --g-accent-soft: rgba(196, 92, 62, 0.1);
  --g-sky: #3d7ea6;
  --g-night: #1c1915;
  --g-panel: #2a241c;
  --g-card: #352e24;
  --g-night-ink: #f5efe6;
  --g-night-muted: #b8a990;
  --g-radius: 14px;
  --g-maxw: 1040px;
  --g-font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --g-display: "Shippori Mincho", "Apple SD Gothic Neo", serif;
}

.guide-page {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--g-font);
  background: var(--g-paper);
  color: var(--g-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

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

.guide-page a {
  color: inherit;
}

.guide-page :focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .guide-page .g-fade-up,
  .guide-page .g-demo-result,
  .guide-page .g-pillar {
    animation: none !important;
    transition: none !important;
  }
}

.g-wrap {
  max-width: var(--g-maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- nav ---------- */
.g-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 253, 249, 0.86);
  border-bottom: 1px solid var(--g-line);
}

.g-nav .g-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 60px;
}

.g-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  font-family: var(--g-display);
}

.g-logo img {
  width: 28px;
  height: 28px;
  display: block;
}

.g-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
}

.g-nav-links a {
  color: var(--g-muted);
  text-decoration: none;
}

.g-nav-links a:hover {
  color: var(--g-ink);
}

.g-nav-cta {
  background: var(--g-accent) !important;
  color: #fff !important;
  border-radius: 9px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
}

.g-nav-cta:hover {
  background: var(--g-accent-deep) !important;
}

@media (max-width: 640px) {
  .g-nav-links a.g-nav-plain {
    display: none;
  }
}

/* ---------- buttons ---------- */
.g-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.g-btn.primary {
  background: var(--g-accent);
  color: #fff;
}

.g-btn.primary:hover {
  background: var(--g-accent-deep);
}

.g-btn.ghost {
  background: var(--g-paper);
  color: var(--g-ink);
  border-color: var(--g-line-strong);
}

.g-btn.ghost:hover {
  border-color: var(--g-accent);
  color: var(--g-accent);
}

.g-meta-note {
  margin-top: 15px;
  font-size: 13px;
  color: var(--g-muted);
}

.g-meta-note a {
  color: var(--g-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.g-meta-note a:hover {
  color: var(--g-ink);
}

.g-kbd {
  font-family: inherit;
  background: var(--g-paper);
  border: 1px solid var(--g-line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  color: var(--g-ink);
}

/* ---------- hero ---------- */
.g-hero {
  position: relative;
  overflow: hidden;
  background: var(--g-mist);
  padding: 72px 0 64px;
}

.g-hero::before {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--g-accent);
  opacity: 0.12;
  pointer-events: none;
}

.g-hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--g-sky);
  opacity: 0.1;
  pointer-events: none;
}

.g-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .g-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
  }
}

.g-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--g-accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.g-hero h1 {
  font-family: var(--g-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.g-hero h1 b {
  font-weight: 700;
  background: linear-gradient(120deg, var(--g-accent) 0%, #d4784a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.g-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.g-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  font-size: 12.5px;
  color: var(--g-muted);
}

.g-arw {
  color: var(--g-line-strong);
  font-size: 13px;
}

.g-sub {
  font-size: 16px;
  color: var(--g-muted);
  max-width: 34em;
  margin-bottom: 8px;
}

.g-hero .g-btns {
  margin-top: 28px;
}

.g-fade-up {
  animation: gFadeUp 0.7s ease both;
}

.g-fade-up.d2 {
  animation-delay: 0.12s;
}

.g-fade-up.d3 {
  animation-delay: 0.24s;
}

@keyframes gFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- device mock ---------- */
.g-device {
  background: var(--g-night);
  border-radius: 18px;
  padding: 14px 14px 18px;
  color: var(--g-night-ink);
  box-shadow: 0 24px 48px rgba(28, 25, 21, 0.22);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.g-device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.g-device-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.g-device-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--g-night-muted);
  font-weight: 600;
}

.g-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.g-pillar {
  background: var(--g-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  animation: gPillarIn 0.6s ease both;
}

.g-pillar:nth-child(2) {
  animation-delay: 0.08s;
}
.g-pillar:nth-child(3) {
  animation-delay: 0.16s;
}
.g-pillar:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes gPillarIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.g-pillar .lab {
  font-size: 10px;
  color: var(--g-night-muted);
  margin-bottom: 4px;
}

.g-pillar .han {
  font-family: var(--g-display);
  font-size: 18px;
  font-weight: 700;
  color: #fdcb6e;
}

.g-pillar .sub {
  font-size: 10px;
  color: rgba(245, 239, 230, 0.55);
  margin-top: 2px;
}

.g-result-line {
  background: var(--g-panel);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.g-result-line .tag {
  font-size: 11px;
  color: #fdcb6e;
  font-weight: 600;
  margin-bottom: 6px;
}

.g-result-line p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--g-night-ink);
}

/* ---------- sections ---------- */
.g-sec {
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 60px;
}

.g-sec.alt {
  background: var(--g-mist);
}

.g-sec-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--g-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.g-sec h2 {
  font-family: var(--g-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.g-sec h2 .thin {
  font-weight: 500;
  color: var(--g-muted);
}

.g-sec h2 b {
  font-weight: 700;
}

.g-lead {
  font-size: 16px;
  color: var(--g-muted);
  max-width: 36em;
  margin: 0 0 28px;
}

.g-lead b {
  color: var(--g-ink);
  font-weight: 600;
}

.g-center {
  text-align: center;
}

.g-center .g-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- interactive demo ---------- */
.g-demo-device {
  max-width: 420px;
}

.g-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.g-demo-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--g-card);
  color: var(--g-night-ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.g-demo-chip:hover,
.g-demo-chip.is-on {
  background: rgba(196, 92, 62, 0.35);
  border-color: rgba(253, 203, 110, 0.45);
  color: #fff;
}

.g-demo-gender {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.g-demo-gender button {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--g-panel);
  color: var(--g-night-muted);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.g-demo-gender button.is-on {
  background: var(--g-accent);
  border-color: transparent;
  color: #fff;
}

.g-demo-result {
  min-height: 88px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.g-demo-result.is-swap {
  opacity: 0;
  transform: translateY(6px);
}

.g-demo-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--g-night-muted);
  text-align: center;
}

/* ---------- steps ---------- */
.g-steps {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

@media (min-width: 800px) {
  .g-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.g-step {
  background: var(--g-paper);
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius);
  padding: 24px 22px;
}

.g-sec.alt .g-step {
  background: var(--g-paper);
}

.g-step .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--g-accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.g-step h3 {
  font-family: var(--g-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.g-step p {
  font-size: 14.5px;
  color: var(--g-muted);
  margin: 0 0 12px;
}

.g-step .def {
  display: inline-block;
  font-size: 12.5px;
  background: var(--g-mist);
  color: var(--g-ink);
  border-radius: 8px;
  padding: 6px 10px;
}

/* ---------- feature rows ---------- */
.g-feature {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 860px) {
  .g-feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
  .g-feature.reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .g-feature.reverse .g-feature-copy {
    order: 2;
  }
  .g-feature.reverse .g-feature-visual {
    order: 1;
  }
}

.g-feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.g-feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--g-muted);
}

.g-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g-accent);
}

.g-mini-device {
  max-width: 300px;
}

.g-service-grid {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

@media (min-width: 700px) {
  .g-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .g-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.g-service {
  display: block;
  text-decoration: none;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius);
  padding: 22px 20px;
  background: var(--g-paper);
  transition: border-color 0.15s, transform 0.15s;
}

.g-service:hover {
  border-color: var(--g-accent);
  transform: translateY(-2px);
}

.g-service .ico {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.g-service h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.g-service p {
  margin: 0;
  font-size: 13.5px;
  color: var(--g-muted);
}

/* ---------- install / start ---------- */
.g-faq {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.g-faq-item {
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius);
  padding: 18px 20px;
  background: var(--g-paper);
}

.g-faq-item .platform {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--g-accent);
  background: var(--g-accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.g-faq-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.g-faq-item p {
  margin: 0;
  font-size: 14px;
  color: var(--g-muted);
}

/* ---------- footer ---------- */
.g-footer {
  border-top: 1px solid var(--g-line);
  padding: 40px 0 48px;
  background: var(--g-mist);
}

.g-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.g-footer p {
  font-size: 13px;
  color: var(--g-muted);
  margin: 8px 0 0;
}

.g-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 13px;
}

.g-footer-links a {
  color: var(--g-muted);
  text-decoration: none;
}

.g-footer-links a:hover {
  color: var(--g-ink);
}

.g-cta-banner {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(160deg, #2a241c 0%, #1c1915 100%);
  color: var(--g-night-ink);
}

.g-cta-banner h2 {
  font-family: var(--g-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.g-cta-banner p {
  color: var(--g-night-muted);
  margin: 0 0 24px;
}

.g-cta-banner .g-btn.primary {
  background: #fdcb6e;
  color: #1c1915;
}

.g-cta-banner .g-btn.primary:hover {
  background: #f3c05a;
}
