/* DevHue — devhue.com
   Warm editorial aesthetic: paper cream, ink, and a debt-to-freedom hue arc
   (coral = owed, green = paid off). Fraunces display / Instrument Sans body. */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --ink: #211d19;
  --ink-soft: #5c554c;
  --line: #e2d9c8;
  --coral: #e4573d;
  --amber: #e8a13a;
  --leaf: #1f7a5c;
  --leaf-deep: #14523d;
  --hue-arc: linear-gradient(90deg, #e4573d 0%, #e8a13a 38%, #b7b332 62%, #1f7a5c 100%);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--coral); color: var(--paper); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #e4573d, #e8a13a, #b7b332, #1f7a5c, #e4573d);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line);
}

.nav { display: flex; gap: 26px; align-items: center; }

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--coral); }

.nav .btn-small {
  color: var(--paper);
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}

.nav .btn-small:hover { background: var(--leaf-deep); color: var(--paper); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero { padding: 96px 0 60px; position: relative; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--hue-arc);
  border-radius: 2px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

h1 .fade-word {
  background: var(--hue-arc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 620;
}

.hero p.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 36px;
}

.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 0 var(--leaf-deep);
}

.btn-store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--leaf-deep); }
.btn-store:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--leaf-deep); }

.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-store small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.7; line-height: 1.2; }
.btn-store strong { display: block; font-size: 1.02rem; line-height: 1.2; }

.btn-ghost {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--coral); }

/* staggered load-in */
.hero .kicker, .hero h1, .hero .lede, .hero .cta-row, .phone-stage {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero .lede { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }
.phone-stage { animation-delay: 0.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- phone mockup ---------- */

.phone-stage { position: relative; display: flex; justify-content: center; }

.phone-stage::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  background:
    radial-gradient(45% 45% at 30% 30%, rgba(228, 87, 61, 0.13), transparent 70%),
    radial-gradient(50% 50% at 72% 68%, rgba(31, 122, 92, 0.14), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 44px;
  background: var(--ink);
  padding: 12px;
  box-shadow:
    0 30px 60px -18px rgba(33, 29, 25, 0.35),
    0 8px 20px -8px rgba(33, 29, 25, 0.25);
  transform: rotate(2.5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone:hover { transform: rotate(0deg) scale(1.015); }

.phone-screen {
  border-radius: 34px;
  background: #fffdf8;
  overflow: hidden;
  padding: 26px 18px 22px;
}

.phone-notch {
  width: 96px;
  height: 26px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  margin: -26px auto 18px;
}

.ps-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.ps-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.debt-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fff;
}

.debt-card .dc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.dc-name { font-weight: 600; font-size: 0.85rem; }

.dc-amount { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }

.dc-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--paper-deep);
  overflow: hidden;
}

.dc-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  animation: fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dc-fill.p82 { width: 82%; background: #1f7a5c; animation-delay: 0.5s; --w: 82%; }
.dc-fill.p54 { width: 54%; background: #b7b332; animation-delay: 0.65s; --w: 54%; }
.dc-fill.p31 { width: 31%; background: #e8a13a; animation-delay: 0.8s; --w: 31%; }
.dc-fill.p12 { width: 12%; background: #e4573d; animation-delay: 0.95s; --w: 12%; }

@keyframes fill {
  from { width: 0; }
  to { width: var(--w); }
}

.dc-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  margin-top: 7px;
  color: var(--leaf);
}

.debt-card.paid {
  background: #eef5ef;
  border-color: #cfe3d3;
}

.debt-card.paid .dc-name { text-decoration: line-through; opacity: 0.55; }

/* ---------- ribbon divider ---------- */

.hue-ribbon {
  height: 5px;
  background: var(--hue-arc);
  border-radius: 5px;
  margin: 30px auto;
  max-width: 1080px;
  width: calc(100% - 56px);
  opacity: 0.85;
}

/* ---------- sections ---------- */

section { padding: 76px 0; }

.section-head { max-width: 620px; margin-bottom: 52px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(33, 29, 25, 0.28);
}

.feature::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hue-arc);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover::after { opacity: 1; }

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--coral);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p { color: var(--ink-soft); font-size: 0.97rem; }

/* how it works */

.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--coral);
}

.step:nth-child(2) .step-num { color: var(--amber); }
.step:nth-child(3) .step-num { color: #8a9b2e; }
.step:nth-child(4) .step-num { color: var(--leaf); }

.step h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--ink-soft); max-width: 46em; }

/* studio / portfolio */

.studio {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}

.studio::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #e4573d, #e8a13a, #b7b332, #1f7a5c, #e4573d);
  filter: blur(80px);
  opacity: 0.35;
}

.studio h2 { color: var(--paper); position: relative; }
.studio p { color: rgba(250, 246, 239, 0.75); position: relative; max-width: 52em; margin-bottom: 14px; }

.studio .kicker { color: var(--amber); }

.studio-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; position: relative; }

