:root{
  --bg: #F3F1E9;
  --ink: #10131C;
  --accent: #4A4E58;
  --accent-soft: #EAE9E3;
  --muted: #666A72;
  --sec-tint: #EAE9E3;
  --grid-light:
    linear-gradient(rgba(16,19,28,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,19,28,0.06) 1px, transparent 1px);
  --grid-dark:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background-color: var(--bg);
  background-image: var(--grid-light);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a{ color: inherit; }
.mono{ font-family: 'JetBrains Mono', monospace; }

.wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

nav{
  position: sticky;
  top: 0;
  background: rgba(243,241,233,0.86);
  backdrop-filter: blur(8px);
  z-index: 20;
  transition: box-shadow .25s ease, background .25s ease;
}
nav.is-scrolled{
  box-shadow: 0 1px 0 rgba(16,19,28,0.08);
  background: rgba(243,241,233,0.94);
}
nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}
.logo-dot{
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%, 100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(0.85); opacity: 0.7; }
}
.nav-links{ display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav-links a{ text-decoration: none; color: var(--muted); transition: color .15s ease; }
.nav-links a:not(.btn):hover,
.nav-links a.is-active{ color: var(--ink); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  font-family: 'Inter', sans-serif;
}
.btn:hover{ background: var(--accent); transform: translateY(-1px); }
.btn.ghost{ background: transparent; color: var(--ink); border: 1.5px solid rgba(16,19,28,0.15); }
.btn.ghost:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled{ opacity: 0.55; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero{ padding: 92px 0 84px; position: relative; overflow: hidden; }
.blob{ position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: 0; pointer-events: none; will-change: transform; }
.blob-1{ width: 340px; height: 340px; background: var(--accent); top: -140px; right: -60px; }
.blob-2{ width: 260px; height: 260px; background: var(--accent); top: 120px; right: 220px; opacity: .18; }

.hero-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1{ font-size: clamp(36px, 5.4vw, 54px); line-height: 1.09; }
.hero p{ max-width: 42ch; color: var(--muted); font-size: 18px; margin: 20px 0 28px; }
.hero-cta{ display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }

.counter{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border-radius: 6px;
  padding: 9px 14px;
  color: #fff;
}
.counter-label{ font-size: 12px; color: #9CA0AA; }
.counter-num{ font-family: 'JetBrains Mono', monospace; font-size: 15px; letter-spacing: 1px; color: #A9ACB3; }
.counter.is-open .counter-num{ color: #C7F0D8; }
.counter.is-paused .counter-num{ color: #F0D0C7; }

.editor{
  background: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(16,19,28,0.4);
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in .7s ease forwards .15s;
}
@keyframes rise-in{
  to{ transform: translateY(0); opacity: 1; }
}
.editor-bar{ display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dot{ width: 10px; height: 10px; border-radius: 50%; }
.dot-1{ background: #FF6B4A; }
.dot-2{ background: #FFB23D; }
.dot-3{ background: #4CFFA0; }
.editor-address{ margin-left: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8B8F99; }
.editor-body{ padding: 26px 22px 32px; min-height: 150px; font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: #E4E6EA; }
.editor-line{ color: #6B7280; }
.editor-out{ color: #C7C9D1; }
.type-target{ color: #fff; }
.cursor-blink{
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

section{ padding: 80px 0; }
.section-head{ margin-bottom: 40px; }
.section-head h2{ font-size: 29px; }
.section-head p{ color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 48ch; }

#work{ background-color: var(--sec-tint); background-image: var(--grid-light); background-size: 42px 42px; }
#try{ background-color: var(--bg); background-image: var(--grid-light); background-size: 42px 42px; }
#pricing{ background-color: #FFFFFF; background-image: var(--grid-light); background-size: 42px 42px; position: relative; overflow: hidden; }
#pricing::before{ content: ''; position: absolute; width: 300px; height: 300px; background: var(--accent); filter: blur(90px); opacity: .1; top: -100px; left: -60px; }
#process{ background-color: var(--bg); background-image: var(--grid-light); background-size: 42px 42px; }
#contact{ background-color: var(--sec-tint); background-image: var(--grid-light); background-size: 42px 42px; }

.work-list{ display: grid; gap: 14px; }
.work-item{
  display: grid;
  grid-template-columns: 44px 1fr 1.3fr;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-item:hover{ transform: translateX(4px); box-shadow: 0 10px 28px -18px rgba(16,19,28,0.35); }
.work-icon{
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--accent);
}
.work-item h3{ font-size: 20px; font-weight: 600; }
.work-item p{ color: var(--muted); margin: 0; font-size: 15.5px; }

.pricing-block{
  color: #fff;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.price-figure{ font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 38px; white-space: nowrap; position: relative; z-index: 1; color: var(--ink); }
.price-figure span{ color: var(--accent); }
.price-copy{ position: relative; z-index: 1; }
.price-copy > p{ color: var(--muted); margin: 0 0 18px; }

details.includes summary{ list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); user-select: none; }
details.includes summary::-webkit-details-marker{ display: none; }
.chev{ width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); transition: transform .18s ease; }
details[open] .chev{ transform: rotate(45deg); }
.includes ul{ margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; color: var(--muted); }
.includes li{ padding-left: 18px; position: relative; }
.includes li::before{ content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.process{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-item{ position: relative; }
.process-item h3{ font-size: 19px; margin-bottom: 8px; }
.process-item p{ color: var(--muted); font-size: 15px; margin: 0; }

form{ display: grid; gap: 22px; max-width: 640px; }
.field{ display: grid; gap: 8px; }
label{ font-size: 14px; font-weight: 500; color: var(--ink); }
input, textarea, select{
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 13px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  transition: background .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus{ background: #fff; box-shadow: 0 0 0 2px var(--accent); outline: none; }
textarea{ resize: vertical; min-height: 100px; }
select{ cursor: pointer; }
.row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.submit-row{ display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.form-note{ font-size: 14px; color: var(--muted); }
.form-status{ font-size: 14px; font-weight: 500; display: none; }
.form-status.is-ok{ color: #2f6b4a; display: inline; }
.form-status.is-err{ color: #9b3b2e; display: inline; }
.order-notice{
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(155, 59, 46, 0.08);
  color: #7a2f24;
  font-size: 14.5px;
}
.order-notice.is-visible{ display: block; }
.try-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px -28px rgba(16,19,28,0.35);
}
.try-card h2{ font-size: 26px; margin-bottom: 8px; }
.try-card p{ margin: 0; color: var(--muted); max-width: 46ch; }
.process-item a{ color: var(--ink); text-underline-offset: 2px; }
.sketch-attach{
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 18px;
  max-width: 640px;
}
.sketch-attach.is-visible{ display: flex; }
.sketch-attach strong{ display: block; font-size: 14px; margin-bottom: 4px; }
.sketch-attach p{ margin: 0; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }
.sketch-attach button{
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: 500 13px 'Inter', sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.consent input{ margin-top: 3px; }
.consent a{ color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

footer{ background-color: var(--ink); background-image: var(--grid-dark); background-size: 42px 42px; color: #C7C9D1; padding: 40px 0; }
footer .wrap{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
footer a{ text-decoration: none; color: #fff; }
.footer-links{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a:not(:first-child){ color: #9599A2; }
.footer-links a:not(:first-child):hover{ color: #fff; }

html.js .reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .reveal.is-in{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

@media (max-width: 760px){
  .hero-grid{ grid-template-columns: 1fr; }
  .blob-2{ display: none; }
}
@media (max-width: 820px){
  .nav-try{ display: none; }
}
@media (max-width: 680px){
  .hero{ padding: 68px 0 56px; }
  .nav-links{ gap: 16px; font-size: 14px; }
  .nav-links .btn{ padding: 9px 14px; }
  .try-card{ flex-direction: column; align-items: flex-start; padding: 22px; }
  .work-item{ grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 20px; }
  .work-item p{ grid-column: 2; }
  .pricing-block{ grid-template-columns: 1fr; gap: 22px; }
  .process{ grid-template-columns: 1fr; gap: 28px; }
  .row-2{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation: none !important; transition: none !important; }
  .reveal{ opacity: 1; transform: none; }
  .editor{ opacity: 1; transform: none; }
}
