/* ==========================================================================
   Webstia — Signal
   Themes are driven by CSS variables: :root (dark) and [data-theme="light"].
   ========================================================================== */

/* Self-hosted fonts (SIL OFL 1.1). Latin covers Romanian î/â; latin-ext covers ă/ș/ț. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #0B0F14;
  --panel: #111823;
  --line: #243244;
  --text: #E6EDF3;
  --muted: #9FB0C1;
  --accent: #5CF2A6;
  --on-accent: #06130D;
  --blue: #7CB7FF;

  --font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #F7F9FB;
  --panel: #FFFFFF;
  --line: #D5DEE8;
  --text: #0E1620;
  --muted: #4A5B6D;
  --accent: #0A7D4F;
  --on-accent: #FFFFFF;
  --blue: #1D5FD1;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

button { font: inherit; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip:focus { left: 16px; }

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

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
}
.logo__slash { color: var(--accent); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav__cta {
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
}

/* Language segmented control */
.seg {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seg a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.seg a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Theme toggle */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* Hero ------------------------------------------------------------------- */

.hero { padding-block: 72px 96px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__title {
  max-width: 1100px;
  margin-top: 28px;
  font-size: clamp(42px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

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

.hero__sub {
  max-width: 620px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.btn--ghost { border: 1px solid var(--line); }

.btn--lg {
  height: 58px;
  padding: 0 34px;
  font-size: 18px;
}

/* Sections --------------------------------------------------------------- */

.section { padding-bottom: 96px; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.section__title {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section__lead {
  max-width: 440px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

/* Service cards: equal width and height ---------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}

.card__title {
  margin: 24px 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.card__tags {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
}

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px dashed var(--accent);
  border-radius: 16px;
}

.cta-bar__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-bar__link {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
}

/* Stack chips ------------------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
}

.chips li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Principles ------------------------------------------------------------- */

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 32px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.principle { flex: 1 1 280px; }

.principle__num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.principle__title {
  margin: 12px 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.principle__text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* Process ---------------------------------------------------------------- */

.process__title { margin-bottom: 48px; }

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process__step {
  flex: 1 1 260px;
  padding: 28px 28px 0 0;
}
.process__step:last-child { padding-right: 0; }

.process__name {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Contact ---------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid var(--accent);
  border-radius: 20px;
  background: var(--panel);
}

.contact__body { flex: 1 1 400px; }

.contact__title {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact__text {
  max-width: 460px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 17px;
}

/* Contact form */

.form {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
}

.field input { height: 52px; }

.field textarea {
  min-height: 150px;
  padding-block: 14px;
  resize: vertical;
}

.form__submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.site-footer { border-top: 1px solid var(--line); }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
