/* Renderstead marketing site — architectural blueprint-to-3D visual system */

:root {
  --bg: #070d19;
  --bg-elevated: #0d1629;
  --surface: rgba(16, 27, 49, 0.72);
  --surface-strong: #12203a;
  --border: rgba(125, 211, 252, 0.16);
  --border-strong: rgba(125, 211, 252, 0.34);

  --text: #f8fafc;
  --text-muted: #9eb3cc;
  --text-subtle: #6f86a3;

  --accent: #38bdf8;
  --accent-soft: #7dd3fc;
  --warm: #e6d1b5;
  --warm-deep: #c7a982;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #04101f;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 16px 0;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), padding 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 11px 0;
  background: rgba(7, 13, 25, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  padding: 3px;
  background: radial-gradient(circle at 50% 44%, #12203a 0%, #0b1324 100%);
  border: 1px solid var(--border);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  line-height: 1;
}

.brand-word b {
  font-weight: 600;
}

.brand-word span {
  font-weight: 300;
  color: var(--accent-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #60d0ff 100%);
  color: #04101f;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.42);
}

.btn-ghost {
  background: rgba(16, 27, 49, 0.65);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(22, 37, 66, 0.85);
}

/* Hero */
.hero {
  position: relative;
  padding: 136px 0 96px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 211, 252, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

@keyframes grid-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 56px 56px;
  }
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 540px;
  background:
    radial-gradient(circle at 30% 45%, rgba(56, 189, 248, 0.18), transparent 58%),
    radial-gradient(circle at 72% 45%, rgba(230, 209, 181, 0.11), transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 27, 49, 0.78);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.3vw, 3.65rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.text-gradient {
  background: linear-gradient(120deg, #7dd3fc 0%, #f8fafc 52%, #e6d1b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 52ch;
  font-size: 16.5px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-specs {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
}

.showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, rgba(125, 211, 252, 0.16), rgba(16, 27, 49, 0.72) 40%, rgba(230, 209, 181, 0.14));
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(2, 6, 16, 0.65);
  will-change: transform;
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-soft);
  border-style: solid;
  opacity: 0.75;
  pointer-events: none;
}

.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

.hero-slides {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  background: #0b1324;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6.5s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.slide-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(7, 13, 25, 0.76);
  border: 1px solid rgba(125, 211, 252, 0.25);
  backdrop-filter: blur(12px);
  font-size: 12.5px;
  color: var(--text);
}

.tag-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(248, 250, 252, 0.32);
  transition: background 0.3s ease, width 0.3s var(--ease-out);
}

.hero-dot.is-active {
  width: 38px;
  background: var(--accent);
}

.floating-badge {
  position: absolute;
  left: -22px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(11, 19, 36, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(2, 6, 16, 0.55);
  backdrop-filter: blur(14px);
  animation: float-slow 5.5s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.badge-text strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.badge-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s var(--ease-out);
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 50px rgba(2, 6, 16, 0.5);
  outline: none;
}

.gallery-media {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1324;
}

.gallery-card--wide .gallery-media {
  aspect-ratio: 21 / 10;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.045);
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.gallery-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 3px;
}

.gallery-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.gallery-expand {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gallery-card:hover .gallery-expand {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

/* Capabilities */
.section-capabilities {
  background: linear-gradient(180deg, transparent 0%, rgba(16, 27, 49, 0.42) 50%, transparent 100%);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cap-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-soft);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.cap-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.cap-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--warm);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 209, 181, 0.1);
  border: 1px solid rgba(230, 209, 181, 0.26);
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #101d35 0%, #0a1222 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 64px rgba(2, 6, 16, 0.55);
}

.contact-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 65%);
  pointer-events: none;
}

.contact-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
}

.contact-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 48ch;
}

.contact-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.contact-note code {
  font-family: var(--font-mono);
  color: var(--accent-soft);
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Lightbox */
html.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: scale(0.97);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.is-open .lightbox-dialog {
  transform: scale(1);
}

[data-copy-email].is-copied {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(56, 189, 248, 0.14);
}

.lightbox-figure {
  margin: 0;
  flex: 1;
  max-width: 1020px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #0b1324;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
}

.lightbox-figure figcaption {
  text-align: center;
  font-size: 14.5px;
  color: var(--text-muted);
}

.lightbox-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 19, 36, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
}

/* Scroll Reveal (progressive enhancement via .js-ready) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    padding: 116px 0 72px;
  }

  .hero-inner,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .floating-badge {
    left: 16px;
    bottom: -18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card--wide {
    grid-column: span 2;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .hero-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-grid,
  .cap-grid,
  .contact-secondary {
    grid-template-columns: 1fr;
  }

  .gallery-card--wide {
    grid-column: auto;
  }

  .gallery-card--wide .gallery-media {
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 68px 0;
  }

  .contact-card {
    padding: 30px 22px;
  }

  .lightbox-dialog {
    flex-direction: column;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    bottom: 20px;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-grid-bg,
  .eyebrow-dot,
  .floating-badge {
    animation: none;
  }

  .hero-slide img,
  .gallery-media img,
  .js-ready [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
