/* SO HOMELY — temporary corporate landing page. No JavaScript, no frameworks. */

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Inter";
  src: url("/assets/inter-greek.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --bg: #090b10;
  --surface: #171b24;
  --fg: #f4f5f7;
  --muted: #aeb5c2;
  --accent: #f66048;
  --line: rgba(244, 245, 247, 0.09);
  --gutter: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: dark;
}

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

* {
  margin: 0;
}

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* One soft accent glow and a faint grid: the only decoration on the page. */
  background:
    radial-gradient(60rem 36rem at 88% -12%, rgba(246, 96, 72, 0.13), transparent 62%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(23, 27, 36, 0.9), transparent 70%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--fg);
}

.brand svg {
  width: 2.25rem;
  height: auto;
  flex: none;
}

.brand span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.lang {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 27, 36, 0.6);
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding-inline: 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--muted);
}

.lang a:hover {
  color: var(--fg);
}

.lang a[aria-current="true"] {
  background: var(--surface);
  color: var(--fg);
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(3.5rem, 10vh, 8rem);
  padding-bottom: clamp(4rem, 12vh, 9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 96, 72, 0.16);
  flex: none;
}

h1 {
  margin-top: 1.75rem;
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6.75rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

html[lang="el"] h1 {
  max-width: 15ch;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.lead {
  margin-top: 1.75rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.5rem;
  max-width: 38rem;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
}

.chapter::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  border-color: rgba(244, 245, 247, 0.25);
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  /* Rule aligned with the content box, not the padded container. */
  background: linear-gradient(var(--line), var(--line)) no-repeat center top /
    calc(100% - 2 * var(--gutter)) 1px;
  color: var(--muted);
  font-size: 0.875rem;
}

.tagline {
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (max-width: 30rem) {
  .brand span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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