*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0A0A0A;
  --bg2: #0E0E0E;
  --white: #F5F5F5;
  --gray: rgba(255,255,255,0.62);
  --gray2: rgba(255,255,255,0.50);
  --border: rgba(255,255,255,0.08);
  --orange: #E8420A;
  --orange-dim: rgba(232,66,10,0.12);
  --font: 'Inter', -apple-system, 'SF Pro Display', sans-serif;
}

/* SHARED */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.section { padding: 140px 0; }
.section.alt { background: var(--bg2); }
.section.bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--orange); flex-shrink: 0; }

h2.ttl {
  font-size: clamp(34px, 4.5vw, 58px); font-weight: 700;
  letter-spacing: -0.038em; line-height: 1.0; margin-bottom: 22px;
}
p.bod { font-size: 16px; font-weight: 300; color: var(--gray); line-height: 1.8; max-width: 500px; }

/* HERO */
.hero { padding: 140px 40px 0; max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 24px; display: block; }
.hero h1 { font-size: clamp(52px, 8vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: 18px; font-weight: 300; color: var(--gray); max-width: 520px; margin: 0 auto 72px; line-height: 1.7; }

.hero-images { position: relative; height: 580px; display: flex; align-items: flex-end; justify-content: center; }
.h-phone { width: 236px; border-radius: 36px; overflow: hidden; box-shadow: 0 60px 120px rgba(0,0,0,0.75); position: absolute; bottom: 0; }
.h-phone img { width: 100%; display: block; }
.h-left  { transform: rotate(-8deg) translateX(-130px) translateY(24px); z-index: 1; opacity: 0.8; }
.h-right { transform: rotate(8deg)  translateX(130px)  translateY(24px); z-index: 1; opacity: 0.8; }
.h-center { z-index: 2; width: 272px; border-radius: 40px; }

.hero-meta { border-top: 1px solid var(--border); margin-top: 80px; padding: 32px 0; display: flex; align-items: center; justify-content: center; }
.mi { padding: 0 52px; border-right: 1px solid var(--border); text-align: center; }
.mi:last-child { border-right: none; }
.ml { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray2); margin-bottom: 6px; }
.mv { font-size: 14px; font-weight: 600; }

/* ─── 1. PRODUCT CONTEXT ─── */
.context-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  margin-top: 64px;
}
.ctx-card { background: var(--bg2); padding: 40px 36px; transition: background 0.2s; }
.ctx-card:hover { background: #141414; }
.ctx-icon { display: none; }
.ctx-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.ctx-card p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.7; }

/* ─── 2. PROBLEM SPACE ─── */
.problem-grid { margin-top: 64px; }
.p-card {
  display: grid; grid-template-columns: 48px 1fr 1fr;
  gap: 0 40px; align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.p-card:first-child { border-top: 1px solid var(--border); }
.p-card:hover { opacity: 0.75; }
.p-num { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--orange); }
.p-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.p-card p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.65; }

/* ─── 3. KEY INSIGHTS ─── */
.insight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.insight-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 36px 30px;
  transition: border-color 0.2s;
}
.insight-card:hover { border-color: rgba(232,66,10,0.35); }
.insight-n { font-family: var(--font); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--orange); line-height: 1; margin-bottom: 18px; display: block; }
.insight-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.25; }
.insight-card p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.65; }

/* ─── 4. DESIGN PRINCIPLES ─── */
.principles-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 64px; }
.principles-intro p { font-size: 16px; font-weight: 300; color: var(--gray); line-height: 1.8; }
.principle-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pr-item { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.pr-item:last-child { border-bottom: none; }
.pr-item:hover { background: #141414; }
.pr-idx { display: flex; align-items: flex-start; justify-content: center; padding: 26px 0 0; font-family: var(--font); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--orange); border-right: 1px solid var(--border); }
.pr-body { padding: 24px 26px; }
.pr-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pr-body p { font-size: 13px; font-weight: 300; color: var(--gray); line-height: 1.6; }

/* ─── 5. CORE REDESIGN ─── */
.feature-block { padding: 120px 0; border-bottom: 1px solid var(--border); }
.feature-block.alt-bg { background: var(--bg2); }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-inner.rev { direction: rtl; }
.feature-inner.rev > * { direction: ltr; }
.ft-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; display: block; }
.ft-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 18px; }
.ft-body { font-size: 16px; font-weight: 300; color: var(--gray); line-height: 1.8; margin-bottom: 24px; }
.ft-result { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.ft-result .arrow { color: var(--orange); font-size: 16px; flex-shrink: 0; margin-top: 1px; } .ft-result span { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.6; }

/* image containers */
.img-device { width: 100%; max-width: 420px; filter: drop-shadow(0 40px 80px rgba(0,0,0,0.65)); display: block; margin: 0 auto; transition: transform 0.4s ease; }
.img-device:hover { transform: scale(1.03); }
.phone-wrap { width: 240px; border-radius: 36px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.65); margin: 0 auto; }
.phone-wrap img { width: 100%; display: block; }
.phone-wrap.lg { width: 272px; border-radius: 40px; }
.duo { display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.duo .img-device { max-width: 210px; }
.duo .phone-wrap { width: 185px; }

/* ─── 6. CROSS-DEVICE ─── */
.cross-devices { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 40px; align-items: center; margin-top: 80px; }
.dev-col { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.dev-col-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray2); }
.sep-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sep-line { width: 1px; height: 60px; background: var(--border); }
.sep-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(232,66,10,0.3); border-radius: 100px; padding: 5px 12px; white-space: nowrap; }
.shared-pts { display: flex; flex-direction: column; gap: 7px; align-items: center; }
.spt { font-size: 12px; color: var(--gray); }
.spt::before { content: '—  '; color: var(--orange); }

