/* Inter, as used by the Figma design for leads (Body/L/Regular), buttons and UI labels
   (Body/M/SemiBold) and small sublines (Supporting/Subline). Self-hosted variable font, latin subset. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin-var.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;
}

/* Start page, new design (Ergosign, Figma frame "secforge — Startseite").
   Scoped with .hn- so it can live next to the current start page. */

.hn {
  --hn-navy: #0b1633;
  --hn-text: #0b1633;
  --hn-text-2: #34425f;
  --hn-on-dark: #ffffff;
  --hn-on-dark-2: #c9d6e8;
  --hn-on-dark-3: #b8c7dc;
  --hn-cyan: #6fd0f5;
  --hn-tile: #29a8d8;
  --hn-link: #1f6f9f;
  --hn-action: #2479a8;
  --hn-subtle: #f3f6fa;
  --hn-line: #e1e8f2;
  --hn-font-ui: 'Inter', var(--font-family);
  --hn-gutter: max(clamp(20px, 10vw, 140px), calc((100vw - 1120px) / 2));
  font-family: var(--font-family);
  color: var(--hn-text-2);
}

.hn h1, .hn h2, .hn h3, .hn p { margin: 0; }

.hn-eyebrow {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--hn-link);
}

/* Buttons */
.hn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--hn-action);
  border-radius: 22px;
  background: var(--hn-action);
  color: #fff;
  font-family: var(--hn-font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hn-btn:hover { background: #1d6490; border-color: #1d6490; color: #fff; }
.hn-btn--ghost { background: transparent; border-color: var(--hn-cyan); color: var(--hn-cyan); }
.hn-btn--ghost:hover { background: rgba(111, 208, 245, .14); border-color: var(--hn-cyan); color: var(--hn-cyan); }
.hn-btn--dark { background: var(--hn-navy); border-color: var(--hn-navy); }
.hn-btn--dark:hover { background: #1c2c52; border-color: #1c2c52; }

/* Section headline */
.hn-head { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.hn-head h2 { font-size: 36px; line-height: 1.5; font-weight: 600; color: var(--hn-text); }
.hn-head p:last-child { font-family: var(--hn-font-ui); font-size: 18px; line-height: normal; font-weight: 400; color: var(--hn-text-2); }
.hn-head--dark .hn-eyebrow { color: var(--hn-cyan); }
.hn-head--dark h2 { color: var(--hn-on-dark); }
.hn-head--dark p:last-child { color: var(--hn-on-dark-2); }

/* 1. Hero */
.hn-hero {
  display: flex;
  flex-direction: column;
  min-height: 657px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 823px 299px at calc(var(--hn-gutter) + 354px) 418px, rgba(41, 168, 216, .22), rgba(41, 168, 216, 0)),
    var(--hn-navy);
  color: var(--hn-on-dark);
}
.hn-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.hn-hero .hn-wave { top: 52%; }
/* Browser in the Box hero: 620 px high, glow 823x282 at y 394 (Figma 26:3996) */
.hn-hero--bitb { min-height: 620px; background: radial-gradient(ellipse 823.5px 281.8px at calc(var(--hn-gutter) + 354px) 394.55px, rgba(41, 168, 216, .22), rgba(41, 168, 216, 0)), var(--hn-navy); }

.hn-hero-inner {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px var(--hn-gutter);
}
.hn-hero-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hn-hero-text .hn-eyebrow { color: var(--hn-cyan); }
.hn-hero-title { display: flex; flex-direction: column; gap: 12px; }
.hn-hero h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.5; font-weight: 600; color: #fff; }
.hn-hero-lead { font-size: 18px; line-height: 1.55; font-weight: 600; color: var(--hn-on-dark-2); max-width: 30em; }
.hn-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hn-hero-product {
  flex: 0 0 577px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: flex-end;
  padding: 0 17px;
  box-sizing: border-box;
}
.hn-hero-product > img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5);
}
.hn-hero-product figcaption {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  /* centred under the screenshot; a caption wider than the image overhangs both edges evenly */
  justify-content: center;
  font-size: 14px;
  line-height: 24px;
  color: var(--hn-on-dark-2);
}
.hn-hero-product figcaption strong { font-size: 18px; font-weight: 600; color: #fff; }
.hn-hero-product figcaption sup { font-family: var(--hn-font-ui); font-size: 12px; font-weight: 400; color: var(--hn-on-dark-2); }
.hn-hero-product figcaption a { flex: none; color: var(--hn-cyan); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; white-space: nowrap; }
.hn-hero-logo { display: inline-block; width: 26px; height: 26px; margin-right: 7px; vertical-align: -7px; }
.hn-hero-cap { flex: none; white-space: nowrap; }

.hn-proof {
  position: relative;
  border-top: 1px solid rgba(111, 208, 245, .18);
  background: rgba(255, 255, 255, .03);
}
.hn-proof-inner {
  display: flex;
  gap: 24px;
  padding: 16px var(--hn-gutter);
}
.hn-proof-item { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.hn-icon {
  flex: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(111, 208, 245, .35);
  border-radius: 12px;
  background: rgba(41, 168, 216, .14);
}
.hn-icon img { display: block; width: 22px; height: 22px; }
.hn-proof strong { display: block; font-size: 18px; font-weight: 600; color: #fff; }
.hn-proof-item > div span { display: block; font-size: 14px; line-height: 24px; color: var(--hn-on-dark-3); }

/* 2. Services */
.hn-services { background: var(--hn-subtle); padding: 88px var(--hn-gutter); }
.hn-cards { display: flex; gap: 24px; margin-top: 48px; }
.hn-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hn-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 22, 51, .06);
}
.hn-card-img { display: block; width: 100%; height: 224px; object-fit: cover; border-bottom: 4px solid var(--hn-cyan); }
.hn-card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.hn-card h3 { font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--hn-text); }
.hn-card p { flex: 1; font-size: 16px; line-height: 1.55; color: var(--hn-text-2); }



/* 3. Expertise */
.hn-expertise { background: #fff; padding: 68px var(--hn-gutter) 88px; }
.hn-expertise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.hn-expertise-grid > div { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hn-expertise-grid .hn-bar { display: block; width: 56px; height: 4px; background: var(--hn-tile); }
.hn-expertise-grid h3 { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--hn-text); margin-bottom: 8px; }
.hn-expertise-grid p { font-size: 16px; line-height: 1.5; color: var(--hn-text-2); }

/* 4. Why secforge */
.hn-why { position: relative; overflow: hidden; background: var(--hn-navy); padding: 88px var(--hn-gutter); }
.hn-why .hn-wave { top: 294px; left: 50%; width: 142%; transform: translateX(-50%); }
.hn-why .hn-head, .hn-why-grid { position: relative; }
.hn-why-grid { display: flex; gap: 32px; align-items: flex-start; margin-top: 48px; }
.hn-why-grid > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hn-why-icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(92, 200, 240, .35);
  border-radius: 16px;
  background: rgba(41, 168, 216, .12);
}
.hn-why-icon img { display: block; width: 26px; height: 26px; }
.hn-why h3 { font-size: 22px; line-height: 1.5; font-weight: 600; color: #fff; margin-bottom: 8px; }
.hn-why p { font-size: 16px; line-height: 1.5; color: var(--hn-on-dark-2); }

/* 5. About + contact */
.hn-about {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--hn-subtle);
  padding: 88px max(20px, calc(var(--hn-gutter) - 20px));
}
.hn-about-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 40px 0; }
.hn-about-text .hn-eyebrow { margin-bottom: 8px; }
.hn-about-text h2 { font-size: 36px; line-height: 1.5; font-weight: 600; color: var(--hn-text); }
.hn-about-text > p { font-size: 18px; line-height: 1.55; font-weight: 600; color: var(--hn-text-2); }
.hn-also { font-size: 16px; line-height: 26px; color: var(--hn-text-2); }
.hn-also a { color: var(--hn-link); text-decoration: underline; text-underline-offset: 3px; }

