/* inotegra.com. Plain CSS, no build step. Design rules: /DESIGN.md in the repository. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-v1.woff2") format("woff2");
}

:root {
  --night: #0b1220;
  --ink: #101828;
  --grey: #566072;
  --mist: #f2f4f8;
  --blue: #2458e6;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1.125rem/1.45 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .7rem 1rem; border-radius: .5rem; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 1rem; }

/* Header sits on top of the hero photo */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.brand { font-weight: 800; font-size: 1.65rem; line-height: 1; letter-spacing: -.035em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); font-weight: 700; font-size: 1rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.nav .pill { padding: .55rem 1.1rem; border: 2px solid #fff; border-radius: 999px; }
.nav .pill:hover { background: #fff; color: var(--night); text-decoration: none; }

/* Hero. Two dark layers keep white text readable over any part of the photo:
   one across the top for the menu, one from the left for the headline. */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(44rem, 90vh); padding-block: 9rem clamp(3rem, 7vw, 5.5rem); background: var(--night); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 32, .82) 0, rgba(11, 18, 32, .82) 4.5rem, rgba(11, 18, 32, 0) 10rem), linear-gradient(90deg, rgba(11, 18, 32, .94) 0%, rgba(11, 18, 32, .8) 42%, rgba(11, 18, 32, .28) 100%); }
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1; }
.hero h1 span { display: block; }
.hero p { margin: 0 0 2.25rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; }
.btn { display: inline-block; padding: 1rem 1.6rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: #fff; color: var(--night); }

/* Solutions */
.solutions { padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.tiles img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.1rem; margin-bottom: 1.1rem; background: var(--mist); }
.tiles h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.tiles p { margin: .25rem 0 0; color: var(--grey); }

/* Three steps, three words */
.steps { background: var(--night); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; list-style: none; margin: 0; padding: 0; font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.steps li { padding-top: 1.1rem; border-top: 3px solid var(--blue); }

/* Contact */
.contact { background: var(--mist); padding-block: clamp(3.5rem, 8vw, 6.5rem); scroll-margin-top: 1rem; }
.contact h2 { margin-bottom: 1.5rem; }
.mail { font-weight: 800; font-size: clamp(1.5rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .16em; overflow-wrap: anywhere; }
.mail:hover { color: var(--ink); }

/* Footer */
.foot { background: var(--night); color: #b9c2d3; padding-block: 1.75rem; font-size: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }

/* Page not found */
.lost { display: grid; align-content: center; min-height: 70vh; padding-block: 8rem 4rem; background: var(--night); color: #fff; }
.lost h1 { margin-bottom: 1rem; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; }
.lost p { margin: 0 0 2rem; font-size: 1.3rem; }

@media (max-width: 760px) {
  .tiles, .steps ol { grid-template-columns: 1fr; }
  .hero::after { background: rgba(11, 18, 32, .72); }
  .hero { min-height: 34rem; padding-top: 7rem; }
}
@media (max-width: 380px) {
  .top-row { flex-wrap: wrap; }
  .brand { font-size: 1.45rem; }
  .nav { gap: .7rem; font-size: .9375rem; }
  .nav .pill { padding: .45rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
