/* Sigmoid Technologies - static site styles (layout follows the original Wix site) */

:root {
  --bg: #141416;
  --bg-alt: #1b1c1e;
  --card: #1e1f23;
  --line: #45484e;
  --text: #ffffff;
  --muted: #a8a8a8;
  --dim: #8a8a8a;
  --accent: #fd6262;
  --blue: #889ce7;
  --header-h: 100px;
  --maxw: 1308px;
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  margin: 0 0 .5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--muted); }

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

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

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

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 27px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #141416;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: wait; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--bg);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-left: 96px; padding-right: 70px; }
.logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a:not(.btn-demo) { font-size: .95rem; text-decoration: none; color: #fff; transition: color .2s; }
.nav a:not(.btn-demo):hover, .nav a[aria-current="page"] { color: var(--accent); }
.btn-demo {
  display: inline-block; font-size: .9rem; color: #fff; text-decoration: none;
  border: 1px solid #fff; border-radius: 4px; padding: 10px 4px;
  transition: background .2s, color .2s;
}
.btn-demo:hover { background: #fff; color: var(--bg); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: #fff;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1000px) {
  .site-header .container { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .logo img { height: 48px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 24px;
    padding: 28px 24px 36px;
    background: rgba(20, 20, 22, .98);
    transform: translateY(-120%); transition: transform .35s;
    z-index: -1;
  }
  .nav ul { flex-direction: column; gap: 18px; }
  .nav a:not(.btn-demo) { font-size: 1.15rem; }
  .btn-demo { padding: 10px 16px; }
  .nav-open .nav { transform: none; }
}

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

.site-footer { padding: 60px 0 70px; text-align: center; }
.site-footer img { height: 54px; width: auto; margin: 0 auto 14px; }
.site-footer p { font-size: .9rem; margin: 0; }

/* ---------- Bordered boxes (shared) ---------- */

.box { border: 1px solid var(--line); }
.box + .box { border-top: 0; }
.cell-center { display: grid; place-items: center; text-align: center; padding: 40px; }
.cell-text { align-self: center; }
.cell-text p { font-size: 1rem; }

/* ---------- Home ---------- */

.hero {
  position: relative;
  min-height: 680px;
  display: flex; align-items: center;
  overflow: hidden;
  background: #0b1a33 url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 60%); }
.hero .container { position: relative; z-index: 1; padding-bottom: 60px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.15rem); text-transform: uppercase; line-height: 1.17; max-width: 820px; margin-bottom: .9em; }
.hero .tagline { font-size: clamp(1.1rem, 2.2vw, 1.9rem); text-transform: uppercase; color: #fff; max-width: 620px; line-height: 1.3; margin-bottom: 1.8em; }

.insights { display: grid; grid-template-columns: 40% 60%; }
.insights-left {
  border-right: 1px solid var(--line);
  padding: 300px 40px 40px 86px;
  background: url("../img/insights-bg.jpg") 70% 60% / cover no-repeat;
}
.insights-left h2 { font-family: var(--font-body); font-size: clamp(1.5rem, 2.3vw, 1.95rem); line-height: 1.45; }
.insights-cards { display: flex; gap: 16px; padding: 0 0 115px 104px; }
.insights-cards .col { display: flex; flex-direction: column; gap: 116px; width: 240px; }
.insights-cards .col:first-child { margin-top: -70px; }
.insights-cards .col:last-child { margin-top: 215px; gap: 58px; }
.card {
  position: relative; z-index: 2;
  background: var(--card); border-radius: 6px;
  padding: 28px 28px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s;
}
.card:hover { transform: translateY(-4px); }
.card svg { width: 50px; height: 50px; color: var(--accent); margin-bottom: 50px; }
.card h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.45; color: var(--blue); margin-bottom: .8em; }
.card p { font-size: .9rem; line-height: 1.6; margin: 0; }
.card a { font-size: .9rem; color: var(--accent); }
.card::after { content: ""; display: block; height: 3px; border-radius: 2px; background: var(--line); margin-top: 30px; }

.agile { display: grid; grid-template-columns: 50% 50%; min-height: 520px; }
.agile-media { background: url("../img/agile.jpg") center 35% / cover no-repeat; border-right: 1px solid var(--line); }
.agile-media h2 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); text-transform: uppercase; margin: 0; line-height: 1.5; }
.agile-text { padding: 60px 140px; }
.agile-text p { line-height: 1.4; }
.agile-text p + p { margin-top: 1.4em; }
.agile-text .btn { margin-top: 12px; }

