/* AlexPE — clean engineering style */
:root {
  --navy: #13294b;
  --text: #1f2937;
  --muted: #5b6574;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --accent: #e0861a;
  --accent-dark: #b86a0f;
  --radius: 10px;
  --max: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

a { color: var(--navy); }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: .2px; }
.brand span { color: var(--accent); }
.nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--navy); }

/* Hero */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--navy); }
.hero p { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 620px; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); margin-left: 8px; }
.btn-ghost:hover { background: #fff; }

/* Sections */
section { padding: 52px 0; }
section h2 { margin: 0 0 20px; color: var(--navy); font-size: 26px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.buy-box { border: 2px solid var(--navy); border-radius: var(--radius); padding: 28px; text-align: center; }
.buy-box p { color: var(--muted); margin: 0 0 20px; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Answer pages */
.answer-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 6px; }
.answer-head h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); color: var(--navy); line-height: 1.2; }
.answer-head .ref { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.result {
  margin: 32px 0 8px; padding: 20px 24px; border-left: 5px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.result .label { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.result .value { font-size: 30px; font-weight: 700; color: var(--navy); }

.work h2 { font-size: 21px; margin: 36px 0 12px; }
.work ol { padding-left: 22px; }
.work li { margin-bottom: 10px; }

.formula {
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; overflow-x: auto; white-space: nowrap;
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { margin: 44px 0 0; padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.cta h2 { color: #fff; margin: 0 0 6px; font-size: 21px; }
.cta p { margin: 0 0 16px; color: #cfd8e6; }

.sample-flag { background: #fff6e8; border: 1px solid #f3d3a6; color: #8a5208; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .nav a { margin-left: 14px; }
  .btn-ghost { margin: 10px 0 0; }
}
