/* 옥타브 공개 페이지(랜딩, 안전, 서비스, 테스트) 공통 스타일.
   기존 landing.oct4ve.co.kr 의 디자인 토큰·컴포넌트를 그대로 가져왔고,
   그 아래에 같은 톤으로 섹션/헤더/FAQ 등을 덧붙였다. */

:root {
  --bg: #07070b;
  --surface: #101018;
  --border: rgba(255, 255, 255, 0.06);
  --grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --white: #ffffff;
  --muted: #8b8b9f;
  --purple-light: #c084fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* ── SITE HEADER (추가) ── */
.site-header {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--white);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--white);
}

/* ── GLOW BG ── */
.glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: 5rem auto 5rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  word-break: keep-all;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 400;
  word-break: keep-all;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-lead {
  max-width: 680px;
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  word-break: keep-all;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
}

.btn-primary:hover {
  filter: drop-shadow(0 8px 18px rgba(168, 85, 247, 0.35));
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.5);
}

/* ── 스토어 / 웹 시작 버튼 (슬러시 랜딩과 같은 형태) ── */
.start {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.web-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 50px;
  min-width: 169px;
  padding: 0 1.1rem 0 0.9rem;
  border-radius: 7px;
  background: #000;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
}

.web-btn:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.3));
}

.web-btn svg {
  width: 26px;
  height: 26px;
  color: var(--purple-light);
  flex-shrink: 0;
}

.web-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.web-btn-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.web-btn-main {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── PAGE HERO (서브 페이지) ── */
.page-hero {
  max-width: 1100px;
  margin: 4rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: keep-all;
  margin-bottom: 1rem;
}

.page-hero h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  word-break: keep-all;
}

/* ── SECTIONS (추가) ── */
.section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section + .section,
.features + .section,
.section + .features {
  margin-top: 6rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.section-desc {
  max-width: 680px;
  margin: 0.8rem auto 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  word-break: keep-all;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.9rem;
  word-break: keep-all;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.8rem 0 0.5rem;
}

.prose p {
  font-size: 0.95rem;
  color: #b9b9c9;
  line-height: 1.85;
  margin: 0.7rem 0;
  word-break: keep-all;
}

.prose ul,
.prose ol {
  margin: 0.8rem 0;
  padding-left: 1.3rem;
}

.prose li {
  font-size: 0.95rem;
  color: #b9b9c9;
  line-height: 1.85;
  margin: 0.35rem 0;
  word-break: keep-all;
}

.prose a {
  color: var(--purple-light);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose strong {
  color: var(--white);
}

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #a855f7;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
}

.notice p {
  margin: 0;
}

.updated {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #4a4a5e;
  text-align: center;
}

/* ── FEATURES (기존) ── */
.features {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.3);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
}

.card-body {
  padding: 1.25rem 1.4rem;
}

.card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}

/* 링크가 되는 카드 (추가) */
a.card {
  text-decoration: none;
  color: inherit;
}

.card-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-light);
}

.card-text .card-body {
  padding: 1.5rem 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* ── FEATURE BANNER (테스트 등) ── */
.banner {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(168, 85, 247, 0.05);
}

.banner h2 {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  word-break: keep-all;
}

.banner p {
  max-width: 600px;
  margin: 0 auto 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  word-break: keep-all;
}

/* ── FAQ (펼쳐진 상태로 고정) ── */
.faq {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 1.4rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  word-break: keep-all;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.85;
  word-break: keep-all;
}

.faq-item a {
  color: var(--purple-light);
}

/* ── 한 줄 요약 목록 (안전 정책 등) ── */
.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.points h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  word-break: keep-all;
}

.points p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  word-break: keep-all;
}

.web-link.more-link {
  display: block;
  text-align: center;
  margin-top: 1.4rem;
}

/* ── BOTTOM CTA (기존) ── */
.bottom-cta-wrap {
  max-width: 1000px;
  margin: 6rem auto 1rem;
  padding: 0 2rem;
  width: 100%;
}

.bottom-cta {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(168, 85, 247, 0.05);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.cta-subtitle:empty {
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-link {
  display: block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s;
  border-radius: 8px;
}

.badge-link:hover {
  transform: translateY(-4px) scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.3));
}

.badge-link img {
  height: 50px;
  border-radius: 8px;
  display: block;
}

.web-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.web-link:hover {
  color: var(--purple-light);
}

/* ── FOOTER (기존 + 링크 줄 추가) ── */
footer {
  margin-top: 5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.2rem;
}

.foot-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.foot-links a:hover {
  color: var(--white);
}

.foot-company {
  font-size: 0.75rem;
  color: #4a4a5e;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.foot-copy {
  font-size: 0.75rem;
  color: #4a4a5e;
  font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
  .grid-4,
  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .feat-grid,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .feat-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .points {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 1rem 1.5rem 0;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .page-hero {
    margin: 2.5rem auto 2rem;
    padding: 0 1.5rem;
  }

  .features,
  .section {
    padding: 0 1.5rem;
  }

  .section + .section,
  .features + .section,
  .section + .features {
    margin-top: 4rem;
  }

  .bottom-cta-wrap {
    padding: 0 1.5rem;
  }

  .bottom-cta {
    padding: 3rem 1.5rem;
  }

  .banner {
    padding: 2.2rem 1.4rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 0.9rem;
  }

  .badge-link img {
    height: 44px;
  }
}
