/* Rema Technology Services — site styles */
:root {
  --ink: #111214;
  --ink-2: #3a3d42;
  --muted: #6b6f76;
  --line: #e4e5e7;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --gray: #a7a9ac;
  --yellow: #fddd17;
  --yellow-deep: #e9c800;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 8px 24px rgba(17, 18, 20, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 10px;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .btn { padding: 9px 18px; margin-left: 8px; }
.nav .btn-dark, .nav .btn-dark:hover { color: #fff; background: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .brand img { height: 36px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 760px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero-mark {
  position: absolute; right: -60px; top: 50%;
  width: 520px; transform: translateY(-50%);
  opacity: .95; z-index: 0; pointer-events: none;
}
@media (max-width: 1180px) { .hero-mark { width: 420px; right: -150px; opacity: .3; } }
@media (max-width: 700px) { .hero-mark { width: 300px; right: -150px; opacity: .2; } }
@media (max-width: 600px) { .hero { padding: 64px 0 72px; } }

.page-hero { padding: 72px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: var(--gray); }
.section-dark .lead, .section-dark p { color: #c9cacc; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--ink-2); margin: 0; }
.card h3 { margin-top: 18px; }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--yellow);
}
.icon svg { width: 24px; height: 24px; }
.card-link { text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link .more { display: inline-block; margin-top: 16px; font-weight: 500; }
.card-link .more::after { content: " →"; }

/* Feature lists */
.feature-group { margin-bottom: 40px; }
.feature-group h3 { display: flex; align-items: center; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111214' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks strong { color: var(--ink); font-weight: 600; }
.section-dark .checks li { color: #c9cacc; }
.section-dark .checks strong { color: #fff; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.section-dark .pill { background: #1d1f22; border-color: #2c2f33; color: #d8d9db; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Product mock */
.mock {
  border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(17, 18, 20, .25);
  font-size: 13px; line-height: 1.45; color: var(--ink);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f1ef; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d6d8; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-status { padding: 8px 14px; background: #fff4d6; color: #7a5a00; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mock-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.mock-tabs { display: flex; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-tabs b { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--yellow); }
.mock-body { padding: 14px; display: grid; gap: 10px; background: #fafaf9; }
.mock-post { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.mock-post .tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.tag-out { background: #fde2e1; color: #a1251c; }
.tag-ann { background: #e6efff; color: #1d4fb8; }
.tag-res { background: #dff5e5; color: #1b7a3a; }
.mock-post h4 { font-size: 14px; margin: 6px 0 4px; }
.mock-post p { margin: 0; color: var(--muted); }
.mock-meta { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 12px; }

.toast {
  position: absolute; right: -18px; bottom: -22px;
  width: 260px; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.35);
}
.toast b { display: block; margin-bottom: 2px; }
.toast small { color: #b9babd; }
.mock-wrap { position: relative; }
@media (max-width: 600px) { .toast { position: static; width: auto; margin-top: 12px; } }

/* CTA band */
.cta-band {
  background: var(--yellow);
  border-radius: 22px;
  padding: 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #3b3500; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 48px; }
.stat { border-top: 3px solid var(--yellow); padding-top: 14px; }
.stat b { display: block; font-size: 2rem; font-weight: 600; }
.stat span { color: var(--muted); }
.section-dark .stat span { color: var(--gray); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: step; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { content: "0" counter(step); display: block; font-weight: 600; font-size: 1.4rem; color: var(--gray); margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

.note { font-size: .9rem; color: var(--muted); margin-top: 24px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9cacc; padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #c9cacc; }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; }
.footer-bottom { border-top: 1px solid #2a2c30; margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8d8f94; }
