:root {
  --bg: #f7efe3;
  --paper: #fffaf1;
  --ink: #1c1814;
  --muted: #74685d;
  --soft: #a39587;
  --line: rgba(35, 29, 23, .12);
  --line-strong: rgba(35, 29, 23, .2);
  --orange: #ff7a1a;
  --coral: #ff4f5e;
  --blue: #3157ff;
  --green: #12885f;
  --yellow: #ffd36a;
  --shadow: 0 24px 70px rgba(63, 42, 23, .16);
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    linear-gradient(110deg, rgba(255,122,26,.11), transparent 42%),
    radial-gradient(circle at 90% 12%, rgba(49,87,255,.12), transparent 28rem),
    radial-gradient(circle at 8% 78%, rgba(255,79,94,.12), transparent 26rem),
    var(--bg);
  overflow-x: hidden;
}

.ambient { position: fixed; pointer-events: none; filter: blur(1px); opacity: .55; z-index: 0; }
.ambient-one { width: 360px; height: 360px; border-radius: 48% 52% 62% 38%; background: rgba(255,122,26,.14); top: -130px; left: -120px; }
.ambient-two { width: 420px; height: 420px; border-radius: 38% 62% 44% 56%; background: rgba(49,87,255,.1); right: -180px; bottom: 6%; }

.shell { position: relative; z-index: 1; width: min(1240px, calc(100% - 28px)); margin: 0 auto; padding: 20px 0 56px; }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,241,.72); backdrop-filter: blur(18px); position: sticky; top: 12px; z-index: 10; box-shadow: 0 10px 35px rgba(63,42,23,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fffaf1; background: var(--ink); font: 700 11px/1 var(--mono); }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 999px; }
.nav-links a:hover { background: rgba(28,24,20,.06); color: var(--ink); }

.hero { min-height: 62vh; display: grid; gap: 28px; align-items: center; padding: 58px 0 38px; }
.eyebrow { margin: 0; color: var(--orange); font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 14px 0 20px; max-width: 850px; font-family: var(--display); font-size: clamp(56px, 13vw, 142px); line-height: .82; letter-spacing: -.065em; font-weight: 700; }
h2 { margin: 8px 0 12px; font-family: var(--display); font-size: clamp(34px, 7vw, 76px); line-height: .86; letter-spacing: -.055em; }
h3 { margin: 0; font-size: 24px; line-height: .95; letter-spacing: -.04em; }
.subtitle { max-width: 680px; color: var(--muted); font-size: clamp(18px, 3.3vw, 25px); line-height: 1.36; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.primary-action, .secondary-action, .open-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; min-height: 48px; padding: 0 18px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-action, .open-btn { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px rgba(28,24,20,.16); }
.secondary-action { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,250,241,.62); }
.primary-action:hover, .secondary-action:hover, .open-btn:hover { transform: translateY(-2px); }

