/* ==========================================================================
   Site stylesheet
   To rebrand: edit the variables in :root below.
   ========================================================================== */

:root {
  /* Brand colors */
  /* Taken from the Metai Cloud logo: mint #66F2C7, green #2C7B6E, ink #02262B */
  --brand: #0f7a66;          /* primary teal: buttons, links, accents */
  --brand-dark: #0a5e4f;     /* hover */
  --brand-tint: #e7f6f1;     /* light teal backgrounds */
  --mint: #66f2c7;           /* logo mint: accents on dark backgrounds */
  --navy: #02262b;           /* logo ink: headings, footer, dark bands */

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --border: #e1e6ed;
  --text: #2b3645;
  --text-muted: #5d6878;

  --radius: 6px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(2, 38, 43, .06), 0 8px 24px rgba(2, 38, 43, .07);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo img { height: 36px; width: auto; }
@media (max-width: 480px) { .logo img { height: 27px; } }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 24px 14px;
  color: var(--navy); font-size: .95rem; font-weight: 550;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--brand);
}
.nav-links .btn { margin-left: 14px; padding: 10px 18px; }
.nav-links .btn[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--navy); padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; border: 1px solid transparent; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: #c4ccd8; color: var(--navy) !important; background: #fff; }
.btn-outline:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy) !important; }
.btn-white:hover { background: var(--mint); }
.btn-ghost-white { border-color: rgba(255,255,255,.5); color: #fff !important; }
.btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-border { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.center .eyebrow, .section-head.center .eyebrow { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--text-muted); }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .section-head-row { flex-direction: column; align-items: start; }
}

/* ---------- Home hero ----------
   Full-width photo behind the hero; a white gradient on the left keeps the
   text readable while the copy stays aligned to the page container. */
