/* ===========================================================
   Robina Robotics — Global Stylesheet
   Aesthetic: Dark technical / chromed-blue / engineering-grade
   =========================================================== */

:root {
  /* Color system - drawn from the logo */
  --c-bg: #0a1424;          /* Page background — deep navy */
  --c-bg-soft: #0f1d33;     /* Card background */
  --c-bg-deeper: #050b18;   /* Section deep */
  --c-surface: #14253f;     /* Raised surface */
  --c-line: #1f3553;        /* Border / divider */
  --c-line-soft: #16263f;

  --c-ink: #e6eef8;         /* Primary text — soft white */
  --c-ink-mute: #a8b8d0;    /* Secondary text */
  --c-ink-dim: #6e809b;     /* Tertiary text */

  --c-accent: #5cdbff;      /* Electric cyan — logo glow */
  --c-accent-strong: #8be7ff;
  --c-accent-deep: #1d8bb8;
  --c-chrome: #cfe7ff;      /* Chrome highlight */

  /* Typography */
  --f-display: "Orbitron", "Rajdhani", "Arial Narrow", sans-serif;
  --f-body: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "Courier New", monospace;

  /* Sizing */
  --max-w: 1240px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow-glow: 0 0 30px rgba(92, 219, 255, 0.15);
  --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.6);

  --header-h: 92px;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background-color: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  /* Subtle gridded background that suggests a technical grid */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(92, 219, 255, 0.08), transparent 70%),
    linear-gradient(rgba(31, 53, 83, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 53, 83, 0.25) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent-strong); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #050b18 0%, #0a1424 100%);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(92, 219, 255, 0.25));
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .25s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--c-accent);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ---------------- Generic page header (sub-pages) ---------------- */
.page-hero {
  position: relative;
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(92, 219, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--c-bg-deeper) 0%, var(--c-bg) 100%);
  overflow: hidden;
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--c-accent);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-chrome);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
  text-shadow: 0 0 40px rgba(92, 219, 255, 0.2);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--c-chrome);
  letter-spacing: 0.02em;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

p { margin-bottom: 1em; color: var(--c-ink-mute); }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-ink); }

.lede {
  font-size: 1.15rem;
  color: var(--c-ink);
  max-width: 760px;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------------- Layout ---------------- */
main { display: block; }

section {
  padding: 80px 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
}

.section-deep {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-deeper) 100%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

/* ---------------- Home Hero ---------------- */
.hero {
  position: relative;
  padding: 90px 24px 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(92, 219, 255, 0.18), transparent 70%),
    var(--c-bg-deeper);
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-headline .accent {
  color: var(--c-accent);
  position: relative;
  display: inline-block;
}

.hero-tagline {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  background: rgba(92, 219, 255, 0.04);
  border-radius: var(--r-sm);
}

.hero-art {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.hero-art img { width: 100%; display: block; }

/* ---------------- Buttons ---------------- */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-accent);
  cursor: pointer;
  transition: all .25s ease;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-bg-deeper);
}
.btn-primary:hover {
  background: var(--c-accent-strong);
  color: var(--c-bg-deeper);
  box-shadow: 0 0 25px rgba(92, 219, 255, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-accent);
}
.btn-ghost:hover {
  background: rgba(92, 219, 255, 0.08);
  color: var(--c-accent-strong);
}

.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  transform: scaleX(0);
  transition: transform .4s ease;
}

.card:hover {
  border-color: var(--c-accent-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(92, 219, 255, 0.15), rgba(92, 219, 255, 0.05));
  border: 1px solid var(--c-accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-accent);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.95rem; color: var(--c-ink-mute); margin: 0; }

/* Image-led feature blocks (alternating) */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse > .feature-text { order: 2; }
.feature-block.reverse > .feature-art  { order: 1; }

.feature-art {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--c-bg-soft);
}

.feature-text .eyebrow { margin-bottom: 12px; }
.feature-text h2 { margin-bottom: 18px; }
.feature-text ul { list-style: none; margin-top: 18px; }
.feature-text ul li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--c-line);
  color: var(--c-ink-mute);
}
.feature-text ul li:last-child { border-bottom: none; }
.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 1px;
  background: var(--c-accent);
}
.feature-text ul li strong { color: var(--c-ink); }

/* ---------------- Section heading ---------------- */
.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------------- Stats / value strip ---------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-deeper);
}
.stat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--c-line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin-top: 6px;
}

/* ---------------- Team cards ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.team-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .3s ease;
  position: relative;
}

.team-card:hover {
  border-color: var(--c-accent-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.team-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, var(--c-bg-deeper), var(--c-bg-soft));
  border-bottom: 1px solid var(--c-line);
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-body {
  padding: 22px 24px 26px;
}

.team-role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--c-chrome);
}

.team-bio {
  font-size: 0.92rem;
  color: var(--c-ink-mute);
  line-height: 1.65;
  margin-bottom: 18px;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  border-top: 1px solid var(--c-line);
  padding-top: 16px;
}
.team-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-ink-mute);
}
.team-links a:hover { color: var(--c-accent); }
.team-links a svg { width: 14px; height: 14px; }

/* ---------------- Mission strip ---------------- */
.mission-band {
  padding: 60px 24px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(92, 219, 255, 0.06), transparent 70%),
    var(--c-bg-deeper);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}

.mission-band blockquote {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--c-chrome);
  letter-spacing: 0.005em;
}
.mission-band blockquote::before,
.mission-band blockquote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-accent);
  margin: 24px auto;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 28px;
  font-size: 0.97rem;
  margin-top: 26px;
}
.contact-info dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  padding-top: 4px;
}
.contact-info dd { color: var(--c-ink); }

.contact-info dd a { color: var(--c-accent); }

.contact-form {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 36px 32px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ink-dim);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-bg-deeper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color .2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(92, 219, 255, 0.12);
}

.form-row textarea { min-height: 130px; resize: vertical; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--c-bg-deeper);
  border-top: 1px solid var(--c-line);
  padding: 50px 24px 26px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(92, 219, 255, 0.2));
}

.footer-inception img {
  height: 127px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(92, 219, 255, 0.2));
}

.footer-chla img {
  height: 145px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(92, 219, 255, 0.2));
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--c-ink-dim);
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--c-ink-mute);
  font-size: 0.92rem;
}
.footer-col ul li a:hover { color: var(--c-accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-ink-dim);
}

.social-links {
  display: flex;
  gap: 14px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-ink-mute);
  transition: all .2s ease;
}
.social-links a:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(92, 219, 255, 0.06);
  box-shadow: 0 0 15px rgba(92, 219, 255, 0.2);
}

.social-links svg { width: 18px; height: 18px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  .hero { padding: 60px 22px 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; max-width: 540px; margin: 0 auto; }
  .feature-block { grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
  .feature-block.reverse > .feature-text,
  .feature-block.reverse > .feature-art { order: unset; }
  .feature-block .feature-art { max-width: 540px; margin: 0 auto; width: 100%; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 60px 22px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg-deeper);
    border-bottom: 1px solid var(--c-line);
    padding: 12px;
    gap: 0;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-line-soft);
  }
  .main-nav a::after { display: none; }
  .header-inner { padding: 12px 18px; }
  .brand-logo img { height: 44px; }

  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--c-line); }
  .stat:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-info dl { grid-template-columns: 1fr; gap: 4px; }
  .contact-info dt { padding-top: 14px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 18px; font-size: 12px; }
  h1 { font-size: 1.9rem; }
  .hero-headline { font-size: 2.1rem; }
  .lede { font-size: 1.02rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Small utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