.latency { text-align: center; padding: 85px 0 0; }
.latency h2 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); margin: 0; padding: 0 24px; }
.latency-band { height: 250px; background: url("../img/latency-bg.jpg") center 78% / cover no-repeat; margin-top: 16px; }

.ready { display: grid; grid-template-columns: 60% 40%; min-height: 750px; }
.ready-media { position: relative; overflow: hidden; background: url("../img/dots-bg.jpg") center / cover no-repeat; border-right: 1px solid var(--line); }
.ready-media .globe { position: absolute; width: 88%; max-width: 640px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ready-media h2 { position: relative; font-size: clamp(1.5rem, 2.3vw, 1.95rem); margin: 0; max-width: 440px; }
.ready-text { padding: 40px 110px; }
.ready-text p { line-height: 1.8; }
.ready-text .btn { margin-top: 12px; }

@media (max-width: 1100px) {
  .insights-left { padding: 120px 30px 40px 40px; }
  .insights-cards { padding-left: 40px; }
  .agile-text, .ready-text { padding: 50px 50px; }
}
@media (max-width: 860px) {
  .hero { min-height: 560px; }
  .insights, .agile, .ready { grid-template-columns: 1fr; }
  .insights-left, .agile-media, .ready-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .insights-left { padding: 70px 24px; }
  .insights-cards { flex-direction: column; padding: 40px 24px; gap: 24px; }
  .insights-cards .col, .insights-cards .col:first-child, .insights-cards .col:last-child { width: auto; margin-top: 0; gap: 24px; }
  .card svg { margin-bottom: 24px; }
  .agile-media { min-height: 360px; }
  .ready-media { min-height: 420px; }
  .agile-text, .ready-text { padding: 40px 24px; }
}

/* ---------- Inner page header (Contact, Careers, Apply) ---------- */

.page-hero {
  padding: 60px 0 40px;
  background: var(--bg) url("../img/page-header.jpg") right center / cover no-repeat;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: .3em; }
.page-hero p { color: #fff; font-size: 1.2rem; max-width: 480px; line-height: 1.6; margin: 0; }
.page-hero-tall { padding: 110px 0 70px; }

/* ---------- Solutions ---------- */

.sol-hero {
  position: relative;
  padding: 70px 0 24px;
  background: var(--bg) url("../img/page-header.jpg") right center / cover no-repeat;
}
.sol-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, .85) 30%, rgba(20, 20, 22, .2)), linear-gradient(180deg, transparent 70%, var(--bg));
}
.sol-hero .container { position: relative; }
.sol-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 800px; margin-bottom: .9em; }
.sol-hero h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .4em; }
.sol-why { max-width: 800px; margin-bottom: 50px; }
.sol-why p { font-size: 1.1rem; }
.sol-services-title { margin: 0; }