.app-card {
  border: 1px solid rgba(250, 246, 239, 0.18);
  border-radius: 16px;
  padding: 26px;
  background: rgba(250, 246, 239, 0.04);
  transition: background 0.3s, border-color 0.3s;
}

.app-card:hover { background: rgba(250, 246, 239, 0.08); border-color: rgba(250, 246, 239, 0.35); }

.app-card .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
}

.app-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.app-card p { font-size: 0.95rem; margin-bottom: 0; }

.app-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 16px;
}

.app-status.live { background: rgba(31, 122, 92, 0.25); color: #7fd4b4; }
.app-status.soon { background: rgba(232, 161, 58, 0.18); color: #ecc286; }

/* final CTA */

.final-cta { text-align: center; padding: 90px 0 100px; }

.final-cta h2 { margin-bottom: 16px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 34px; font-size: 1.1rem; }
.final-cta .cta-row { justify-content: center; }

/* ---------- inner pages (support / privacy) ---------- */

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 12px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: 40em; }

.page-body { padding: 56px 0 90px; }
.page-body .wrap { max-width: 760px; }

.page-body h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li { color: var(--ink-soft); margin-bottom: 12px; }
.page-body ul { padding-left: 22px; margin-bottom: 16px; }
.page-body strong { color: var(--ink); }
.page-body a { color: var(--leaf-deep); font-weight: 500; }

.updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* FAQ accordion */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.faq summary:hover { color: var(--coral); }
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--coral);
  transition: transform 0.3s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { padding: 0 4px 24px; max-width: 46em; }

/* contact card */

.contact-card {
  margin-top: 52px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.contact-card h2 { margin-top: 0; }

.contact-card .email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 100px;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}

.contact-card .email:hover { background: var(--leaf-deep); transform: translateY(-2px); }

.contact-card small { display: block; margin-top: 14px; color: var(--ink-soft); }

/* ---------- portfolio / showcase ---------- */

.hero-studio { padding: 110px 0 70px; text-align: left; }

.hero-studio h1 { max-width: 15em; }

.hero-studio .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 36px; }

.hero-studio .kicker, .hero-studio h1, .hero-studio .lede, .hero-studio .cta-row {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-studio h1 { animation-delay: 0.08s; }
.hero-studio .lede { animation-delay: 0.16s; }
.hero-studio .cta-row { animation-delay: 0.24s; }

.hero-marquee {
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
}

.hero-marquee span { display: inline-flex; align-items: center; gap: 10px; }

.hero-marquee span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-marquee span:nth-child(1)::before { background: var(--coral); }
.hero-marquee span:nth-child(2)::before { background: var(--amber); }
.hero-marquee span:nth-child(3)::before { background: #b7b332; }
.hero-marquee span:nth-child(4)::before { background: var(--leaf); }

/* featured project */

.project-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 26px;
  transition: box-shadow 0.35s, transform 0.35s;
}

.project-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -26px rgba(33, 29, 25, 0.32);
}

.pf-copy { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

.pf-copy .kicker { margin-bottom: 16px; }

.pf-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pf-copy p { color: var(--ink-soft); margin-bottom: 26px; max-width: 34em; }

.pf-visual {
  position: relative;
  background:
    radial-gradient(70% 90% at 25% 20%, rgba(228, 87, 61, 0.16), transparent 60%),
    radial-gradient(80% 90% at 80% 85%, rgba(31, 122, 92, 0.18), transparent 60%),
    var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 30px;
  overflow: hidden;
}

.pf-visual .phone { width: 240px; transform: rotate(-3deg); }
.pf-visual .phone:hover { transform: rotate(0deg) scale(1.02); }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }

.pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  color: var(--ink-soft);
  background: var(--paper);
}

.pill.live { border-color: #cfe3d3; background: #eef5ef; color: var(--leaf-deep); }

/* project grid */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(33, 29, 25, 0.28);
}

.pc-band { height: 92px; position: relative; overflow: hidden; }

.pc-band .pc-icon {
  position: absolute;
  left: 24px;
  bottom: -22px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px -8px rgba(33, 29, 25, 0.4);
  border: 3px solid #fffdf8;
}

.pc-body { padding: 36px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.pc-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.pc-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.pc-body .pill-row { margin: 18px 0 0; }

/* values strip */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.value {
  border-top: 3px solid var(--line);
  padding-top: 20px;
}

.value:nth-child(1) { border-color: var(--coral); }
.value:nth-child(2) { border-color: var(--amber); }
.value:nth-child(3) { border-color: var(--leaf); }

.value h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.value p { color: var(--ink-soft); font-size: 0.96rem; }

@media (max-width: 860px) {
  .project-featured { grid-template-columns: 1fr; }
  .pf-visual { padding: 40px 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .hero-studio { padding-top: 70px; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--paper-deep);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p { font-size: 0.88rem; color: var(--ink-soft); }

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--coral); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .studio { padding: 44px 28px; }
  .studio-apps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .nav { gap: 16px; }
  .nav a:not(.btn-small) { display: none; }
}
