/* Riggle Technologies: Blueprint theme */
:root {
  --bg: #0c1b2e;
  --bg-2: #0f2238;
  --panel: rgba(12, 27, 46, 0.88);
  --grid: rgba(80, 160, 255, 0.08);
  --line: rgba(79, 163, 255, 0.35);
  --blue: #4fa3ff;
  --orange: #ff8a3d;
  --orange-ink: #1a0d02;
  --text: #b8c9de;
  --text-dim: #8fb3d9;
  --white: #ffffff;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--white); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--white); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
.accent { color: var(--orange); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 27, 46, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand svg { height: 46px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { box-shadow: 0 2px 0 var(--orange); padding-bottom: 4px; }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: var(--orange-ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--white);
  width: 42px; height: 42px; border-radius: 4px; cursor: pointer; font-size: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 3px;
  font-weight: 600; font-size: 15px; font-family: var(--body);
  cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { color: var(--orange-ink); box-shadow: 0 6px 24px rgba(255, 138, 61, .35); }
.btn-ghost { border: 1px dashed var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid rgba(79, 163, 255, .15); }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px; display: block;
}
.lead { font-size: 18px; max-width: 640px; color: var(--text); }
.section-head { max-width: 700px; margin-bottom: 44px; }

/* Hero */
.hero { padding: 110px 0 96px; position: relative; overflow: hidden; }
.hero h1 { max-width: 820px; }
.hero .lead { margin-bottom: 32px; }
.hero .container { position: relative; }
.hero-art {
  position: absolute; right: 20px; top: -30px; width: 400px; opacity: .9; pointer-events: none;
}
@media (max-width: 1180px) { .hero-art { width: 320px; top: 0; } }
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  padding: 28px; position: relative; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card::before, .card::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--orange); border-style: solid;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card p:last-child { margin-bottom: 0; }
a.card { color: var(--text); }
.card .icon {
  width: 44px; height: 44px; border: 1px solid var(--blue); display: grid; place-items: center;
  color: var(--blue); font-family: var(--mono); font-size: 15px; font-weight: 700; margin-bottom: 18px;
}
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--orange); border: 1px solid var(--orange); padding: 3px 8px; border-radius: 2px; margin-bottom: 14px;
}
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 6px; }

/* Migration strip */
.migrate {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 14px; margin-top: 8px;
}
.migrate .old, .migrate .new { padding: 8px 14px; border: 1px solid var(--line); }
.migrate .old { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(255,138,61,.6); }
.migrate .new { color: var(--white); border-color: var(--orange); }
.migrate .arrow { color: var(--orange); }

/* Steps */
.steps { counter-reset: step; }
.step { padding-left: 0; }
.step .num { font-family: var(--mono); color: var(--orange); font-size: 13px; margin-bottom: 10px; display: block; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.product + .product { border-top: 1px solid rgba(79, 163, 255, .15); }
.product-visual {
  aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; position: relative;
}
.product-visual .mono-big { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); color: var(--white); font-weight: 700; }
.visual-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; }
.visual-stack img { width: clamp(88px, 12vw, 132px); height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); }
.visual-tagline { font-family: var(--mono); font-size: 13px; color: var(--text-dim); letter-spacing: .04em; }
.product-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-title img { width: 48px; height: 48px; flex: none; }
.product-title h3 { margin: 0; }
.product-visual .corner { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--blue); }
.product-visual .tl { top: 12px; left: 14px; }
.product-visual .br { bottom: 12px; right: 14px; color: var(--orange); }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed rgba(79, 163, 255, .2); }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--orange); font-family: var(--mono); }

/* Products page: product blocks and plan cards */
.prod-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prod-jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line);
  color: var(--white); font-size: 14px; font-weight: 500; background: var(--panel);
}
.prod-jump a:hover { border-color: var(--orange); }
.prod { padding: 72px 0; scroll-margin-top: 80px; }
.prod + .prod { border-top: 1px solid rgba(79, 163, 255, .15); }
.prod-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; margin-bottom: 36px; }
.prod-logo { width: 88px; height: 88px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); }
.prod-head h2 { margin-bottom: 6px; }
.prod-tagline { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 12px; letter-spacing: .03em; }
.prod-head .lead { margin: 0; }
.prod-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.prod-platforms { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.plans { display: grid; gap: 20px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 28px; position: relative; display: flex; flex-direction: column; }
.plan h3 { margin-bottom: 6px; }
.plan .price { font-family: var(--display); font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 18px; line-height: 1.1; }
.plan .price small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--text-dim); margin-left: 4px; }
.plan .feature-list { margin: 0; }
.plan .feature-list li { font-size: 15px; }
.plan-featured { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 12px 40px rgba(255, 138, 61, .12); }
.plan-flag {
  position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  background: var(--orange); color: var(--orange-ink); padding: 3px 10px; font-weight: 700;
}
.plan-flag-blue { background: var(--blue); color: #04121f; }
.plan-note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* CTA band */
.cta-band {
  border: 1px solid var(--orange); background: rgba(255, 138, 61, .06); padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; background: rgba(5, 14, 26, .7); color: var(--white);
  border: 1px solid var(--line); border-radius: 2px; font: inherit; font-size: 15px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border: 1px solid; margin-bottom: 20px; display: none; }
.notice.show { display: block; }
.notice.ok { border-color: #34d399; color: #a7f3d0; background: rgba(52, 211, 153, .08); }
.notice.err { border-color: #f87171; color: #fecaca; background: rgba(248, 113, 113, .08); }
.contact-info dt { font-family: var(--mono); font-size: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.contact-info dd { margin: 4px 0 22px; color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; background: rgba(5, 14, 26, .6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; font-family: var(--mono); color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--white); }
.footer-brand svg { height: 44px; width: auto; margin-bottom: 12px; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(79, 163, 255, .15); font-size: 13px; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-art { display: none; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .prod-head { grid-template-columns: auto 1fr; }
  .prod-links { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .plans-3 { grid-template-columns: 1fr; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px dashed rgba(79,163,255,.15); }
  .nav-links a.active { box-shadow: none; color: var(--orange); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
  .grid-3, .grid-2, .form .row { grid-template-columns: 1fr; }
  .plans-2 { grid-template-columns: 1fr; }
  .prod-head { grid-template-columns: 1fr; gap: 16px; }
  .prod-logo { width: 64px; height: 64px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .cta-band { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Privacy policy and terms pages */
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-doc ul { padding-left: 22px; margin: 0 0 16px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: #fff; }
.legal-links a { color: var(--text-dim); }
.legal-links a:hover { color: #fff; }
