/* RED STUDIO teaser — 컬러 시스템: 로고 레드 그라디언트(#F01000 → #800000) 실측 기반 */
:root {
  --rs-red: #F01000;          /* Primary — 로고 하이라이트 레드 */
  --rs-red-bright: #FF4433;   /* Hover/glow 밝은 레드 */
  --rs-red-deep: #A00000;     /* 로고 미드톤 딥레드 */
  --rs-red-dark: #800000;     /* 로고 섀도우 마룬 */
  --rs-red-soft: #FFE9E6;     /* 라이트 섹션 틴트 */
  --rs-ink: #0E0B0B;          /* 시네마 블랙 */
  --rs-black: #070505;
  --rs-text: #1B1717;
  --rs-text-2: #6E6666;
  --rs-text-3: #A39B9B;
  --rs-bg: #FFFFFF;
  --rs-surface: #FAF7F6;
  --rs-surface-2: #F3EEED;
  --rs-border: #EDE6E4;
  --rs-ok: #30A46C;
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 11, 11, .05);
  --shadow-2: 0 8px 28px rgba(14, 11, 11, .10);
  --glow-red: 0 0 44px rgba(240, 16, 0, .28);
  --ease: cubic-bezier(.22, .68, 0, 1);
  --font: "Poppins", "Pretendard", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.55;
  color: var(--rs-text); background: var(--rs-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
:focus-visible { outline: 2px solid var(--rs-red); outline-offset: 2px; border-radius: 4px; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* CHIPS & BUTTONS */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-xs); line-height: 1;
}
.chip-red { background: var(--rs-red); color: #fff; }
.chip-ghost { background: transparent; color: rgba(255,255,255,.64); border: 1px solid rgba(255,255,255,.18); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 8px 6px 20px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  transition: background .24s var(--ease), transform .24s var(--ease), box-shadow .24s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-cap {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rs-red); color: #fff;
  transition: transform .24s var(--ease);
}
.btn-cap svg { width: 15px; height: 15px; }
.btn:hover .btn-cap { transform: translateX(2px); }
.btn-primary { background: var(--rs-ink); color: #fff; }
.btn-primary:hover { background: #2A2222; }
.btn-accent { background: var(--rs-red); color: #fff; box-shadow: var(--glow-red); }
.btn-accent:hover { background: var(--rs-red-bright); }
.btn-accent:active { background: var(--rs-red-deep); }
.btn-cap-ink { background: var(--rs-ink); color: #fff; }
.btn-ghost-dark { padding: 6px 20px; color: #fff; border: 1px solid rgba(255,255,255,.24); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn-lg { font-size: 16px; min-height: 52px; padding-left: 26px; }
.btn-lg .btn-cap { width: 38px; height: 38px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); box-shadow: var(--shadow-1); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.logo-text { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: #fff; }
.logo-sub { display: block; font-size: 8.5px; font-weight: 500; letter-spacing: .18em; color: rgba(255,255,255,.5); font-family: ui-monospace, monospace; }
.nav.scrolled .logo-text { color: var(--rs-ink); }
.nav.scrolled .logo-sub { color: var(--rs-text-3); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 10px 14px; border-radius: var(--r-pill);
  font-size: 13px; color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav.scrolled .nav-links a { color: var(--rs-text-2); }
.nav.scrolled .nav-links a:hover { color: var(--rs-ink); background: var(--rs-surface-2); }
/* HERO (cinema dark) */
.hero {
  position: relative; background: var(--rs-black); color: #fff;
  padding: 160px 0 0; overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 50% -10%, rgba(240,16,0,.22), transparent 65%),
    radial-gradient(560px 380px at 88% 24%, rgba(128,0,0,.28), transparent 70%);
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.14; font-weight: 300;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.hero-title b { font-weight: 600; }
.hero-title .line { display: block; opacity: 0; transform: translateY(28px); animation: lineUp .8s var(--ease) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
.red-underline { position: relative; white-space: nowrap; }
.red-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em;
  background: linear-gradient(90deg, var(--rs-red), var(--rs-red-dark));
  border-radius: var(--r-pill); z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: underlineIn .7s var(--ease) .7s forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }
.hero-sub { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.64); margin-bottom: 36px; }
.hero-sub b { color: #fff; font-weight: 500; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

/* HERO filmstrip — 시나리오→컷 타임라인 애니메이션 */
.hero-strip { position: relative; height: 190px; max-width: 940px; margin: 0 auto; }
.hero-strip canvas { width: 100%; height: 100%; }
.strip-pill {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,11,11,.82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 12px; letter-spacing: .03em;
  padding: 10px 18px; border-radius: var(--r-pill);
}
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--rs-red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(240,16,0,.55); }
  50% { box-shadow: 0 0 0 7px rgba(240,16,0,0); }
}

/* SECTION HEAD */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .chip { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(26px,3.4vw,38px); line-height: 1.2; font-weight: 300; letter-spacing: -.01em; margin-bottom: 16px; }
.section-head h2 b { font-weight: 600; }
.section-head p { color: var(--rs-text-2); font-size: 15px; line-height: 1.7; }
.on-dark .section-head h2 { color: #fff; }
.on-dark .section-head p { color: rgba(255,255,255,.6); }

/* STATS */
.stats { padding-top: 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-card {
  background: var(--rs-surface); border: 1px solid var(--rs-border);
  border-radius: var(--r-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1);
}
.stat-red { background: linear-gradient(135deg, var(--rs-red), var(--rs-red-dark)); border-color: var(--rs-red-deep); color: #fff; }
.stat-ink { background: var(--rs-ink); border-color: var(--rs-ink); color: #fff; }
.stat-num { font-size: 56px; line-height: 1; font-weight: 300; letter-spacing: -.02em; }
.stat-unit { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.stat-cap { font-size: 12px; line-height: 1.5; color: var(--rs-text-2); margin-top: auto; }
.stat-red .stat-cap, .stat-ink .stat-cap { color: rgba(255,255,255,.68); }

/* DONUT */
.donut { position: relative; width: 110px; height: 110px; margin-bottom: 10px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--rs-surface-2); stroke-width: 11; }
.donut-arc {
  fill: none; stroke: var(--rs-red); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 314.16;
  transition: stroke-dashoffset .8s ease-out;
}
.donut-label { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 38px; }
.donut-num { font-size: 30px; font-weight: 300; line-height: 1; }
.donut-pct { font-size: 13px; color: var(--rs-text-3); margin-left: 2px; }
/* SHOWCASE — 실제 앱 스크린샷 (dark) */
.showcase { background: var(--rs-ink); border-radius: var(--r-lg); margin: 0 12px; color: #fff; }
.shot-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.shot-tab {
  font-size: 12px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.6);
  background: transparent; cursor: pointer; font-family: var(--font);
  transition: background .2s, color .2s, border-color .2s;
}
.shot-tab:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.shot-tab.active { background: var(--rs-red); border-color: var(--rs-red); color: #fff; }
.shot-stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), var(--glow-red);
  background: #141010;
}
.shot-stage img { width: 100%; height: auto; opacity: 0; transition: opacity .35s var(--ease); }
.shot-stage img.on { opacity: 1; }
.shot-caption {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 20px; padding: 18px 20px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
}
.shot-caption .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rs-red); color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.shot-caption h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.shot-caption p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.62); }

/* DEEP DIVE — 워크스페이스 상세 */
.deep { background: var(--rs-surface); border-radius: var(--r-lg); }
.deep-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 44px 0; }
.deep-row + .deep-row { border-top: 1px solid var(--rs-border); }
.deep-row.flip .deep-shot { order: 2; }
.deep-shot { position: relative; }
.deep-shot img {
  width: 100%; height: auto; border-radius: var(--r-md);
  border: 1px solid var(--rs-border); box-shadow: var(--shadow-2);
}
.deep-shot .tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--rs-red); color: #fff; padding: 6px 11px; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(240,16,0,.35);
}
.deep-copy .chip { margin-bottom: 14px; }
.deep-copy h3 { font-size: clamp(20px,2.4vw,26px); font-weight: 300; line-height: 1.25; margin-bottom: 10px; }
.deep-copy h3 b { font-weight: 600; }
.deep-copy > p { font-size: 14px; line-height: 1.7; color: var(--rs-text-2); margin-bottom: 20px; }
.deep-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.deep-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--rs-text); }
.deep-list li b { font-weight: 600; }
.deep-list .check { margin-top: 2px; width: 18px; height: 18px; font-size: 10px; }
.deep-list kbd {
  font-family: ui-monospace, monospace; font-size: 11px; line-height: 1;
  background: var(--rs-surface-2); border: 1px solid var(--rs-border); border-bottom-width: 2px;
  border-radius: 5px; padding: 3px 6px; color: var(--rs-text-2); white-space: nowrap;
}
.deep-foot {
  margin-top: 8px; padding: 16px 20px; border-radius: var(--r-md);
  background: var(--rs-red-soft); color: var(--rs-red-dark); font-size: 13px;
}
.deep-foot b { font-weight: 600; }

/* FEATURES */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card {
  background: var(--rs-surface); border: 1px solid var(--rs-border);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: var(--rs-bg); }
.feature-card .chip { margin-bottom: 18px; }
.feature-card h3 { font-size: 18px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.feature-card p { font-size: 13px; line-height: 1.65; color: var(--rs-text-2); }
/* PIPELINE */
.pipe-steps { list-style: none; display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; gap: 12px; align-items: stretch; }
.pipe-step { background: var(--rs-surface); border: 1px solid var(--rs-border); border-radius: var(--r-lg); padding: 26px 22px; }
.pipe-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--rs-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.pipe-step h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.pipe-step p { font-size: 12.5px; line-height: 1.6; color: var(--rs-text-2); }
.pipe-arrow { display: flex; align-items: center; justify-content: center; color: var(--rs-text-3); }
.pipe-arrow svg { width: 20px; height: 20px; }
.pipe-note { margin-top: 28px; padding: 18px 22px; background: var(--rs-red-soft); border-radius: var(--r-md); font-size: 13px; color: var(--rs-red-dark); }
.pipe-note b { font-weight: 600; }

/* EDGE (dark) — 인프라/우수성 */
.edge { background: var(--rs-black); color: #fff; border-radius: var(--r-lg); margin: 0 12px; }
.edge-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.edge-copy .chip { margin-bottom: 18px; }
.edge-copy h2 { font-size: clamp(26px,3.4vw,38px); font-weight: 300; line-height: 1.2; margin-bottom: 16px; }
.edge-copy h2 b { font-weight: 600; }
.edge-copy > p { color: rgba(255,255,255,.64); font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
.edge-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.edge-list li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255,255,255,.86); }
.check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--rs-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.edge-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: 300px; height: 300px; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--rs-red), var(--rs-red-dark));
  box-shadow: var(--glow-red);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.orbit-core img { width: 100%; height: 100%; object-fit: cover; }