.hero { position: relative; padding: 120px 0; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /* solid white under the text column, then fade out over ~320px */
  --fade: max(calc(50% + 20px), 620px);
  background: linear-gradient(90deg, #fff 0%, #fff var(--fade), rgba(255,255,255,.6) calc(var(--fade) + 120px), rgba(255,255,255,0) calc(var(--fade) + 320px));
}
.hero .container { position: relative; }
.hero-copy { max-width: 580px; }
.hero-copy .lead { margin-bottom: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text-muted); font-weight: 500; }
.trust-row svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
@media (max-width: 960px) {
  /* On narrow screens the photo becomes a banner above the text */
  .hero { padding: 0 0 56px; }
  .hero-bg { position: relative; height: 260px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%); }
  .hero-copy { padding-top: 32px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.page-hero-copy .lead { max-width: 580px; margin-bottom: 0; }
.page-hero-copy .btn-row { margin-top: 28px; }
.page-hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; }
@media (max-width: 960px) {
  .page-hero { padding: 48px 0; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Partner bar ---------- */
.partner-bar { padding: 40px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.partner-bar .label { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 24px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; list-style: none; margin: 0; padding: 0; }
.partner-row img { width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.partner-row li:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .partner-row { justify-content: center; gap: 24px 36px; } }

/* Per-logo heights so the marks look optically even */
.pl-nvidia { height: 25px; }
.pl-amd { height: 23px; }
.pl-intel { height: 32px; }
.pl-supermicro { height: 52px; }
.pl-dell { height: 50px; }
.pl-hpe { height: 42px; }
.pl-lenovo { height: 22px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .label { color: var(--text-muted); font-size: .93rem; margin-top: 6px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: border-color .15s, box-shadow .15s;
}
.card p { color: var(--text-muted); margin-bottom: 0; }
.card p + ul, .card p + p { margin-top: 12px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: #c4ccd8; box-shadow: var(--shadow); }
a.card:hover h3 { color: var(--brand); }
.card .link-arrow { display: inline-block; margin-top: 16px; color: var(--brand); font-size: .95rem; }

.card-top { border-top: 3px solid var(--brand); }

/* Photo cards */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-card .body { padding: 26px 28px 30px; }

.icon { width: 40px; height: 40px; color: var(--brand); margin-bottom: 16px; }
.icon svg { width: 32px; height: 32px; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.card .check-list li { color: var(--text-muted); font-size: .95rem; }
.check-cols { columns: 2; column-gap: 32px; }
.check-cols li { break-inside: avoid; }
@media (max-width: 640px) { .check-cols { columns: 1; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 22px; left: 22px; right: 10%; height: 2px; background: var(--border); }
.process li { position: relative; counter-increment: step; padding-right: 24px; }
.process li::before {
  content: counter(step); position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  color: var(--brand); font-weight: 700; margin-bottom: 20px;
}
.process h3 { font-size: 1.08rem; margin-bottom: 6px; }
.process p { color: var(--text-muted); font-size: .94rem; margin: 0; }
.section-soft .process li::before { background: var(--bg-soft); }
.process.vertical { grid-template-columns: 1fr; gap: 28px; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { top: 10px; bottom: 10px; left: 22px; right: auto; width: 2px; height: auto; }
  .process li { padding: 0 0 0 68px; }
  .process li::before { position: absolute; left: 0; top: -4px; margin: 0; }
}
.process.vertical::before { top: 10px; bottom: 10px; left: 22px; right: auto; width: 2px; height: auto; }
.process.vertical li { padding: 0 0 0 68px; }
.process.vertical li::before { position: absolute; left: 0; top: -4px; margin: 0; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split.align-start { align-items: start; }
.split-media img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.spec-table { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-top: 24px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: .94rem; }
.spec:last-child { border-bottom: 0; }
.spec span:first-child { color: var(--text-muted); }
.spec span:last-child { text-align: right; font-weight: 600; color: var(--navy); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
  .split-media.tall img { aspect-ratio: 4 / 3; }
}

/* ---------- Industries list ---------- */
.industry-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.industry-list > div { padding: 28px 26px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.industry-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.industry-list p { color: var(--text-muted); font-size: .94rem; margin: 0; }
@media (max-width: 1000px) { .industry-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .industry-list { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.wordmark {
  display: grid; place-items: center; height: 96px; margin-bottom: 22px;
  background: var(--bg-soft); border-radius: var(--radius);
}
.wordmark img { width: auto; max-width: 70%; }

/* ---------- GPU platform cards ---------- */
.platform-logo { height: 26px; width: auto; margin-bottom: 22px; }
.platform-logo.amd { height: 20px; margin: 3px 0 25px; }
.platform-card h3 { margin-bottom: 8px; }
.platform-col .platform-logo { height: 30px; margin-bottom: 8px; }
.platform-col .platform-logo.amd { height: 23px; margin: 4px 0 11px; }
.gen { padding: 22px 0; border-bottom: 1px solid var(--border); }
.gen:last-child { border-bottom: 0; padding-bottom: 0; }
.gen h3 { margin-bottom: 6px; }
.note {
  font-size: .88rem; color: var(--text-muted); border-left: 3px solid var(--brand);
  padding: 10px 16px; background: var(--brand-tint); margin-top: 32px;
}

/* ---------- Tiers ---------- */
.tier { display: flex; flex-direction: column; }
.tier .scale { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.tier.featured { border: 2px solid var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; color: var(--navy); list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); padding-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0;
  background: linear-gradient(90deg, rgba(2, 38, 43, .96) 0%, rgba(2, 38, 43, .86) 55%, rgba(2, 38, 43, .62) 100%),
              url("../images/photos/cluster.jpg") center / cover no-repeat;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 420px; height: 365px; opacity: .14; pointer-events: none;
  background: url("../images/brand/logo-mark.svg") center / contain no-repeat;
}
.cta-band .container { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band::after { width: 260px; height: 226px; right: -60px; opacity: .1; } }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band .lead { color: #c6d8d6; max-width: 600px; margin-bottom: 32px; }
@media (max-width: 640px) { .cta-band { padding: 64px 0; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #c9d1dc; border-radius: var(--radius); padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 122, 102, .18); }
textarea { min-height: 150px; resize: vertical; }
.hidden { display: none; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { margin: 2px 0 0; flex-shrink: 0; width: 24px; height: 24px; }
.contact-list .icon svg { width: 24px; height: 24px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list span { color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #c6d8d6; padding: 64px 0 28px; font-size: .95rem; }
.site-footer::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 360px; height: 313px;
  background: url("../images/brand/logo-mark-white.svg") center / contain no-repeat; opacity: .04; pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer .logo img { height: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #c6d8d6; }
.footer-grid a:hover { color: var(--mint); }
.footer-about { margin-top: 16px; max-width: 320px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #86a3a0; font-size: .85rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.mt-lg { margin-top: 48px; }
.mt-md { margin-top: 28px; }

.page-mark { width: 72px; height: auto; margin-bottom: 24px; }
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
  .stats.stats-3 .stat { padding: 0 12px; border-left: 1px solid var(--border); }
  .stats.stats-3 .stat:first-child { border-left: 0; padding-left: 0; }
  .stats.stats-3 .num { font-size: 1.6rem; }
}
.team-background {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-muted);
}
.team-background p { margin: 0; font-size: .95rem; }
.team-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; list-style: none; margin: 0; padding: 0; }
.team-logos img { width: auto; }
.pl-cisco { height: 40px; }
