/* Rookery Software's website. Colours from the brand guide (RookerySoftware/brand): light by
   default, dark when the visitor's system is dark. */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --border: #dde2ea;
  --text: #1f2b46;
  --muted: #5d6676;
  --accent: #149488;
  --accent-text: #ffffff;
  --accent-soft: #e2f4f2;
  --navy: #1f2b46;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.06), 0 8px 24px rgb(16 24 40 / 0.08);
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111622;
    --surface: #181e2c;
    --surface-2: #212838;
    --border: #2b3346;
    --text: #e9ecf2;
    --muted: #9aa3b2;
    --accent: #2fb8aa;
    --accent-text: #0b1210;
    --accent-soft: #15302e;
    --navy: #5b7bb5;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 84px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-art::before { content: ""; position: absolute; width: min(340px, 85%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); }
.hero-art picture { position: relative; display: contents; }
.hero-mark { position: relative; width: min(220px, 55%); filter: drop-shadow(0 14px 22px rgb(0 0 0 / 0.18)); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bubble { position: absolute; top: -18px; right: 0; max-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; font-size: 0.9rem; box-shadow: var(--shadow); }

.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 12px; max-width: 42em; }
.center .section-lead { margin-inline: auto; }

.product { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; margin-top: 40px; padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg); }
.product-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 72%); }
.product-art img { width: 70%; }
.product-text p { color: var(--muted); margin-bottom: 18px; max-width: 46em; }
.product-text h3 { font-size: 1.6rem; }
.product-text .product-tagline { color: var(--text); font-size: 1.1rem; margin: 4px 0 12px; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px !important; }
.product-soon { border-style: dashed; }
.soon-art svg { fill: var(--navy); stroke: var(--navy); opacity: 0.75; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.value p { color: var(--muted); font-size: 0.94rem; margin-top: 8px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.split .section-lead + .section-lead { margin-top: 14px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.about-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; align-items: center; gap: 16px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .product-art { width: 140px; }
  .section { padding: 64px 0; }
  .bubble { position: static; margin-top: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; }
}