.hn-contact {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  overflow: hidden;
  box-sizing: border-box;
  padding: 40px;
  border-radius: 20px;
  background: var(--hn-navy);
  color: #fff;
}
.hn-contact .hn-wave { left: -70px; bottom: 0; top: auto; width: 123%; }
.hn-contact > :not(.hn-wave) { position: relative; }
.hn-contact .hn-eyebrow { color: var(--hn-cyan); margin-bottom: 8px; }
.hn-contact h2 { font-size: 32px; line-height: 1.5; font-weight: 600; color: #fff; }
.hn .hn-contact-lead { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--hn-on-dark-2); max-width: 520px; margin-top: 16px; }
.hn-contact-list a:nth-child(3) .hn-icon { height: 42px; }
.hn-contact-list { display: flex; flex-direction: column; gap: 14px; }
.hn-contact-list a { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #fff; text-decoration: none; }
.hn-contact-list a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hn-contact-list .hn-icon img { width: 18px; height: 18px; }

/* Responsive */
@media (max-width: 1100px) {
  .hn-hero-inner { flex-direction: column; align-items: stretch; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
  .hn-hero-product { flex: none; align-items: flex-start; padding: 0; }
  .hn-hero-product figcaption { flex-wrap: wrap; gap: 4px 12px; }
  .hn-hero-product figcaption { justify-content: flex-start; }
  .hn-hero-cap { flex: 1 1 100%; white-space: normal; }
  .hn-hero-product figcaption a { margin-left: 0; }
  .hn-cards { flex-wrap: wrap; }
  .hn-card { flex: 1 1 280px; }
  .hn-expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hn-why-grid { flex-wrap: wrap; }
  .hn-why-grid > div { flex: 1 1 calc(50% - 16px); }
  .hn-about { flex-direction: column; align-items: stretch; }
  .hn-contact { flex: none; }
  .hn-about-text { padding: 0; }
}

@media (max-width: 640px) {
  .hn-head h2, .hn-about-text h2 { font-size: 28px; }
  .hn-services, .hn-expertise, .hn-why, .hn-about { padding-top: 56px; padding-bottom: 56px; }
  .hn-proof-inner { flex-direction: column; gap: 16px; }
  .hn-expertise-grid { grid-template-columns: 1fr; }
  .hn-why-grid > div { flex: 1 1 100%; }
  .hn-contact { padding: 28px 24px; }
  .hn-contact h2 { font-size: 26px; }
  .hn-contact-list a { font-size: 16px; word-break: break-word; }
}

/* Start page hero: product card instead of the screenshot (the screenshot lives on the Browser in the Box page) */
.hn-prodcard { box-sizing: border-box; width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 20px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.hn-prodcard-head { display: flex; align-items: center; gap: 14px; }
.hn-prodcard-logo { flex: none; width: 48px; height: 48px; }
.hn-prodcard .hn-eyebrow { color: var(--hn-cyan); }
.hn-prodcard strong { font-size: 32px; line-height: 1.3; font-weight: 600; }
.hn-prodcard-text { font-size: 18px; line-height: 1.55; font-weight: 600; color: var(--hn-on-dark-2); }
.hn-prodcard-link { margin-top: 8px; color: var(--hn-cyan); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; font-weight: 600; }
.hn-prodcard .hn-btn { margin-top: 12px; }

/* Two-line headline: each line stays on one line, the size follows the available width */
.hn-hero h1.hn-h1-2l { white-space: nowrap; font-size: clamp(22px, 6.2vw, 44px); }
@media (min-width: 1025px) {
  .hn-hero h1.hn-h1-2l { font-size: clamp(30px, 3.5vw, 48px); }
  .hn-hero-product--wide { flex-basis: 470px; }
}
