/* anellipes.ai — landing page
   Dark canvas, cyan brand. Colors live on :root so the theme is one edit. */

:root {
  --bg: #0b0f14;
  --bg-elev: #111821;
  --line: #1c2632;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --cyan: #00e5ff;
  --cyan-dim: #0aa9bd;
  --orange: #e8500e;
  --purple: #8800ff;
  --teal: #1b98b8;

  --mono: "Courier New", Courier, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body.intro-playing { overflow: hidden; }

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

a { color: var(--cyan); text-decoration: none; }

.mono { font-family: var(--mono); }
.dot { color: var(--muted); padding: 0 .25em; }

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: var(--bg);
  cursor: pointer;
  transition: opacity .9s ease;
}

.intro__logo {
  width: auto;
  height: min(44vh, 420px);
  opacity: 0;
  transform: translateY(8px) scale(.98);
  transition: opacity .9s ease, transform .9s ease;
  filter: drop-shadow(0 0 32px rgba(0, 229, 255, .22));
}

.intro--logo .intro__logo { opacity: 1; transform: none; }

.intro__line {
  position: relative;
  margin: 28px 0 0;
  min-height: 1.4em;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 2.25rem);
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s ease;
}

.intro--typing .intro__line { opacity: 1; }

/* The ghost reserves the finished line's width so the typed text is
   anchored left and grows rightward, while the whole line stays centered. */
.intro__ghost { visibility: hidden; }

.intro__typed-wrap {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.intro__cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  margin-left: .1em;
  vertical-align: -0.15em;
  background: var(--cyan);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.intro__skip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity .6s ease 2.5s;
}

.intro--typing .intro__skip { opacity: .7; }

.intro--exit { opacity: 0; pointer-events: none; }
.intro--exit .intro__cursor { animation: none; }

/* ---------- Page reveal ---------- */

.page {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease .15s, transform .9s ease .15s;
}

body.is-ready .page { opacity: 1; transform: none; }

/* ---------- Layout ---------- */

.site-header, main, .site-footer {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
}

.brand__glyph { width: 22px; height: auto; }

.brand__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .02em;
}

.site-header__contact {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--muted);
}

.site-header__contact a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: var(--cyan-dim);
  text-underline-offset: .18em;
}

.site-header__contact a:hover { text-decoration-color: var(--cyan); }

@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; gap: 6px; }
  .site-header__contact { margin-left: 0; flex-basis: 100%; }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
}

.hero__sub {
  margin: 0 0 26px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  color: var(--cyan);
}

.hero__name { margin: 0 0 4px; font-size: 1.05rem; }
.hero__name strong { font-weight: 700; }
.hero__name .greek { font-family: Georgia, "Times New Roman", serif; }
.hero__etym { margin: 0; color: var(--muted); }

.hero__art { display: none; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 3fr 2fr; padding: 56px 0 72px; }
  .hero__art { display: block; justify-self: center; }
  .hero__art img {
    width: min(100%, 260px);
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, .18));
  }
}

/* Sections */

.section-title {
  margin: 0 0 22px;
  padding-top: 18px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--cyan);
}

.why { padding: 48px 0; border-bottom: 1px solid var(--line); }

.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.why__list li {
  position: relative;
  padding: 18px 20px 18px 44px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.why__list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 27px;
  width: 10px;
  height: 10px;
  background: var(--cyan);
}

.why__list strong { color: var(--text); }

@media (min-width: 760px) {
  .why__list { grid-template-columns: 1fr 1fr; }
  .why__list li:last-child { grid-column: 1 / -1; }
}

/* Product family */

.family { padding: 48px 0 24px; }

.family__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) { .family__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .family__grid { grid-template-columns: repeat(4, 1fr); } }

.product {
  padding-top: 18px;
  border-top: 4px solid var(--accent, var(--cyan));
}

.product--code { --accent: var(--cyan); }
.product--infer { --accent: var(--orange); }
.product--chat { --accent: var(--purple); }
.product--librarian { --accent: var(--teal); }

.product__icon {
  width: 84px;
  height: 84px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Librarian has no icon asset yet: the same square, built from the glyph. */
.product__icon--css {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: 7px 8px 9px;
  background: var(--teal);
  color: #fff;
}

.product__icon-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
}

.product__icon--css img {
  height: 42px;
  width: auto;
  margin-top: 4px;
  /* cyan glyph -> white, to match the other icons */
  filter: brightness(0) invert(1);
}

.product__name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}

.product__name span {
  display: block;
  color: var(--accent, var(--cyan));
  font-weight: 700;
}

.product p { margin: 0; color: var(--muted); font-size: .98rem; }

.closing {
  margin: 24px 0 56px;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--text);
}

/* Training */

.training {
  padding: 8px 0 48px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.training__lead {
  max-width: 62rem;
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--muted);
}

.training__lead:last-child { margin-bottom: 0; color: var(--text); }

/* Contact line above the footer, same style as the header line */

.contact-line {
  margin: 0 0 40px;
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
}

.contact-line a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: var(--cyan-dim);
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

.contact-line a:hover { text-decoration-color: var(--cyan); }

/* Footer */

.site-footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.site-footer p { margin: 0 0 8px; }
.site-footer__line { color: var(--text); }
.site-footer a { text-decoration: underline; text-underline-offset: .15em; }
.site-footer__legal { font-size: .78rem; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .intro__logo, .intro__line, .intro__skip, .page { transition: none; }
  .intro__cursor { animation: none; }
}
