/* Rolarix Systems Ltd — shared stylesheet */
:root {
  --navy: #0d1b2e;
  --text: #1c2b40;
  --muted: #5a6a80;
  --line: #e3e8ef;
  --soft: #f5f7fb;
  --accent: #0b5fff;
  --accent-dark: #084ad1;
  --accent-soft: #eaf1ff;
  --white: #ffffff;
  --radius: 14px;
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: 0.18em; color: var(--navy);
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 28px; height: 28px; border-radius: 7px; background: var(--accent);
  display: grid; place-items: center; color: var(--white); font-size: 0.95rem; letter-spacing: 0;
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
  color: var(--navy);
}
.nav-toggle:hover { background: var(--soft); }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.nav-toggle .bar + .bar { margin-top: 5px; }
.nav-toggle-bars { display: flex; flex-direction: column; }
.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(13, 27, 46, 0.08);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.site-nav a {
  display: block; padding: 12px 4px; color: var(--navy); font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 72px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--soft); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.075rem; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Feature cards ---------- */
.cards { display: grid; gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Specs ---------- */
.specs-wrap { display: grid; gap: 32px; align-items: start; }
.specs-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs-table th, .specs-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table th { width: 40%; color: var(--navy); font-weight: 600; background: var(--soft); }
.specs-table td { color: var(--text); }

/* ---------- App ---------- */
.app-grid { display: grid; gap: 40px; align-items: center; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.app-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.app-list .check {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.app-list .check svg { width: 16px; height: 16px; }
.app-list strong { display: block; color: var(--navy); }
.app-list span.desc { color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platform {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 0.9rem; font-weight: 600; color: var(--navy);
}
.phone-art { width: 100%; max-width: 300px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; }
.pillars { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.pillar {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white);
}
.pillar strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.pillar span { color: var(--muted); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--white);
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.contact-label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.contact-value { color: var(--navy); font-weight: 550; word-break: break-word; }
.contact-value a { color: var(--navy); }
.contact-value a:hover { color: var(--accent); }
.cta-box {
  background: var(--navy); color: #c9d4e5; border-radius: var(--radius); padding: 32px 28px;
}
.cta-box h3 { color: var(--white); font-size: 1.35rem; }
.cta-box p { margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Legal / prose pages ---------- */
.prose-page { padding: 48px 0 80px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose .meta { color: var(--muted); margin-bottom: 2em; }
.prose .summary {
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 18px 20px; margin: 0 0 2em;
}
.prose .summary p:last-child { margin-bottom: 0; }
.prose address { font-style: normal; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 2em; }
.toc strong { color: var(--navy); }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; columns: 1; }
.toc li { margin-bottom: 4px; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 64px - 97px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(4.5rem, 18vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.notfound p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .toc ol { columns: 2; column-gap: 32px; }
}

@media (min-width: 900px) {
  .container { padding: 0 32px; }
  section { padding: 96px 0; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .specs-wrap { grid-template-columns: 1fr 1.4fr; gap: 56px; }
  .app-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }

  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; background: transparent; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; padding: 0; }
  .site-nav a { border: 0; padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; }
  .site-nav a:hover { background: var(--soft); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