.orbit-ring { position: absolute; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; }
.orbit-ring.r1 { inset: 40px; animation: spin 26s linear infinite; }
.orbit-ring.r2 { inset: 0; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-tag {
  position: absolute; font-size: 11px; letter-spacing: .05em;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: var(--r-pill); color: rgba(255,255,255,.8);
  animation: floatY 4s ease-in-out infinite;
}
.orbit-tag.t1 { top: 16px; left: 6px; }
.orbit-tag.t2 { top: 52%; right: -30px; animation-delay: 1.2s; }
.orbit-tag.t3 { bottom: 22px; left: 24px; animation-delay: 2.2s; }
@keyframes floatY { 50% { transform: translateY(-8px); } }

/* CTA */
.cta-card {
  text-align: center; position: relative; overflow: hidden;
  background: var(--rs-surface); border: 1px solid var(--rs-border);
  border-radius: var(--r-lg); padding: 72px 32px;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 50% 0%, rgba(240,16,0,.08), transparent 70%);
}
.cta-card h2 { font-size: clamp(28px,4vw,44px); font-weight: 300; line-height: 1.16; margin-bottom: 16px; }
.cta-card h2 b { font-weight: 600; }
.cta-card > p { color: var(--rs-text-2); font-size: 15px; margin-bottom: 32px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.cta-meta { font-size: 12px; color: var(--rs-text-3); }

/* FOOTER */
.footer { border-top: 1px solid var(--rs-border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo-footer .logo-text { color: var(--rs-ink); }
.logo-footer .logo-sub { color: var(--rs-text-3); }
.footer-note { font-size: 12px; color: var(--rs-text-2); flex: 1; min-width: 240px; }
.footer-copy { font-size: 12px; color: var(--rs-text-3); }
.footer-legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rs-border); display: flex; flex-direction: column; gap: 4px; }
.footer-legal p { font-size: 12px; color: var(--rs-text-3); line-height: 1.7; }
.footer-link { color: var(--rs-text-2); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.footer-link:hover { color: var(--rs-ink); }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal .footer-copy { margin-top: 4px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .stats-grid, .feature-grid { grid-template-columns: repeat(2,1fr); }
  .deep-row { grid-template-columns: 1fr; gap: 20px; }
  .deep-row.flip .deep-shot { order: 0; }
  .pipe-steps { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); height: 32px; }
  .edge-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .stats-grid, .feature-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
