/* 01. Design tokens */
:root {
  --primary: #1ee7d7;
  --primary-dark: #006c66;
  --secondary: #3993ff;
  --accent: #afd0ff;
  --background: #07111f;
  --surface: #101f30;
  --text-primary: #f3f8fc;
  --text-secondary: #bac8d6;
  --border: #2b3d50;
  --paper: #f4f7fa;
  --ink: #112236;
  --ink-muted: #4d6073;
  --container: 1280px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
  --section-space: clamp(4.5rem, 8vw, 8rem);
}

/* 02. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
body { background: var(--background); color: var(--text-primary); font-family: var(--font); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* 03. Base and typography */
::selection { background: #1ee7d7; color: #07111f; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.6vw, 5.4rem); font-weight: 650; letter-spacing: -.048em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.45rem); font-weight: 650; letter-spacing: -.04em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; letter-spacing: -.02em; }
p { text-wrap: pretty; }
em { font-style: normal; color: var(--primary); }
small { font-size: .875rem; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 04. Utilities and shared components */
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--primary); margin-bottom: 1.4rem; }
.section-heading { display: grid; gap: 1.5rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 430px; color: var(--text-secondary); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 54px; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 7px; background: var(--primary); color: #052c31; font-weight: 700; font-size: .9375rem; line-height: 1.5; transition: background .2s, box-shadow .2s, transform .2s; text-align: center; }
.button:hover { background: #68f3e7; box-shadow: 0 8px 28px #1ee7d722; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-small { min-height: 46px; font-size: .875rem; padding: .65rem 1rem; }
.button .icon { width: 19px; height: 19px; flex-basis: 19px; }
.secondary-link, .text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: .65rem; min-height: 44px; font-weight: 650; font-size: .875rem; line-height: 1.45; }
.secondary-link { border: 0; background: none; padding: .4rem 0; color: inherit; }
.secondary-link .icon, .text-link .icon { width: 18px; height: 18px; flex-basis: 18px; transition: transform .2s; }
.secondary-link:hover .icon, .text-link:hover .icon { transform: translateX(4px); }
.secondary-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.actions { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 12px 20px; background: var(--primary); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* 05. Navigation: fully usable without JavaScript */
.site-header { position: sticky; top: 0; z-index: 30; background: #07111ff5; border-bottom: 1px solid #ffffff12; transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 20px #0002; }
.nav-wrap { min-height: 90px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 10px; }
.brand { flex-shrink: 0; }
.brand img { width: clamp(190px, 19vw, 260px); }
.main-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; width: 100%; padding-bottom: .6rem; }
.main-nav > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; color: var(--text-secondary); font-size: .875rem; }
.main-nav > a:not(.button):hover { color: var(--primary); }
.menu-toggle { width: 46px; height: 46px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: white; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .2s; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 06. Hero: typography and a semantic architecture diagram */
.hero { background: radial-gradient(ellipse at 85% 28%, #173b622b, transparent 60%), var(--background); padding-top: clamp(3rem, 6vw, 6rem); }
.hero-layout { display: grid; gap: 3rem; align-items: center; }
.hero-copy, .hero-media, .contact-copy, .form-panel { min-width: 0; }
.hero .eyebrow { letter-spacing: .15em; }
.hero-lead { color: var(--text-secondary); font-size: 1.0625rem; max-width: 560px; margin-top: 1.75rem; line-height: 1.75; }
.hero-lead strong { color: #f1f6fb; font-weight: 500; }
.hero-checks { display: flex; flex-wrap: wrap; padding: 0; gap: .6rem 1.2rem; list-style: none; margin-top: 2.15rem; }
.hero-checks li { display: flex; align-items: center; gap: .4rem; color: #b6c5d4; font-size: .8125rem; }
.hero-checks .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--primary); }
.hero-media { position: relative; min-height: 420px; border: 1px solid #345574; border-radius: 24px 24px 80px 24px; overflow: hidden; background: #0b1728; box-shadow: 0 30px 80px #0005, 0 0 80px #3993ff12; isolation: isolate; }
.hero-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #07111fa8 0%, transparent 55%), linear-gradient(0deg, #07111fd8, transparent 48%); pointer-events: none; }
.hero-media > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 60% center; }
.hero-media-brand { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); top: clamp(1rem, 3vw, 2rem); width: min(64%, 255px); padding: .85rem; border: 1px solid #ffffff2e; border-radius: 10px; background: #07111fbd; backdrop-filter: blur(12px); }
.hero-media-brand img { width: 100%; }
.hero-media-brand span { display: block; color: #b8d9e5; font-size: .7rem; letter-spacing: .09em; margin-top: .35rem; }
.hero-media-tags { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); bottom: 3.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.hero-media-tags span { padding: .45rem .65rem; border: 1px solid #78c7d45e; border-radius: 999px; color: #dffafb; background: #07111fb0; backdrop-filter: blur(8px); font-size: .68rem; letter-spacing: .07em; }
.hero-media figcaption { position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2rem); bottom: 1.25rem; font-size: .75rem; color: #c6d9e6; }
.architecture-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #a9bed2; font-size: .75rem; letter-spacing: .075em; padding-bottom: 1rem; border-bottom: 1px solid #344a5e; }
.architecture-heading .icon { color: #71b1ff; }
.architecture-core { display: grid; justify-items: center; gap: 1rem; margin: 2.5rem auto 0; padding: 1.5rem 1rem; width: min(100%, 290px); border: 1px solid #4d7e92; border-radius: 12px; background: linear-gradient(125deg, #123b44, #11243b); box-shadow: 0 10px 45px #0002; }
.architecture-core img { width: 235px; }
.architecture-core > span { font-size: .75rem; color: #94e4df; letter-spacing: .1em; }
.connector { width: 1px; height: 38px; margin: 0 auto; background: #4b91a6; }
.architecture-nodes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.architecture-nodes::before { position: absolute; content: ''; left: 16%; right: 16%; top: -12px; border-top: 1px solid #4b91a6; }
.architecture-nodes > div { position: relative; display: grid; justify-items: center; gap: .55rem; padding: 1.15rem .25rem; background: #112b41; border: 1px solid #345574; border-radius: 8px; text-align: center; }
.architecture-nodes > div::before { content: ''; position: absolute; top: -13px; left: 50%; height: 12px; border-left: 1px solid #4b91a6; }
.architecture-nodes .icon { color: #7ebdff; }
.architecture-nodes strong { font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.architecture-nodes span { font-size: .75rem; color: var(--text-secondary); }
.architecture-base { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem .6rem; margin-top: 1rem; border-radius: 8px; border: 1px solid #375264; background: #0c2531; font-size: .8125rem; text-align: center; color: #c3e1e6; }
.architecture-base .icon { color: var(--primary); width: 19px; height: 19px; flex-basis: 19px; }
.architecture figcaption { font-size: .75rem; text-align: center; margin-top: 1.5rem; color: #bac8d6; }
.audience { margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.75rem; border-top: 1px solid var(--border); display: grid; gap: 1.5rem; }
.audience p { font-size: .75rem; letter-spacing: .08em; color: #95a9bc; line-height: 1.8; }
.audience strong { font-weight: 500; }
.audience ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; color: #d4dfeb; font-size: .875rem; font-weight: 600; }

/* 07. Services bento */
.solutions { background: var(--paper); color: var(--ink); }
.solutions .eyebrow, .technology .eyebrow { color: var(--primary-dark); }
.solutions .section-heading > p, .technology .section-heading > p { color: var(--ink-muted); }
.bento { display: grid; gap: 1rem; }
.service-card { display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2.35rem); border: 1px solid #ced9e2; background: #fff; border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; min-width: 0; }
.service-card:hover { transform: translateY(-4px); border-color: #7babae; box-shadow: 0 16px 40px #1427380a; }
.card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.7rem; }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; background: #edf6f7; color: #126970; border-radius: 11px; border: 1px solid #d8e8eb; }
.index { font-size: .75rem; color: #54687c; font-variant-numeric: tabular-nums; }
.service-label { color: #006c66; font-size: .875rem; font-weight: 600; margin-bottom: .7rem; }
.service-card h3 { margin-bottom: 1rem; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.service-card > p:not(.service-label) { color: var(--ink-muted); }
.service-card .tags { font-size: .8125rem; margin-block: 1.2rem; }
.service-card .text-link { margin-top: auto; align-self: flex-start; color: #006c66; }
.blue-card { background: #103d72; border-color: #103d72; color: white; }
.blue-card .service-label, .blue-card .text-link { color: #96f4e5; }
.blue-card > p:not(.service-label), .blue-card .index { color: #d3e2f2; }
.blue-card .icon-box { background: #1a4f88; border-color: #4b739e; color: white; }
.consulting { background: #dfefef; }

/* 08. Company and reasons to choose SIT */
.about-layout { display: grid; gap: 3rem; }
.about-visual { display: grid; gap: 2rem; margin-bottom: clamp(4rem, 7vw, 7rem); align-items: center; }
.about-visual figure { position: relative; border-radius: 18px 18px 72px 18px; overflow: hidden; box-shadow: 0 28px 70px #0004; }
.about-visual figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #07111fe8, transparent 50%); pointer-events: none; }
.about-visual figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-visual figcaption { position: absolute; z-index: 1; left: 1.35rem; right: 1.35rem; bottom: 1.15rem; color: #eef8fb; font-size: .8rem; }
.about-visual > div > p:last-child { color: var(--text-secondary); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.55; }
.about-manifesto > p:not(.eyebrow) { margin-top: 1.5rem; color: var(--text-secondary); max-width: 560px; }
.vision { margin-top: 2rem; padding-left: 1.3rem; border-left: 2px solid var(--primary); }
.vision strong { color: white; }
.vision p { color: var(--text-secondary); margin-top: .5rem; }
.benefits { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.5rem); background: var(--surface); }
.benefits > .eyebrow { margin-bottom: .5rem; }
.benefits article { display: flex; gap: 1.2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.benefits article:last-child { border: 0; padding-bottom: 0; }
.benefits article > .icon { margin-top: .15rem; color: var(--primary); }
.benefits h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.benefits p { color: var(--text-secondary); }

/* 09. Technology capabilities and delivery process */
.technology { color: var(--ink); background: var(--paper); }
.stack-grid { display: grid; gap: 1.5rem; }
.stack-grid article { min-width: 0; padding: 1.5rem 0; border-top: 1px solid #bdcdd9; }
.stack-grid .icon { color: #1c6288; margin-bottom: 1.7rem; width: 32px; height: 32px; }
.stack-grid .eyebrow { margin-bottom: .7rem; }
.stack-grid h3 { margin-bottom: .8rem; }
.stack-grid p:last-child { color: var(--ink-muted); }
.stack-note { padding-top: 1.5rem; border-top: 1px solid #bdcdd9; margin-top: 1.5rem; font-size: .875rem; color: var(--ink-muted); }
.method { background: #0e1d2e; }
.steps { padding: 0; list-style: none; display: grid; gap: 1.25rem 2.5rem; }
.steps li { position: relative; padding: 1.5rem 0; border-top: 1px solid #516173; }
.step-number { display: block; font-size: 2.7rem; line-height: 1; font-weight: 300; color: var(--primary); margin-bottom: 1.75rem; }
.steps h3 { margin-bottom: .8rem; }
.steps p { color: var(--text-secondary); }

/* 10. Contact and form states */
.contact { background: radial-gradient(ellipse at 0% 100%, #153d4e, transparent 60%), #07111f; }
.contact-layout { display: grid; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.8vw, 3.7rem); }
.contact-copy > p:not(.eyebrow) { color: var(--text-secondary); margin-top: 1.75rem; max-width: 480px; }
.contact-location { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; color: #c4d9e6; }
.contact-location .icon { color: var(--primary); }
.contact-email { display: inline-block; margin-top: 1rem; color: var(--primary); overflow-wrap: anywhere; }
.next-steps { list-style-position: inside; padding: 1.5rem 0 0; margin-top: 2.5rem; border-top: 1px solid #45606d; color: var(--text-secondary); }
.next-steps li { padding: .4rem 0; font-size: .875rem; }
.next-steps li::marker { color: var(--primary); }
.form-panel { background: #fff; color: var(--ink); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius); }
.form-panel h3 { font-size: 1.5rem; }
.form-intro { font-size: .875rem; color: #526478; margin-block: .7rem 1.5rem; }
form { display: grid; gap: .9rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .request-preview label { font-size: .875rem; font-weight: 600; }
.field label span { color: #a43035; }
.field label small { font-weight: 400; color: #526478; }
input, select, textarea { display: block; width: 100%; min-width: 0; padding: .7rem .8rem; border: 1px solid #8497a8; color: #112236; border-radius: 6px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
input, select { min-height: 48px; }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #647689; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid #006c66; outline-offset: 2px; border-color: #006c66; }
[aria-invalid='true'] { border-color: #af243b; }
.field-error { font-size: .8125rem; color: #9c2336; min-height: 1.3rem; }
.form-note { color: #526478; font-size: .8125rem; }
.form-status { color: #00635e; font-size: .875rem; }
.form-status.error { color: #9c2336; }
.request-preview { padding-top: 1rem; border-top: 1px solid #bdcdd9; }
.request-preview textarea { margin-top: .5rem; font-size: .875rem; }
.request-preview button { color: #00635e; }

/* 11. Footer */
.site-footer { background: #050d17; padding: 4rem 0 1.75rem; border-top: 1px solid #294354; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
.footer-brand img { width: 270px; }
.footer-brand p { margin-top: 1rem; color: var(--text-secondary); }
.footer-grid h3 { font-size: .875rem; margin-bottom: .8rem; color: #f0f7fc; }
.footer-grid a:not(.footer-brand a) { display: block; width: fit-content; padding-block: .45rem; font-size: .875rem; color: #bac8d6; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid > div:not(.footer-brand) > p { font-size: .875rem; color: #bac8d6; margin-top: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8125rem; color: #b0c1d0; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }

/* 12. Motion: content is visible without JavaScript */
@keyframes enter { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.reveal.is-visible { animation: enter .55s ease-out both; }

/* 13. Mobile-first responsive layout */
@media (min-width: 480px) {
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 600px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .bento, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: 1 / -1; }
  form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full { grid-column: 1 / -1; }
  .hero-media { max-width: 680px; width: 100%; justify-self: center; }
}
@media (min-width: 1000px) {
  .nav-wrap { flex-wrap: nowrap; }
  .main-nav { width: auto; flex-wrap: nowrap; padding: 0; gap: 1.35rem; }
  .hero-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 3.3rem; }
  .hero { padding-top: 4.5rem; }
  .hero .hero-media { transform: perspective(1200px) rotateY(-3deg); }
  .section-heading { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 5rem; }
  .section-heading > p { justify-self: end; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wide { grid-column: span 2; }
  .bento .service-card:nth-child(5) { grid-column: 3; grid-row: 2; }
  .consulting { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0 3rem; }
  .consulting .card-top { grid-row: 1 / 5; flex-direction: column; margin: 0; }
  .consulting .service-label, .consulting h3, .consulting > p, .consulting a { grid-column: 2; }
  .about-layout { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .about-visual { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 4.5rem; }
  .stack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5rem; }
  .audience { display: flex; justify-content: space-between; align-items: center; }
  .audience ul { gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 999px) {
  .menu-ready .main-nav { flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem 0 1rem; max-height: calc(100dvh - 110px); overflow-y: auto; }
  .menu-ready .main-nav > a:not(.button) { padding: .65rem; }
  .menu-ready .main-nav .button { margin-top: .4rem; }
}
@media (max-width: 374px) {
  .container { width: calc(100% - 32px); }
  .hero .actions { align-items: stretch; flex-direction: column; gap: .6rem; }
  .hero .secondary-link { justify-content: center; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  .architecture-nodes { gap: .3rem; }
  .architecture-nodes strong { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button { border: 1px solid ButtonText; }
  .architecture, .service-card { border: 1px solid CanvasText; }
}
