/* ==========================================================================
   Zyntrix Systems — design system
   Palette, layout primitives and components shared by every page.
   ========================================================================== */

:root {
  /* Neutrals */
  --ink: #101616;
  --muted: #5b6968;
  --paper: #f3f5ee;
  --panel: #ffffff;
  --line: #d7dfdc;
  --charcoal: #101616;

  /* Accents */
  --teal: #00a99d; /* brand mid-teal, spare */
  --teal-ink: #00786f; /* text-safe teal for light backgrounds */
  --cyan: #45f0e1;
  --gold: #d79532;
  --coral: #df5b44;

  /* Effects */
  --shadow: 0 24px 70px rgba(11, 18, 17, 0.16);
  --glow: 0 0 32px rgba(69, 240, 225, 0.24);

  /* Rhythm */
  --gutter: clamp(18px, 5vw, 76px);
  --block: clamp(58px, 8vw, 104px);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  background: var(--cyan);
  color: #071211;
  font-weight: 800;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

main:focus {
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  /* Graph-paper grid over the paper ground — the signature texture. */
  background:
    linear-gradient(rgba(16, 22, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 22, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(243, 245, 238, 0.9);
  border-bottom: 1px solid rgba(16, 22, 22, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(69, 240, 225, 0.22), transparent 48%),
    var(--charcoal);
  border: 1px solid rgba(69, 240, 225, 0.38);
  box-shadow: var(--glow);
  color: #f7fffb;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--teal-ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: 78vh;
  padding: clamp(60px, 8vw, 110px) var(--gutter);
  background:
    linear-gradient(90deg, rgba(8, 14, 14, 0.93) 0%, rgba(8, 14, 14, 0.78) 38%, rgba(8, 14, 14, 0.34) 70%, rgba(8, 14, 14, 0.06) 100%),
    url("assets/hero-workbench.svg") center right / cover no-repeat;
  color: #fffaf0;
}

/* Faint cyan grid, faded out toward the right so it never fights the photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(69, 240, 225, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 240, 225, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

/* Tilted outline plate in the lower right. */
.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -20vh;
  width: 48vw;
  height: 48vw;
  pointer-events: none;
  border: 1px solid rgba(69, 240, 225, 0.3);
  box-shadow: inset 0 0 45px rgba(69, 240, 225, 0.08);
  transform: rotate(22deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.03rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(69, 240, 225, 0.42);
  border-radius: 999px;
  background: rgba(16, 22, 22, 0.44);
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button,
.quote-form button {
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.quote-form button {
  background: var(--cyan);
  color: #071211;
  box-shadow: 0 0 24px rgba(69, 240, 225, 0.28);
}

.button.secondary {
  background: rgba(16, 22, 22, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fffaf0;
}

.button:hover,
.quote-form button:hover {
  filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   Intro strip
   -------------------------------------------------------------------------- */

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.intro-strip div {
  padding: 24px var(--gutter);
  background:
    linear-gradient(135deg, rgba(69, 240, 225, 0.12), transparent 44%),
    #eef3ed;
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip span {
  margin-top: 4px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */

.section,
.split-section,
.contact-section {
  padding: var(--block) var(--gutter);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section-heading > p:not(.eyebrow),
.split-section > div > p,
.contact-section > div > p {
  max-width: 710px;
  color: var(--muted);
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Card grids
   -------------------------------------------------------------------------- */

.service-grid,
.why-grid,
.testimonial-grid,
.policy-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.notice,
.quote-form,
.why-card,
.about-card,
.testimonial,
.policy-card,
.build-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(69, 240, 225, 0.07), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  padding: 24px;
}

/* Cyan-to-gold rule pinned to the bottom of each service card. */
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), transparent);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(69, 240, 225, 0.34);
  border-radius: var(--radius);
  background: #10201f;
  color: var(--cyan);
  font-weight: 900;
}

.service-card h3,
.notice h3,
.why-card h3,
.about-card h3,
.policy-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.service-card p,
.notice p,
.why-card p,
.about-card p,
.testimonial p,
.policy-card p,
footer p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Why us
   -------------------------------------------------------------------------- */

.why-section {
  background:
    linear-gradient(rgba(16, 22, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 22, 0.045) 1px, transparent 1px),
    #f6f7f1;
  background-size: 46px 46px;
}

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

.why-card {
  min-height: 215px;
  padding: 26px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials-section {
  padding-top: clamp(18px, 4vw, 42px);
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  padding: 24px;
}

.testimonial p {
  margin-top: 0;
  font-size: 1.02rem;
}

.testimonial strong {
  color: var(--teal-ink);
}

/* --------------------------------------------------------------------------
   Split section + notice
   -------------------------------------------------------------------------- */

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.notice {
  padding: 28px;
  border-left: 6px solid var(--cyan);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(69, 240, 225, 0.1), transparent 28%),
    #f3f5ee;
}

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

.about-card {
  min-height: 245px;
  padding: 26px;
}

.license-card {
  border-color: rgba(69, 240, 225, 0.46);
  box-shadow: var(--glow);
}

.tier-label {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  margin: 0 0 14px;
  color: var(--teal-ink);
  font-size: 1.35rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Contact + form
   -------------------------------------------------------------------------- */

.contact-section {
  background:
    linear-gradient(rgba(69, 240, 225, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 240, 225, 0.055) 1px, transparent 1px),
    var(--charcoal);
  background-size: 48px 48px;
  color: #fffaf0;
}

.contact-section p {
  color: rgba(255, 250, 240, 0.74);
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-details a,
.contact-details span {
  display: block;
  color: rgba(255, 250, 240, 0.88);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--cyan);
}

.contact-details .contact-note {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.92rem;
}

.quote-form {
  display: grid;
  gap: 15px;
  padding: 24px;
  color: var(--ink);
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid rgba(69, 240, 225, 0.75);
  border-color: transparent;
}

.quote-form textarea {
  resize: vertical;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-section :where(a, button):focus-visible,
.hero :where(a, button):focus-visible {
  outline-color: #fffaf0;
}

.form-status {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status[data-state="ok"] {
  color: var(--teal-ink);
  font-weight: 800;
}

.form-status[data-state="error"] {
  color: #b4341f;
  font-weight: 800;
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--gutter);
  background: #0d1211;
  color: #fffaf0;
}

footer p {
  margin: 0;
}

footer p:first-child {
  color: #fffaf0;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Catalog page
   -------------------------------------------------------------------------- */

.catalog-hero {
  display: grid;
  align-items: end;
  min-height: 54vh;
  padding: clamp(72px, 10vw, 130px) var(--gutter) clamp(48px, 7vw, 86px);
  background:
    linear-gradient(120deg, rgba(8, 14, 14, 0.94), rgba(8, 14, 14, 0.72) 52%, rgba(8, 14, 14, 0.28)),
    url("assets/tier-4-specialized.svg") center right / cover no-repeat;
  color: #fffaf0;
}

.catalog-hero > div {
  max-width: 840px;
}

.catalog-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 1.02;
}

.catalog-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 1.12rem;
}

.catalog-section {
  background: #101616;
}

.catalog-grid {
  display: grid;
  gap: 22px;
}

.build-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  overflow: hidden;
  padding: clamp(16px, 3vw, 30px);
  color: var(--ink);
}

.build-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(16, 22, 22, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.build-card h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.build-card p {
  max-width: 740px;
  color: var(--muted);
}

.build-card .button {
  display: inline-block;
  margin-top: 10px;
}

.build-card.luxury {
  background:
    radial-gradient(circle at 20% 15%, rgba(69, 240, 225, 0.28), transparent 28%),
    linear-gradient(145deg, rgba(215, 149, 50, 0.14), transparent 42%),
    var(--panel);
}

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

.policy-card {
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Legal page
   -------------------------------------------------------------------------- */

.legal-hero {
  padding: clamp(72px, 10vw, 126px) var(--gutter) clamp(42px, 7vw, 76px);
  background:
    linear-gradient(rgba(69, 240, 225, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 240, 225, 0.07) 1px, transparent 1px),
    #101616;
  background-size: 52px 52px;
  color: #fffaf0;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
}

.legal-hero p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.72);
}

.legal-section {
  background: #f3f5ee;
}

.legal-card {
  max-width: 980px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 30px 0 8px;
  font-size: 1.35rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a {
  color: var(--teal-ink);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .intro-strip,
  .service-grid,
  .why-grid,
  .testimonial-grid,
  .policy-grid,
  .about-grid,
  .split-section,
  .contact-section,
  .build-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
    background:
      linear-gradient(90deg, rgba(13, 23, 21, 0.9), rgba(13, 23, 21, 0.7)),
      url("assets/hero-workbench.svg") center / cover no-repeat;
  }

  .catalog-hero {
    min-height: 50vh;
    background:
      linear-gradient(120deg, rgba(8, 14, 14, 0.94), rgba(8, 14, 14, 0.72)),
      url("assets/tier-4-specialized.svg") center / cover no-repeat;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 68vh;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

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