/* =========================================================
   Offshore Solutions — marketing site styles
   Brand colors live in :root below — change them in one place.
   ========================================================= */

:root {
  --bg:        #0a0f1c;   /* deep navy */
  --bg-alt:    #0e1525;
  --surface:   #131c30;
  --surface-2: #18233c;
  --line:      #233149;
  --text:      #e8edf6;
  --muted:     #9fb0c9;
  --muted-2:   #7d8eaa;

  --brand:     #38bdf8;   /* sky / ocean accent */
  --brand-2:   #2dd4bf;   /* teal */
  --brand-deep:#0ea5e9;
  --grad: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net against any sideways scroll */
}

/* Let grid/flex children shrink below their content width (prevents overflow) */
.hero__copy, .hero__panel,
.card, .step, .stat, .price, .field { min-width: 0; }
.terminal, .terminal__body, img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted   { color: var(--muted); }
.lg      { font-size: 1.125rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--light { color: #d6f4ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--primary {
  background: var(--grad);
  color: #042a37;
  box-shadow: 0 10px 30px -8px rgba(56,189,248,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(56,189,248,.6); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,28,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-family: var(--font-display); font-size: 1.1rem; }
.brand__mark { color: var(--brand); font-size: 1.25rem; }
.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav .btn--primary { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(800px 520px at 8% 0%, rgba(56,189,248,.18), transparent 55%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lede { color: var(--muted); font-size: 1.18rem; margin-top: 22px; max-width: 560px; }
.lede strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { color: var(--muted-2); font-size: .9rem; margin-top: 20px; }
.hero__audit {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .92rem; color: var(--muted);
  transition: border-color .2s, transform .15s;
}
.hero__audit:hover { border-color: var(--brand); transform: translateY(-2px); }
.hero__audit strong { color: var(--text); }
.hero__audit-tag {
  flex: none;
  background: var(--grad); color: #042a37;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.hero__audit-arrow { color: var(--brand); font-weight: 700; }

/* Terminal mockup */
.hero__panel { perspective: 1400px; }
.terminal {
  background: #0b1322;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform .4s ease;
}
.terminal:hover { transform: rotateY(0) rotateX(0); }
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #0e1729;
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3a55; }
.dot:nth-child(1){ background:#ff5f57; } .dot:nth-child(2){ background:#febc2e; } .dot:nth-child(3){ background:#28c840; }
.terminal__title { margin-left: 10px; color: var(--muted-2); font-size: .8rem; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.terminal__body {
  margin: 0; padding: 20px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.75; color: #cdd8ec;
  white-space: pre-wrap; word-break: break-word;
}
.c-prompt { color: var(--brand-2); font-weight: 700; }
.c-cmd { color: #fff; font-weight: 600; }
.c-dim { color: var(--muted-2); }
.c-ok  { color: #34d399; }
.cursor { color: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: 22px 24px; }
.strip__label { color: var(--muted-2); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.strip__items { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.strip__items li { color: var(--muted); font-weight: 600; font-size: .95rem; }
.strip__items li::before { content: "◆"; color: var(--brand); margin-right: 8px; font-size: .7rem; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 0 48px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: 14px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.card--featured { border-color: var(--brand); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card__badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--grad); color: #042a37;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.card__icon { font-size: 1.9rem; margin-bottom: 12px; }
.card__tag { color: var(--brand-2); font-weight: 600; font-size: .92rem; margin: 4px 0 14px; }
.card p { color: var(--muted); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--text); font-size: .95rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-2); font-weight: 800;
}

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-width: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.usecase:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.usecase__icon {
  font-size: 1.7rem; margin-bottom: 12px;
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.usecase h3 { font-size: 1.05rem; margin-bottom: 8px; }
.usecase p { color: var(--muted); font-size: .92rem; }
.usecases__foot { margin-top: 32px; font-size: .98rem; }
.usecases__foot a { color: var(--brand); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}
.step__num {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad); color: #042a37;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
}
.stat__num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat p { color: var(--muted); font-size: .95rem; }
.disclaimer { color: var(--muted-2); font-size: .85rem; margin-top: 28px; max-width: 760px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ---------- Pricing ---------- */
.founding {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 auto 32px;
  max-width: 820px;
}
.founding__pill {
  flex: none;
  background: var(--grad); color: #042a37;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.founding p { color: var(--muted); font-size: .95rem; }
.founding strong { color: var(--text); }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.price {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.price:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.price--featured { border-color: var(--brand); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.price h3 { margin-bottom: 8px; }
.price__desc { color: var(--muted); font-size: .92rem; min-height: 60px; }
.price__amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.price__from { color: var(--muted-2); font-size: .85rem; font-weight: 600; }
.price__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price__per { color: var(--muted-2); font-size: .95rem; font-weight: 600; }
.price__tier {
  display: inline-block;
  margin: 16px 0 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price .ticks { flex: 1; margin-bottom: 22px; }
.price .ticks li { font-size: .9rem; }
.price .btn { width: 100%; }

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(56,189,248,.22), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0 18px; }
.cta__email { font-size: .95rem; margin-top: 24px; }
.cta__email a { color: var(--brand); font-weight: 600; }

/* Divider */
.cta__divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 560px; margin: 30px auto 24px;
  color: var(--muted-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em;
}
.cta__divider::before, .cta__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Contact form */
.contact {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--text); }
.field em { color: var(--muted-2); font-style: normal; font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.contact .btn { width: 100%; margin-top: 4px; }
.contact__hint { color: var(--muted-2); font-size: .82rem; text-align: center; margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer__brand .brand__mark { font-size: 1.2rem; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand .brand__name { font-family: var(--font-display); font-weight: 800; }
.footer__brand p { margin-top: 6px; max-width: 320px; font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--muted); font-size: .95rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__legal p { color: var(--muted-2); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { order: -1; }
  .terminal { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .founding { flex-direction: column; align-items: flex-start; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .steps, .stats, .pricing, .usecases { grid-template-columns: 1fr; }
  .price__desc { min-height: 0; }
  .contact__row { grid-template-columns: 1fr; gap: 0; }
  .hero__audit { flex-wrap: wrap; }
  .hero { padding: 56px 0 48px; }
  .btn--lg { width: 100%; }
  .hero__cta, .cta__buttons { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
