/* RRR BUILDERS LTD — site styles (vanilla CSS) */
:root {
  --bg: #05080c;
  --bg-2: #0b1118;
  --surface: #121921;
  --surface-2: #1a222a;
  --border: rgba(124, 131, 141, 0.28);
  --text: #ffffff;
  --text-2: #e7e7e7;
  --muted: #b8bec7;
  --gold: #ffc400;
  --gold-2: #f5a800;
  --gold-ink: #1a1300;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--text); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 12, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.brand span b { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); background: rgba(255, 196, 0, .08); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: .98rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--gold-ink); }
.btn-primary:hover { background: #ffd23f; }
.btn-ghost { border-color: rgba(255, 196, 0, .55); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(255, 196, 0, .08); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-play { background: #000; color: #fff; border: 1px solid #5f6368; padding: 10px 20px 10px 16px; }
.btn-play:hover { border-color: var(--gold); }
.btn-play .lbl { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play .lbl small { font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #cfd3d8; }
.btn-play .lbl span { font-size: 1.12rem; font-weight: 600; }
.btn-play svg { width: 26px; height: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(255, 196, 0, .12), transparent 60%),
    linear-gradient(180deg, #0b1118 0%, var(--bg) 100%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(5, 8, 12, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
}
.hero-badge img { width: 44px; height: 44px; border-radius: 10px; aspect-ratio: auto; }
.hero-badge strong { color: var(--text); display: block; font-size: .95rem; }
.hero-badge span { color: var(--muted); font-size: .82rem; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; }
.stat strong { display: block; font-family: var(--display); color: var(--gold); font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(255, 196, 0, .45); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 196, 0, .1); color: var(--gold); margin-bottom: 18px;
  border: 1px solid rgba(255, 196, 0, .25);
}
.icon svg { width: 26px; height: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 196, 0, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* App feature block */
.app-card {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.app-card .app-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: var(--shadow); }
@media (max-width: 620px) { .app-card { grid-template-columns: 1fr; } .app-card .app-icon { width: 88px; height: 88px; border-radius: 20px; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }

.phones { display: flex; gap: 18px; justify-content: center; }
.phone { width: 46%; max-width: 250px; border-radius: 26px; overflow: hidden; border: 6px solid #1f2731; box-shadow: var(--shadow); background: #000; }
.phone:nth-child(2) { transform: translateY(36px); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

/* Screenshot gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); }
.gallery figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; text-align: center; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: #2a333d; border-radius: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 18px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* Info table */
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .95rem; }
.facts th { color: var(--muted); font-weight: 600; width: 38%; }
.facts td { color: var(--text-2); word-break: break-word; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* CTA */
.cta { background: linear-gradient(135deg, #1a1300, #3a2a00 60%, #ffc400 160%); border: 1px solid rgba(255, 196, 0, .35); border-radius: var(--radius-lg); padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--text-2); margin: 0; }
@media (max-width: 620px) { .cta { padding: 28px 22px; } }

/* Page header (inner pages) */
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, #0b1118, var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--muted); max-width: 70ch; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* Legal / policy documents */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 84px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 60px; } }
.toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.toc h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font); }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; font-size: .9rem; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--gold); }
@media (max-width: 900px) { .toc { position: static; } }
.doc { max-width: 780px; min-width: 0; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; padding-top: 8px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: 1.4em; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; margin-top: 16px; }
.meta b { color: var(--text-2); font-weight: 600; }
.note {
  background: rgba(255, 196, 0, .07); border: 1px solid rgba(255, 196, 0, .3);
  border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; color: var(--text-2);
}
.note p:last-child { margin-bottom: 0; }
.doc .facts { margin: 8px 0 20px; }

.policy-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.policy-link { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: var(--text-2); }
.policy-link:hover { border-color: var(--gold); text-decoration: none; }
.policy-link strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 4px; }
.policy-link span { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h3 { margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item a { word-break: break-all; }

/* Footer */
.site-footer { background: #030508; border-top: 1px solid var(--border); padding: 56px 0 28px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-family: var(--font); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--display); font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); font-weight: 800; line-height: 1; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