/* ─── 7. DESIGN SYSTEM ─── */
.token-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 48px 0 56px;
}
.tk { height: 68px; display: flex; align-items: flex-end; padding: 8px 12px; }
.tk span { font-size: 10px; font-weight: 500; }

.ds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ds-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ds-preview { background: var(--bg2); padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 130px; }
.ds-label { padding: 14px 18px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--border); }
.ds-sub { display: block; font-size: 11px; font-weight: 300; color: var(--gray); margin-top: 3px; }

/* state pills */
.state-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 500; }
.s-dot { width: 7px; height: 7px; border-radius: 50%; }
.pill-heat { background: rgba(196,56,48,0.12); color: #E87A74; }
.pill-heat .s-dot { background: #C43830; }
.pill-cool { background: rgba(74,127,212,0.12); color: #7AABEC; }
.pill-cool .s-dot { background: #4A7FD4; }
.pill-eco  { background: rgba(61,168,112,0.12); color: #6DCF9E; }
.pill-eco  .s-dot { background: #3DA870; }

/* temp control component */
.tc { display: inline-flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 100px; overflow: hidden; }
.tc-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gray); background: none; border: none; cursor: pointer; }
.tc-val { padding: 0 18px; font-size: 17px; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ─── 8. PROTOTYPE ─── */
.proto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.proto-screens { display: flex; gap: 16px; align-items: flex-end; justify-content: center; }
.proto-screens .phone-wrap { width: 175px; }
.proto-screens .phone-wrap:nth-child(2) { width: 195px; position: relative; top: 0; }

/* ─── 9. IMPACT ─── */
.impact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-top: 72px;
}
.imp-card { background: var(--bg); padding: 52px 44px; transition: background 0.2s; }
.imp-card:hover { background: #111; }
.imp-num { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; color: var(--white); line-height: 1; margin-bottom: 16px; display: block; } .imp-num .accent { color: var(--orange); }
.imp-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.imp-card p { font-size: 14px; font-weight: 300; color: var(--gray); line-height: 1.7; }

/* FOOTER */
footer.nest-footer { border-top: 1px solid var(--border); padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; }
.f-logo { font-size: 15px; font-weight: 700; }
.f-logo em { font-style: normal; color: var(--orange); }
.f-note { font-size: 13px; color: var(--gray); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-heat {
  background: radial-gradient(circle, rgba(232,66,10,1) 0%, rgba(200,40,0,0.6) 40%, transparent 70%);
  left: 14%;
  top: 5%;
  animation: glowMoveHeat 6s ease-in-out infinite;
}
.hero-glow-cool {
  background: radial-gradient(circle, rgba(60,110,255,1) 0%, rgba(30,70,220,0.6) 40%, transparent 70%);
  right: 8%;
  top: 15%;
  animation: glowMoveCool 7s ease-in-out infinite;
}
@keyframes glowMoveHeat {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(18px, -20px); }
  50%  { transform: translate(-14px, 24px); }
  75%  { transform: translate(20px, 16px); }
  100% { transform: translate(0px, 0px); }
}
@keyframes glowMoveCool {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(-20px, 18px); }
  50%  { transform: translate(16px, -22px); }
  75%  { transform: translate(-18px, -12px); }
  100% { transform: translate(0px, 0px); }
}
.hero-label { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1    { animation: fadeUp 0.7s ease 0.2s both; }
.hero-sub   { animation: fadeUp 0.7s ease 0.3s both; }
.hero-images { animation: fadeUp 0.9s ease 0.45s both; }
.hero-meta  { animation: fadeUp 0.7s ease 0.55s both; }

/* page wrapper */
.nest-page {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-label, .hero h1, .hero-sub, .hero-images, .hero-meta { animation: none; opacity: 1; transform: none; }
  .hero-glow-heat, .hero-glow-cool { animation: none; }
}

@media (max-width: 860px) {
  .feature-inner, .feature-inner.rev, .principles-wrap, .proto-grid, .cross-devices { grid-template-columns: 1fr; direction: ltr; }
  .p-card { grid-template-columns: 32px 1fr; grid-template-rows: auto auto; }
  .p-card p { grid-column: 2; }
  .insight-row, .context-grid, .ds-grid, .impact-grid { grid-template-columns: 1fr; }
  .hero-images { height: 380px; }
  .h-left, .h-right { display: none; }
  .token-grid { grid-template-columns: repeat(4, 1fr); }
  .sep-col { display: none; }
}
