:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-color: rgba(0,0,0,.08); }
.nav {
  width: min(calc(100% - 48px), var(--max));
  height: 52px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 36px; font-size: 13px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.menu-button { display: none; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; }
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .25s; }

.hero {
  min-height: 780px;
  padding: 160px max(24px, calc((100vw - var(--max))/2)) 70px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 75%, #e8edf7 0, #f5f5f7 34%, #fff 68%);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
}
.eyebrow, .section-label, .feature-index { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
.hero h1 { margin: 0; font-size: clamp(58px, 5.5vw, 80px); line-height: .98; letter-spacing: 0; }
.hero-intro { max-width: 430px; margin: 28px 0 20px; color: var(--muted); font-size: 21px; line-height: 1.5; }
.text-link { color: var(--blue); font-size: 17px; }
.text-link span { display: inline-block; margin-left: 3px; font-size: 24px; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.hero-visual { position: relative; height: 540px; perspective: 1600px; }
.device { position: absolute; overflow: hidden; padding: 10px; border-radius: 28px; background: #222; box-shadow: 0 45px 80px rgba(34,45,65,.28); }
.device-screen { width: 100%; height: 100%; border-radius: 20px; background-size: cover; background-position: center; }
.device-back { width: 72%; height: 72%; right: -3%; top: 0; transform: rotateY(-15deg) rotateZ(4deg); }
.device-front { width: 66%; height: 82%; left: 7%; bottom: 0; transform: rotateY(16deg) rotateZ(-4deg); }
.screen-photo { background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=88'); }
.screen-code { background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1200&q=88'); }

.manifesto { width: min(calc(100% - 48px), var(--max)); margin: auto; padding: 150px 0; }
.manifesto h2 { margin: 0; font-size: clamp(48px, 6vw, 80px); line-height: 1.06; letter-spacing: 0; }
.manifesto h2 span { color: #b5b5ba; }
.manifesto-copy { width: min(100%, 590px); margin: 48px 0 0 auto; color: var(--muted); font-size: 22px; line-height: 1.55; }

.work { width: min(calc(100% - 48px), var(--max)); margin: auto; padding-bottom: 140px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.section-heading h2 { margin: 0; font-size: 52px; }
.section-heading > p { width: 330px; margin: 0 0 5px; color: var(--muted); line-height: 1.5; }
.feature { position: relative; min-height: 610px; overflow: hidden; border-radius: 6px; }
.feature-copy { position: relative; z-index: 2; padding: 60px; }
.feature h3 { margin: 0 0 22px; font-size: clamp(42px, 4.5vw, 64px); line-height: 1.04; }
.feature-copy > p:not(.feature-index) { max-width: 360px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.feature-dark { color: #f5f5f7; background: #101114; }
.feature-dark .feature-copy { width: 46%; }
.feature-dark .feature-copy > p:not(.feature-index) { color: #a1a1a6; }
.light { color: #2997ff; }
.product-image { position: absolute; inset: 0 0 0 45%; background-image: linear-gradient(90deg,#101114 0%,transparent 24%), url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&w=1600&q=88'); background-position: center; background-size: cover; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.work-grid .feature { min-height: 680px; }
.feature-light { background: var(--soft); }
.photo-image { position: absolute; inset: 45% 0 0; background-image: linear-gradient(180deg,var(--soft),transparent 20%), url('https://images.unsplash.com/photo-1464278533981-50106e6176b1?auto=format&fit=crop&w=1200&q=88'); background-size: cover; background-position: center; }
.feature-blue { color: white; background: #0066cc; }
.feature-blue .feature-copy > p:not(.feature-index) { color: rgba(255,255,255,.72); }
.note-visual { position: absolute; inset: 360px 46px 46px; padding: 38px; color: var(--ink); background: #fff; box-shadow: 0 30px 50px rgba(0,35,90,.24); transform: rotate(2.5deg); display: flex; flex-direction: column; }
.note-visual span { color: var(--blue); font-size: 14px; font-weight: 700; }
.note-visual strong { margin-top: 48px; font-size: 30px; line-height: 1.25; }
.note-visual small { margin-top: auto; color: var(--muted); }

.contact { color: white; background: #111; }
.contact-inner { width: min(calc(100% - 48px), var(--max)); margin: auto; padding: 130px 0; }
.contact h2 { margin: 0 0 50px; font-size: clamp(54px, 7vw, 92px); line-height: 1; }
.contact-link { padding-bottom: 8px; border-bottom: 1px solid #666; font-size: clamp(18px, 2.3vw, 28px); transition: border-color .2s; }
.contact-link:hover { border-color: white; }
footer { width: min(calc(100% - 48px), var(--max)); min-height: 90px; margin: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .nav { width: calc(100% - 36px); }
  .menu-button { display: block; }
  .nav-links { position: fixed; inset: 52px 0 auto; height: 0; overflow: hidden; background: rgba(255,255,255,.98); flex-direction: column; gap: 0; transition: height .3s ease; }
  .nav-links a { padding: 18px 24px; font-size: 22px; border-top: 1px solid #eee; }
  .nav-links.open { height: 178px; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { min-height: 820px; padding: 115px 24px 40px; grid-template-columns: 1fr; align-content: start; }
  .hero h1 { font-size: 52px; }
  .hero-intro { margin-top: 22px; font-size: 18px; }
  .hero-visual { height: 360px; margin-top: 35px; }
  .device { border-radius: 20px; padding: 7px; }
  .device-screen { border-radius: 14px; }
  .device-back { width: 68%; height: 70%; }
  .device-front { width: 66%; height: 80%; left: 5%; }
  .manifesto, .work, .contact-inner, footer { width: calc(100% - 40px); }
  .manifesto { padding: 100px 0; }
  .manifesto h2 { font-size: 44px; }
  .manifesto-copy { margin-top: 35px; font-size: 19px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 42px; }
  .section-heading > p { width: auto; margin-top: 18px; }
  .feature { min-height: 650px; }
  .feature-copy { padding: 38px 30px; }
  .feature h3 { font-size: 43px; }
  .feature-dark .feature-copy { width: auto; }
  .product-image { inset: 46% 0 0; background-image: linear-gradient(180deg,#101114 0%,transparent 24%), url('https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&w=1000&q=85'); }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .feature { min-height: 630px; }
  .photo-image { inset: 48% 0 0; }
  .note-visual { inset: 350px 26px 30px; }
  .contact-inner { padding: 95px 0; }
  .contact h2 { font-size: 52px; }
  footer { min-height: 110px; align-items: flex-start; padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
