/* =========================================================
   Reliant Controls — Site Styles
   Colors: edit the variables below to re-theme the site.
   ========================================================= */
:root {
  --bg: #0b1220;            /* page background (dark navy) */
  --bg-alt: #0f172a;        /* alternating section background */
  --surface: #16213a;       /* cards */
  --surface-2: #1c2a4a;     /* card hover */
  --border: rgba(148, 163, 184, 0.15);
  --text: #e6edf7;
  --text-muted: #9fb0c7;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.15);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.15);
  --radius: 14px;
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { color: var(--text-muted); }

a { color: var(--blue); text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.accent { color: var(--orange); }

.grad-text {
  background: linear-gradient(90deg, var(--blue), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.08); }

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
}

/* logo PNG has transparent padding baked in — oversize + negative margins
   so the visible mark fills the nav bar */
.brand-logo {
  height: 120px;
  width: auto;
  display: block;
  margin: -26px 0 -26px -28px;
}

.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-accent { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-banner {
  position: relative;
  line-height: 0;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* fade the bottom of the banner into the page background */
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(11, 18, 32, 0.35) 45%,
    rgba(11, 18, 32, 0.75) 70%,
    var(--bg) 100%
  );
}

/* headline overlaid on the open sky area of the banner */
.banner-text {
  position: absolute;
  z-index: 1;
  left: 46%;
  right: 4%;
  top: 42%;
  transform: translateY(-50%);
  text-align: left;
  line-height: 1.6;
}
.banner-text h1 {
  font-size: clamp(1.3rem, 3.6vw, 3.6rem);
  text-shadow: 0 2px 24px rgba(4, 10, 22, 0.55);
}
.banner-text .hero-sub {
  margin: 0.9rem 0 1.7rem;
  max-width: 34em;
  font-size: clamp(0.8rem, 1.35vw, 1.15rem);
  color: #dbe4f0;
  text-shadow: 0 1px 12px rgba(4, 10, 22, 0.6);
}
.banner-text .hero-cta { justify-content: flex-start; }

@media (max-width: 760px) {
  /* image too small for overlay text on phones — flow it below instead
     (relative, not static, so it keeps its z-index above the fade overlay) */
  .banner-text {
    position: relative;
    inset: auto;
    transform: none;
    padding: 2.2rem 24px 0;
    text-align: center;
  }
  .banner-text h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .banner-text .hero-sub { margin: 1rem auto 1.6rem; font-size: 1rem; }
  .banner-text .hero-cta { justify-content: center; }

  /* keep the image tall enough to read as a hero, cropping toward the building */
  .hero-banner img {
    min-height: 250px;
    object-fit: cover;
    object-position: 32% 50%;
  }
}

.hero-sub {
  max-width: 640px;
  margin: 1.4rem auto 2.2rem;
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }

/* services rises up into the hero's fade so the image melts into the page */
#services {
  position: relative;
  z-index: 1;
  margin-top: -6rem;
  padding-top: 0;
}
@media (max-width: 760px) {
  /* hero text flows below the image on phones — don't pull services over it */
  #services { margin-top: 0; padding-top: 3.5rem; }
}
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card-wide { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
  border-color: rgba(148, 163, 184, 0.3);
}

.card h3 { margin: 1.1rem 0 0.5rem; }
.card p { font-size: 0.95rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.icon-blue { background: var(--blue-soft); color: var(--blue); }
.icon-orange { background: var(--orange-soft); color: var(--orange); }

/* ---------- Platforms strip ---------- */
.platforms {
  margin-top: 3.25rem;
  text-align: center;
}

.platforms-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.platform-pills {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.platform-pill {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.platform-active {
  background: var(--blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #9cc3f9;
}

.platform-soon {
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Software products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--border);
  padding: 1.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.product:hover { transform: translateY(-4px); background: var(--surface-2); }
.product-apex { border-top-color: var(--orange); }
.product-tct { border-top-color: #2dd4bf; }
.product-vertex { border-top-color: var(--blue); }

.product h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  margin: 1rem 0 0.4rem;
}

.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px rgba(59, 130, 246, 0.7); }
.dot-orange { background: var(--orange); box-shadow: 0 0 10px rgba(249, 115, 22, 0.7); }
.dot-teal { background: #2dd4bf; box-shadow: 0 0 10px rgba(45, 212, 191, 0.7); }

.product-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.badge-blue { background: var(--blue-soft); color: #7db6f8; }
.badge-orange { background: var(--orange-soft); color: #fb984c; }
.badge-teal { background: rgba(45, 212, 191, 0.15); color: #5eead4; }

.product-tag {
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.product ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}
.product li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.product li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  opacity: 0.6;
}

.software-cta {
  margin-top: 2.4rem;
  text-align: center;
}

/* ---------- About / Why Us ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-grid p { margin-bottom: 1rem; }

.check-list { display: flex; flex-direction: column; gap: 1.3rem; }

.check-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.check-item strong { display: block; margin-bottom: 2px; }
.check-item p { font-size: 0.92rem; }

.check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

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

.contact-info p { margin-bottom: 0.6rem; }
.contact-info strong { color: var(--text); }
.contact-info .service-area {
  margin-top: 1.2rem;
  font-style: italic;
  color: var(--orange);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-note { font-size: 0.8rem; }

/* honeypot field — invisible to humans, bots fill it and get rejected */
.hidden-field { position: absolute; left: -9999px; }

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

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

.footer p { font-size: 0.88rem; }

/* same oversize trick as the nav logo — the PNG has baked-in padding */
.footer-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: -28px 0 -28px -24px;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* single-column layouts */
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* tighter spacing on small screens */
  .section { padding: 3.75rem 0; }
  .card, .product { padding: 1.4rem; }
  .contact-form { padding: 1.5rem; }

  /* 16px inputs stop iOS from auto-zooming when a field is focused */
  .contact-form input,
  .contact-form textarea { font-size: 16px; }

  .brand-logo { height: 100px; margin: -24px 0 -24px -20px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  /* hamburger menu */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 24px 1.6rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
}
