/* AMD Digital — design system
   Light, typographic, container-based layout. No web font: the system stack
   (SF Pro on Apple, Roboto on Android, Segoe UI on Windows) loads instantly. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);
  --accent: #1140ff;
  --accent-hover: #0a30cc;
  --accent-soft: rgba(17, 64, 255, .08);
  --nav-bg: rgba(255, 255, 255, .72);
  --dark: #101114;
  --dark-surface: #1c1d21;
  --dark-ink: #f5f5f7;
  --dark-mute: #a1a1a6;
  --ok: #1f9d55;
  --info: #1140ff;
  --warn: #c98a00;
  --wa: #25a865;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101114;
    --surface: #1c1d21;
    --ink: #f5f5f7;
    --mute: #a1a1a6;
    --line: #38383d;
    --hair: rgba(255, 255, 255, .1);
    --accent: #6f8dff;
    --accent-hover: #8ea5ff;
    --accent-soft: rgba(111, 141, 255, .14);
    --nav-bg: rgba(16, 17, 20, .72);
    --dark: #101114;
    --ok: #3ecf82;
    --info: #6f8dff;
    --warn: #f0b429;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand svg { height: 26px; width: auto; flex: none; }
.brand .top { fill: currentColor; }
.brand .base { fill: #1140ff; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--mute); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.2;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn.sm { min-height: 34px; padding: 7px 16px; font-size: 13px; }
.btn.light { background: #fff; color: #1d1d1f; }
.btn.light:hover { background: #e8e8ed; }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: #1f9257; }
@media (prefers-color-scheme: dark) { .btn:not(.light) { color: #000; } .btn.wa, .nav-links .btn.wa { color: #fff; } .nav-links .btn { color: #000; } }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--accent); font-size: 17px; }
.link::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .2s; }
.link:hover::after { transform: translateX(3px); }

/* ---------- Typography ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 10px; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.03em; }
h3 { font-size: 21px; line-height: 1.2; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--mute); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head .lead { margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
section.alt { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { font-size: 15px; }
.hero h1 { max-width: 900px; margin: 0 auto; }
.hero .lead { max-width: 660px; margin: 24px auto 0; }
.cta { display: flex; gap: 12px 26px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 34px; }

.stage {
  margin-top: 64px; padding: 28px; border-radius: var(--r-lg);
  background: var(--dark); color: var(--dark-ink); text-align: left;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35);
}
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.stage-title { font-size: 15px; font-weight: 600; }
.stage-keys { display: flex; gap: 18px; font-size: 13px; color: var(--dark-mute); }
.stage-keys i { display: inline-block; width: 18px; height: 0; margin-right: 7px; vertical-align: middle; border-top: 2px solid #f5f5f7; }
.stage-keys .fc i { border-top: 2px dashed #6f8dff; }
.stage svg { display: block; width: 100%; height: auto; }
.stage-note { margin-top: 10px; font-size: 12px; color: var(--dark-mute); }

/* ---------- Containers ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 32px;
  border: 1px solid var(--hair);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
section:not(.alt) .card { background: var(--bg-alt); border-color: transparent; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .25); }
.card p { color: var(--mute); font-size: 16px; }
.card h3 { margin-bottom: 8px; }

.icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { padding: 8px 16px; border-radius: 980px; background: var(--surface); border: 1px solid var(--hair); font-size: 14px; }

.kpis { margin-top: 56px; }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 26px 24px; font-size: 14px; color: var(--mute); line-height: 1.4; }
.kpi b { display: block; font-size: 44px; line-height: 1.05; letter-spacing: -.04em; color: var(--ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Projects ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--mute); margin: -24px 0 32px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.d1 { background: var(--ok); } .d2 { background: var(--info); } .d3 { background: var(--warn); }
.proj { display: flex; flex-direction: column; }
.proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dom { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.status { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 980px; background: var(--surface); border: 1px solid var(--hair); font-size: 12px; font-weight: 500; white-space: nowrap; }
.proj h3 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 10px; }
.res { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--hair); font-size: 15px; color: var(--ink); }
.tech { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.minis { margin-top: 20px; }
.mini { padding: 22px 24px; border-radius: var(--r-md); border: 1px dashed var(--line); font-size: 15px; color: var(--mute); }
.mini b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.sub-label { margin-top: 56px; font-size: 14px; font-weight: 600; color: var(--mute); }

/* ---------- Steps ---------- */
.step .n { font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); margin-bottom: 22px; font-variant-numeric: tabular-nums; }

/* ---------- Team ---------- */
.avatar { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.role { color: var(--accent); font-size: 15px; font-weight: 500; margin: 2px 0 12px; }

/* ---------- Contact ---------- */
#contact { padding-top: 0; }
.contact-box { background: var(--dark); color: var(--dark-ink); border-radius: var(--r-lg); padding: 72px 56px 56px; border: 1px solid rgba(255, 255, 255, .06); }
.contact-box .eyebrow { color: #8ea5ff; }
.contact-box .lead { color: var(--dark-mute); }
.contact-box .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.cc { background: var(--dark-surface); border-radius: var(--r-md); padding: 28px; border: 1px solid rgba(255, 255, 255, .06); }
.cc .role { color: #8ea5ff; }
.cc ul { margin: 0 0 22px; font-size: 16px; color: #d2d2d7; }
.cc li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-wrap: anywhere; }
.cc li a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); color: var(--mute); font-size: 14px; padding: 56px 0 0; }
footer a { overflow-wrap: anywhere; }
footer a:hover { color: var(--ink); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; padding-bottom: 40px; }
footer .brand { color: var(--ink); margin-bottom: 14px; }
.fsig { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
footer h4 { color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
footer li { margin-bottom: 8px; }
.fcontact li span { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.fbar { border-top: 1px solid var(--hair); padding: 18px 0 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }

/* ---------- Floating WhatsApp ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .fab { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 56px 0 48px; }
  .stage { margin-top: 44px; padding: 18px; border-radius: var(--r-md); }
  .sec-head { margin-bottom: 34px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .card { padding: 24px; border-radius: var(--r-md); }
  .kpi b { font-size: 36px; }
  .contact-box { padding: 44px 20px 20px; margin: 0 -8px; border-radius: var(--r-md); }
  .fgrid { grid-template-columns: 1fr; gap: 30px; }
  .fbar { padding-bottom: 92px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 56px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 22px;
    background: var(--bg); border-bottom: 1px solid var(--hair);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--hair); }
  .nav-links .btn { margin-top: 18px; min-height: 44px; font-size: 16px; }
}
@media (max-width: 420px) {
  .g4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 20px 16px; }
}
