:root {
  --red: #e10600;
  --red-dark: #b30500;
  --ink: #0b0b0c;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --green: #12a150;
  --amber: #d98a00;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Logo ---------- */
.logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo .a { color: var(--red); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .logo { font-size: 26px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a.link { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a.link:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(225,6,0,.06), transparent 70%),
    var(--bg);
}
.hero .logo {
  display: block;
  font-size: clamp(96px, 22vw, 260px);
  line-height: .9;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero .tagline {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-2);
}
.hero .sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin: 0 0 10px;
}
h2.title { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; margin: 0; }

/* ---------- Tool cards ---------- */
.tools-grid {
  margin-top: 48px;
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.tool-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* the "window" */
.window { background: var(--bg-soft); padding: 22px 22px 0; }
.window-frame {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  background: #f1f1f4; border-bottom: 1px solid var(--line);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6d6dc; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar .url {
  margin-left: 10px; flex: 1;
  height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line);
  font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 8px;
  overflow: hidden; white-space: nowrap;
}
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.screen.blurred img { filter: blur(1.5px) saturate(.9); transform: scale(1.03); }

/* Placeholder mock shown until real screenshots are added */
.mock { position: absolute; inset: 0; padding: 18px; display: grid; gap: 10px; grid-template-rows: auto 1fr; }
.mock .m-head { display: flex; gap: 10px; align-items: center; }
.mock .m-dot { width: 26px; height: 26px; border-radius: 8px; }
.mock .m-line { height: 10px; border-radius: 6px; background: #ececf0; }
.mock .m-body { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr; }
.mock .m-box { border-radius: 10px; background: #f3f3f6; }
.mock .m-box.tall { grid-row: span 2; }

.tool-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.tool-desc { margin: 0; color: var(--ink-2); }
.tool-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more { font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.tool-card:hover .more .arrow { transform: translateX(4px); }
.arrow { transition: transform .2s; display: inline-block; }

/* status badges */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.beta { color: var(--green); background: rgba(18,161,80,.08); border-color: rgba(18,161,80,.25); }
.badge.dev  { color: var(--amber); background: rgba(217,138,0,.08); border-color: rgba(217,138,0,.28); }
.badge.dev::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.progress { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.progress small { color: var(--muted); font-size: 12px; font-weight: 500; }
.progress .bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: start; }
.features { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feature .ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(225,6,0,.08); color: var(--red); font-weight: 800; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr; align-items: center;
}
.cta-box::after {
  content: "A"; position: absolute; right: -40px; bottom: -120px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 420px; line-height: 1; color: var(--red); opacity: .18; pointer-events: none;
}
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.cta-box h2 .red { color: var(--red); }
.cta-box p { margin: 0; color: #c9c9cf; font-size: 18px; max-width: 560px; }
.cta-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.cta-steps li { display: flex; gap: 14px; align-items: flex-start; color: #e8e8ec; }
.cta-steps b {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font-size: 14px;
}
.cta-action { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cta-action .note { color: #a6a6ad; font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 15px; padding: 11px 20px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .logo { font-size: 22px; }

/* ---------- Detail pages ---------- */
.detail-hero { padding: 64px 0 40px; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 26px; }
.back:hover { color: var(--red); }
.detail-hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 14px 0 18px; }
.detail-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dev-note {
  margin-top: 28px; padding: 16px 20px; border-radius: 12px;
  background: rgba(217,138,0,.08); border: 1px solid rgba(217,138,0,.28); color: #7a4e00;
  max-width: 680px;
}
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot .screen { aspect-ratio: 16 / 9; }
.func-grid { margin-top: 40px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.func { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.func h3 { margin: 0 0 8px; font-size: 18px; }
.func p { margin: 0; color: var(--ink-2); font-size: 15px; }
.func .num { color: var(--red); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.func-grid.stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .func-grid.stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.form-wrap { display: grid; gap: 56px; grid-template-columns: 1fr 1.5fr; align-items: start; }
.form-side { position: sticky; top: 100px; }
.form-side ul { padding-left: 18px; color: var(--ink-2); }
form.card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); background: #fff; }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-weight: 700; font-size: 18px; margin-bottom: 16px; padding: 0; }
.row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,11,12,.06); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field .err { font-size: 13px; color: var(--red); display: none; }
.field.invalid .err { display: block; }
.hint { font-size: 13px; color: var(--muted); }

.drop {
  border: 2px dashed #cfcfd6; border-radius: 14px; padding: 30px 20px; text-align: center;
  color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--red); background: rgba(225,6,0,.03); }
.drop strong { color: var(--red); }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--bg-soft); border-radius: 10px; font-size: 14px;
}
.file-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.file-list button:hover { color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }
.consent input { margin-top: 4px; accent-color: var(--red); }
.form-msg { margin-top: 18px; padding: 14px 18px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: rgba(18,161,80,.08); color: #0b6b35; border: 1px solid rgba(18,161,80,.25); }
.form-msg.fail { display: block; background: rgba(225,6,0,.06); color: var(--red-dark); border: 1px solid rgba(225,6,0,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .cta-box, .form-wrap { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .func-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav ul { gap: 16px; }
  .nav ul li.hide-sm { display: none; }
  .features, .row, .gallery, .func-grid { grid-template-columns: 1fr; }
  .tool-body { padding: 22px; }
  .window { padding: 14px 14px 0; }
}
