/* ===== RINGRING 소개 사이트 — DESIGN.md 토큰 기반 ===== */
:root {
  --primary: #FF7043;
  --primary-strong: #FF8A65;
  --secondary: #26C6DA;
  --secondary-strong: #80DEEA;
  --bg: #FFFAF5;
  --hero-bg: #FFF0EA;
  --surface: #FFFFFF;
  --surface-muted: #F5F5F5;
  --text: #222222;
  --text-2: #888888;
  --text-3: #BBBBBB;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(255, 112, 67, 0.10);
  --shadow-soft: 0 4px 16px rgba(34, 34, 34, 0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand-logo { display: block; height: 28px; width: auto; }
.nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--text-2);
}
.nav a:hover { color: var(--primary); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-3);
}
.lang-toggle .lang-opt.is-active { color: var(--primary); }
.lang-toggle .lang-sep { color: var(--text-3); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--bg) 100%);
  padding: 72px 0 64px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(255, 112, 67, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 18px;
  color: var(--text-2);
  margin: 0 0 28px;
  max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary.is-soon { cursor: default; opacity: 0.92; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(34, 34, 34, 0.12);
}
.btn-ghost:hover { transform: translateY(-1px); }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

/* ===== Phone mockup ===== */
.hero-art { position: relative; display: flex; justify-content: center; }
/* 폰 뒤 브랜드 글로우 — 입체 후광 */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: 0;
  background:
    radial-gradient(42% 38% at 32% 28%, rgba(255, 112, 67, 0.30) 0%, transparent 70%),
    radial-gradient(46% 42% at 74% 72%, rgba(38, 198, 218, 0.24) 0%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: 270px;
  max-width: 72vw;
  border-radius: 38px;
  padding: 7px;
  background: #1d1d1f;
  box-shadow: 0 24px 60px rgba(34, 34, 34, 0.22), 0 8px 24px rgba(255, 112, 67, 0.14);
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  /* 원본 비율 1206×2622에서 하단 탭바(다이어리 메뉴 포함)를 잘라낸 비율 */
  aspect-ratio: 1206 / 2300;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tint { background: var(--hero-bg); }
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 17px;
  margin: 0 auto 44px;
  max-width: 52ch;
}

/* ===== Feature grid ===== */
.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft), 0 18px 40px rgba(255, 112, 67, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(34, 34, 34, 0.06), 0 24px 48px rgba(255, 112, 67, 0.12);
}
.card-ico {
  position: relative;
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  /* 입체 글로시 타일 — 그라데이션 + 내부 하이라이트 + 다층 그림자 */
  background: linear-gradient(150deg, #FFE3D6 0%, #FFD0BE 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(255, 112, 67, 0.18),
    0 8px 16px rgba(255, 112, 67, 0.22);
  margin-bottom: 16px;
}
/* 타일 위 글로시 하이라이트 */
.card-ico::after {
  content: "";
  position: absolute;
  inset: 2px 2px 50% 2px;
  border-radius: calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px) 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, transparent 100%);
  pointer-events: none;
}
/* 짝수 카드 아이콘은 시안 톤으로 색 다양성 */
.features .card:nth-child(even) .card-ico {
  background: linear-gradient(150deg, #D6F4F8 0%, #BCEBF1 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(38, 198, 218, 0.18),
    0 8px 16px rgba(38, 198, 218, 0.22);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ===== Screens ===== */
.screens { grid-template-columns: repeat(3, 1fr); align-items: start; column-gap: 4px; row-gap: 56px; }
.screen { margin: 0; text-align: center; }
.screen .phone { width: 100%; max-width: 246px; margin: 0 auto 18px; }
.screen figcaption strong { display: block; font-size: 16px; margin-bottom: 4px; }
.screen figcaption span { display: block; color: var(--text-2); font-size: 14px; }

/* ===== Care items ===== */
.care-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 999px;
  padding: 12px 22px 12px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(34, 34, 34, 0.04);
}
.chip-ico {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #FFE3D6 0%, #FFD0BE 100%);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(255, 112, 67, 0.18),
    0 4px 10px rgba(255, 112, 67, 0.18);
}
.chip strong { display: block; font-size: 15px; }
.chip em { font-style: normal; font-size: 13px; color: var(--text-3); }
/* 케어 칩을 3 + 4 두 줄로 강제 줄바꿈 */
.row-break { flex-basis: 100%; height: 0; margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) { .row-break { display: none; } }

/* ===== Privacy ===== */
.privacy-inner { text-align: center; max-width: 640px; }
.privacy-ico {
  position: relative;
  font-size: 40px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  background: linear-gradient(150deg, #FFFFFF 0%, #FFF0EA 100%);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(255, 112, 67, 0.18);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: 44px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-icon { border-radius: 12px; }
.footer-brand strong { display: block; font-size: 17px; }
.footer-brand span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.footer-soon { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.footer-copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ===== 입체 그래픽 — 떠다니는 그라데이션 오브 ===== */
.orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.7;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb--coral {
  background: radial-gradient(circle at 32% 30%, #FFB59B 0%, #FF7043 70%);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.28), inset 0 6px 12px rgba(255, 255, 255, 0.5);
}
.orb--cyan {
  background: radial-gradient(circle at 32% 30%, #9BE7F0 0%, #26C6DA 72%);
  box-shadow: 0 20px 40px rgba(38, 198, 218, 0.26), inset 0 6px 12px rgba(255, 255, 255, 0.5);
}
.orb--ring {
  background: transparent;
  border: 10px solid rgba(255, 138, 101, 0.35);
  box-shadow: 0 16px 32px rgba(255, 112, 67, 0.16);
  filter: blur(0.5px);
}
.orb--sm { width: 56px; height: 56px; }
.orb--md { width: 92px; height: 92px; }
.orb--lg { width: 150px; height: 150px; }
.orb--soft { opacity: 0.5; filter: blur(8px); }
.orb--delay { animation-delay: -3s; animation-duration: 11s; }
.orb--delay2 { animation-delay: -5.5s; animation-duration: 13s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
}

/* 오브를 담는 섹션은 클립 + 콘텐츠를 위로 */
.has-orbs { position: relative; overflow: hidden; }
.has-orbs > .container { position: relative; z-index: 1; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}
