/* Nexatech website — shared styles for every page.
   Nexatech pages use the default tokens; the OnlyOneWare page adds
   class="oow" on <body> to switch to the OnlyOneWare brand. */

:root {
  --navy: #263443;
  --navy-dark: #1C2733;
  --navy-line: #34465A;
  --ground: #F5F7F9;
  --surface: #FFFFFF;
  --border: #DCE3EA;
  --text: #1E2A36;
  --text-muted: #4A5A6A;
  --text-on-dark: #C9D4DF;
  --mint: #5FC2A2;
  --sky: #36C2EE;
  --orange: #EB7222;
  --accent: var(--mint);          /* main button color */
  --link: #1F7FA3;
  --font-body: "Inter", system-ui, sans-serif;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --radius: 8px;
  --max: 1200px;
}

body.oow {
  --navy: #1F2933;
  --navy-dark: #1F2933;
  --ground: #F4F6F8;
  --border: #DDE3E9;
  --text: #1F2933;
  --text-muted: #52606D;
  --text-on-dark: #C5CFD8;
  --accent: #F26522;              /* OnlyOneWare orange */
  --link: #B8430D;
  --font-body: "Rubik", system-ui, sans-serif;
  --font-head: "Rubik", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; text-wrap: balance; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: #000; padding: 8px 12px; border-radius: 4px; z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #1A1A1A; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: #fff; border-color: #5C7189; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-dark { background: var(--text); color: #fff; font-size: 15px; padding: 13px 20px; }
.btn-light { background: #fff; color: #1A1A1A; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.logo-badge img { width: 42px; height: 42px; }
.brand-name {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px;
  letter-spacing: .06em; color: #fff;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: #D5DEE7; text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 14px;
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav .btn { margin-left: 8px; font-size: 15px; padding: 12px 20px; }

/* OnlyOneWare page header is light */
body.oow .site-header { background: #fff; border-bottom-color: var(--border); }
body.oow .site-nav a:not(.btn) { color: #3E4C59; }
body.oow .site-nav a:not(.btn):hover { color: var(--text); }
.oow-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.oow-brand strong { font-size: 22px; font-weight: 700; }
.oow-brand span { font-size: 13px; color: #5B6875; border-left: 1px solid var(--border); padding-left: 12px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--navy); color: #fff; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link);
}
.section-dark .eyebrow { color: var(--mint); }
body.oow .section-dark .eyebrow { color: #F7A26A; }
.section-title { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.01em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--text-muted); }
.section-dark .lead { color: var(--text-on-dark); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { max-width: 720px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 112px; padding-bottom: 120px;
}
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; max-width: 600px; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-art { flex: 1 1 280px; display: flex; justify-content: center; }
.hero-logo {
  width: 320px; height: 320px; max-width: 80vw; max-height: 80vw; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.hero-logo img { width: 88%; }
.hero-network {
  position: absolute; right: -60px; top: -40px; width: 640px; height: 440px; opacity: .18; pointer-events: none;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.75; color: #3E4C59; }
.card .tag { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }

/* ---------- OnlyOneWare section (home) ---------- */
.oow-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.oow-head > div { flex: 999 1 520px; min-width: 0; }
.oow-logo { display: flex; align-items: center; gap: 14px; }
.oow-logo span { font-family: "Rubik", var(--font-head); font-weight: 700; font-size: 30px; }
.oow-btn { background: #F26522; color: #1A1A1A; }

.steps {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.steps li {
  background: var(--navy); color: #fff; border-radius: 12px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.steps .num { font-size: 13px; font-weight: 600; color: var(--mint); }
.steps li:nth-child(3) .num, .steps li:nth-child(4) .num { color: var(--sky); }
.steps li:nth-child(5) .num { color: #F7A26A; }
.steps .name { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.steps .desc { font-size: 14px; color: var(--text-on-dark); line-height: 1.5; }

.modules { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.module { border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.module h3 { font-size: 19px; font-weight: 600; }
.module p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.callout {
  background: var(--ground); border-radius: 16px; padding: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.callout > div:first-child { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.callout h3 { font-size: 26px; font-weight: 600; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact .container { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.contact-lines a { color: #fff; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.contact-lines a:hover { text-decoration: underline; }

.contact-form {
  flex: 1 1 420px; background: #fff; color: var(--text); border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px;
  border: 1px solid #B7C3CF; border-radius: var(--radius); color: var(--text);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(31,127,163,.2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: #1E7A57; }
.form-status.error { color: #B42318; }

/* ---------- OnlyOneWare page ---------- */
.placeholder {
  background: #fff; border: 2px dashed #9AA5B1; border-radius: 14px; color: #5B6875;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px;
}
/* Web app screenshots in a simple browser frame */
.browser {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 20, 24, .10);
}
.browser::before {
  content: ""; display: block; height: 28px; background: #EEF1F4; border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle, #F26522 4px, transparent 5px), radial-gradient(circle, #F5C04A 4px, transparent 5px), radial-gradient(circle, #5FC2A2 4px, transparent 5px);
  background-size: 14px 14px; background-repeat: no-repeat;
  background-position: 12px 7px, 30px 7px, 48px 7px;
}
.browser img { width: 100%; height: auto; }
.browser figcaption { padding: 14px 18px; font-size: 15px; color: var(--text-muted); border-top: 1px solid var(--border); }
.shot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }

/* App screenshots shown as phones */
.phone {
  width: 100%; height: auto; border-radius: 28px; border: 8px solid #0F1418;
  background: #0F1418; box-shadow: 0 18px 40px rgba(15, 20, 24, .28);
}
.phone-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: center; max-width: 520px; width: 100%; }
.phone-trio .phone { transform: scale(.88); }
.phone-trio .phone:first-child { margin-right: -18%; }
.phone-trio .phone:last-child { margin-left: -18%; }
.phone-trio .phone-front { position: relative; z-index: 1; transform: none; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 460px; width: 100%; }
.phone-pair .phone:last-child { margin-top: 48px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .grow { flex: 999 1 460px; min-width: 0; }
.split > .side { flex: 1 1 280px; display: flex; justify-content: center; min-width: 0; }
.center { text-align: center; align-items: center; max-width: 900px; margin: 0 auto; }
.cta-band { background: var(--accent); padding: 80px 0; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: 36px; color: #1A1A1A; flex: 999 1 420px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #A9B6C3; padding: 32px 0; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer a { color: #A9B6C3; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-badge { width: 32px; height: 32px; }
.footer-brand .logo-badge img { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 20px; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero .container { padding-top: 72px; padding-bottom: 80px; }
  .site-nav .btn { margin-left: 0; }
  .contact-form, .callout, .card { padding: 24px; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 0; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--text); }
.legal-date { font-size: 15px !important; margin-bottom: 28px; }