.showcase-card { min-height: 330px; border-radius: 42px; padding: 26px; background: linear-gradient(155deg, #1c1814, #3b251b 62%, #ff7a1a); color: var(--paper); box-shadow: var(--shadow); display: grid; align-content: space-between; position: relative; overflow: hidden; }
.showcase-card::after { content: ''; position: absolute; inset: auto -35% -45% 10%; height: 230px; background: rgba(255,255,255,.18); transform: rotate(-10deg); border-radius: 999px; }
.showcase-orbit { position: relative; width: 180px; height: 180px; border: 1px solid rgba(255,250,241,.25); border-radius: 50%; display: grid; place-items: center; }
.showcase-orbit span { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 8px rgba(255,211,106,.15); }
.showcase-orbit span:nth-child(1) { top: 18px; right: 38px; }
.showcase-orbit span:nth-child(2) { bottom: 26px; left: 22px; background: #8df0c1; }
.showcase-orbit span:nth-child(3) { right: -3px; bottom: 56px; background: #9cb2ff; }
.showcase-orbit strong { font: 800 82px/.8 var(--font); letter-spacing: -.08em; }
.showcase-card p { margin: 18px 0 4px; font-size: 28px; line-height: .95; letter-spacing: -.06em; font-weight: 800; }
.showcase-card small { color: rgba(255,250,241,.72); }

.metrics-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 42px; }
.metrics-strip article { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,250,241,.66); padding: 14px; box-shadow: 0 14px 34px rgba(63,42,23,.08); }
.metrics-strip span { display: block; font-size: clamp(30px, 9vw, 52px); line-height: .9; letter-spacing: -.07em; font-weight: 800; }
.metrics-strip small { display: block; color: var(--muted); margin-top: 7px; font-weight: 700; }

.section-head { max-width: 780px; margin: 18px 0 18px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.5; }
.project-grid { display: grid; gap: 16px; }
.project-card { position: relative; min-height: 360px; display: grid; align-content: space-between; gap: 22px; padding: 20px; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 9px; background: linear-gradient(90deg, var(--accent, var(--orange)), rgba(255,255,255,0)); }
.project-card::after { content: ''; position: absolute; width: 210px; height: 210px; right: -80px; top: -70px; border-radius: 50%; background: color-mix(in srgb, var(--accent, var(--orange)) 18%, transparent); }
.project-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.project-kind { color: var(--accent, var(--orange)); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.project-card h3 { margin-top: 12px; font-family: var(--display); font-size: clamp(34px, 7vw, 54px); }
.project-card p { position: relative; z-index: 1; color: var(--muted); font-size: 17px; line-height: 1.48; }
.status { position: relative; z-index: 1; border-radius: 999px; padding: 8px 10px; font: 700 11px/1 var(--mono); text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.status.online, .status.em-publicacao { color: var(--green); }
.status.online-temporario { color: #ad6a00; }
.stack { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.stack span { border: 1px solid var(--line); background: rgba(255,255,255,.52); color: var(--muted); border-radius: 999px; padding: 7px 9px; font: 700 11px/1 var(--mono); }
.project-footer { position: relative; z-index: 1; display: grid; gap: 12px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; color: var(--muted); background: rgba(255,255,255,.54); font: 700 11px/1 var(--mono); }
.badge.fixed { color: var(--green); }
.badge.temp { color: #ad6a00; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.path { color: var(--soft); font: 500 11px/1.45 var(--mono); overflow-wrap: anywhere; }

.method-grid { display: grid; gap: 14px; margin-top: 46px; }
.method-card, .domain-panel { border: 1px solid var(--line); border-radius: 32px; background: rgba(255,250,241,.66); box-shadow: 0 18px 50px rgba(63,42,23,.1); padding: 20px; }
.method-card.featured { background: var(--ink); color: var(--paper); }
.method-card.featured .eyebrow { color: var(--yellow); }
.method-card.featured p { color: rgba(255,250,241,.72); }
.step { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--mono); margin-bottom: 44px; }
.method-card p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
code { font-family: var(--mono); color: var(--blue); }

.domain-panel { margin-top: 14px; display: grid; gap: 18px; background: linear-gradient(135deg, rgba(49,87,255,.1), rgba(255,250,241,.7)); }
.domain-routes { display: grid; gap: 8px; }
.domain-routes span { display: block; border: 1px solid var(--line); background: rgba(255,255,255,.54); border-radius: 16px; padding: 12px; color: var(--muted); font: 700 12px/1.2 var(--mono); overflow-wrap: anywhere; }

@media (min-width: 760px) {
  .shell { width: min(1320px, calc(100% - 52px)); padding-top: 22px; }
  .nav-links { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); padding: 82px 0 52px; }
  .metrics-strip { gap: 14px; }
  .metrics-strip article { padding: 18px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1.2fr repeat(3, .8fr); align-items: stretch; }
  .domain-panel { grid-template-columns: .9fr 1.1fr; align-items: center; padding: 28px; }
  .domain-routes { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1120px) {
  .project-card:first-child { grid-column: span 1; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .topnav { border-radius: 22px; }
  .hero { padding-top: 42px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .showcase-card { min-height: 280px; border-radius: 32px; }
  .project-card { min-height: 330px; border-radius: 28px; }
}
