/* SurfaceToAi: single-page site. Accent colours come from the logo's three bars. */

:root {
  --bg: #07070b;
  --surface: #0f0f17;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ecedf4;
  --muted: #a4a7ba;
  --blue: #4a63ff;
  --magenta: #e5307f;
  --orange: #f28b2e;
  --gradient: linear-gradient(90deg, var(--blue), var(--magenta) 55%, var(--orange));
  --radius: 18px;
  --header-height: 64px;
  --max-width: 1120px;
  color-scheme: dark;
}

*,
*::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: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header and menu */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 11, 0.82);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

/* On small screens the script collapses the menu behind the toggle.
   Without the script, the links simply wrap under the brand. */
@media (max-width: 760px) {
  .has-js .menu-toggle {
    display: inline-flex;
  }

  .has-js .site-nav {
    display: none;
    width: 100%;
    padding-bottom: 1rem;
  }

  .has-js.menu-open .site-nav {
    display: block;
  }

  .has-js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .has-js .site-nav a {
    padding: 0.65rem 0;
    font-size: 1.05rem;
  }
}

/* Sections */

section[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(74, 99, 255, 0.16), rgba(229, 48, 127, 0.08) 50%, transparent 72%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero picture {
  display: block;
}

.hero-logo {
  width: clamp(180px, 34vw, 280px);
  margin: 0 auto 1.75rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mission {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Key messages: accents follow card position, in the logo's colour order. */

.messages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.message,
.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.message {
  padding: 1.75rem;
}

.message::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.message:nth-child(1) { --accent: var(--blue); --accent-text: #8c9cff; }
.message:nth-child(2) { --accent: var(--magenta); --accent-text: #ff79b2; }
.message:nth-child(3) { --accent: var(--orange); --accent-text: #f7a965; }
.message:nth-child(4) { --accent: var(--gradient); --accent-text: #e6a8ff; }

.eyebrow {
  margin: 0;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.message p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Products: one section each, accents cycling through the logo colours. */

.products {
  display: grid;
  gap: 1.25rem;
}

.product {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem) calc(clamp(1.75rem, 4vw, 2.75rem) + 6px);
}

.product::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.product:nth-child(3n + 1) { --accent: var(--blue); }
.product:nth-child(3n + 2) { --accent: var(--magenta); }
.product:nth-child(3n + 3) { --accent: var(--orange); }

.product h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.product p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
}

main {
  padding-bottom: clamp(2rem, 6vw, 4rem);
}