.sol-body { padding: 0; }
.sol-table { border: 1px solid var(--line); }
.sol-row { display: grid; grid-template-columns: 20% 1fr; border-bottom: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.sol-icon-cell { display: grid; place-items: center; padding: 50px 20px; border-right: 1px solid var(--line); }
.sol-text { padding: 56px 8% 50px 60px; max-width: 900px; }
.sol-text h3 { font-weight: 600; font-size: 1.15rem; margin-bottom: .8em; }
.sol-text p { font-size: 1rem; line-height: 1.75; margin: 0; }

.tile {
  width: 96px; height: 96px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #141416; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .3s;
}
.tile svg { width: 46px; height: 46px; }
.tile::after { content: ""; width: 50px; height: 3px; border-radius: 2px; background: currentColor; }
.tile-blue { background: var(--blue); }
.tile-red { background: var(--accent); }
.sol-row:hover .tile { transform: translateY(-4px); }

.sol-cta { display: grid; grid-template-columns: 40% 1fr; min-height: 470px; }
.sol-cta-media {
  display: grid; place-items: center; padding: 40px; text-align: center;
  background: url("../img/visual-models.jpg") center / cover no-repeat;
  border-right: 1px solid var(--line);
}
.sol-cta-media h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 340px; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.sol-cta-text { align-self: center; padding: 40px 12% 40px 140px; }
.sol-cta-text p { font-size: 1rem; line-height: 1.75; }

@media (max-width: 800px) {
  .sol-row { grid-template-columns: 1fr; }
  .sol-icon-cell { border-right: 0; padding: 40px 24px 0; justify-items: start; }
  .sol-text { padding: 24px 24px 40px; }
  .sol-cta { grid-template-columns: 1fr; }
  .sol-cta-media { min-height: 300px; border-right: 0; }
  .sol-cta-text { padding: 40px 24px; }
}

/* ---------- Forms ---------- */

.form-intro { text-align: center; color: #fff; font-size: 1.2rem; margin: 20px 0 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 42px; max-width: 780px; margin: 0 auto; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #6b6e74; border-radius: 3px;
  color: #fff;
  font: inherit; font-size: .9rem;
  padding: 13px 12px;
  transition: border-color .2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder { color: #6b6e74; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-submit { grid-column: 1 / -1; text-align: center; margin-top: 4px; }
.form-submit .btn { width: 66%; padding: 12px; font-size: .9rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-size: .95rem; text-align: center; }
.form-status.ok { color: #7fd99a; }
.form-status.err { color: var(--accent); }

.contact-form-section { padding: 0 0 110px; }

.apply-head { text-align: center; padding: 50px 0 20px; }
.apply-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .3em; }
.apply-head p { font-size: .9rem; }
.apply-panel { background: var(--bg-alt); padding: 14px 0 120px; min-height: 640px; max-width: 1320px; margin: 0 auto; }
.form-compact { max-width: 520px; gap: 14px 20px; }
.form-compact .field input { padding: 8px 10px; }
.form-compact .form-submit { text-align: left; }
.form-compact .form-submit .btn { width: calc(50% - 10px); }

/* ---------- Careers ---------- */

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 34px; padding: 0 0 30px; }
@media (max-width: 900px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .job-grid { grid-template-columns: 1fr; } }
.job-card {
  display: block; min-height: 345px; padding: 24px 24px;
  border: 1px solid var(--line); text-decoration: none;
  transition: border-color .2s, background .2s;
}
.job-card:hover { border-color: var(--accent); background: rgba(255, 255, 255, .02); }
.job-card h2 { font-size: 1.3rem; line-height: 1.4; margin-bottom: .6em; }
.job-card:hover h2 { color: var(--accent); }
.job-card p {
  font-size: .95rem; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.job-grid-small .job-card { min-height: 260px; }
.job-grid-small .job-card h2 { font-size: 1.15rem; }
.job-grid-small .job-card p { -webkit-line-clamp: 4; font-size: .9rem; }

/* Job post page */
.post-wrap { max-width: 940px; margin: 0 auto; }
.post { border: 1px solid var(--line); background: var(--bg); padding: 60px 96px 50px; margin-top: 50px; }
.post .date { font-size: .8rem; color: var(--muted); margin-bottom: 1em; }
.post h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .5em; }
.post p, .post li { font-size: .95rem; color: var(--muted); }
.post h2 {
  font-family: var(--font-body); font-size: .95rem; color: var(--accent);
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 2.2em 0 1.2em;
}
.post ul { padding-left: 32px; margin: 0; }
.post li { margin-bottom: 4px; line-height: 1.45; }
.post .apply-link { font-size: .95rem; color: #3ac0e8; }
.post .apply-link:hover { color: #fff; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin: 34px 0 20px; }
.recent-head h2 { font-family: var(--font-body); font-size: 1rem; color: var(--muted); margin: 0; }
.recent-head a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.recent-head a:hover { color: var(--accent); }
@media (max-width: 700px) {
  .post { padding: 40px 24px; }
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem); font-weight: 600; color: var(--accent); line-height: 1; margin: 0; }
