/* Infiniteam company landing page (www root). Own neutral style, separate from the brand sites (_shared). */

:root {
  --ink: #17202b;
  --ink-soft: #4d5866;
  --ink-muted: #7a8492;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #ebe7df;
  --meals: #3ba85c;
  --meals-dark: #256b3a;
  --meals-tint: #e9f6ed;
  --sports: #1e63c8;
  --sports-dark: #154183;
  --sports-tint: #e8f0fb;
  --sun: #ffcf6e;
  --peach: #ffb59a;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(23, 32, 43, 0.04), 0 12px 32px rgba(23, 32, 43, 0.08);
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.wordmark svg { width: 44px; height: 24px; }

/* Small company mark inline after a sentence */
.inline-mark { display: inline-block; width: 2.2em; height: 1.2em; margin-left: 0.35em; vertical-align: -0.3em; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease;
}

.nav a:hover,
.nav a:focus-visible { background: #f0ede6; color: var(--ink); }

.nav .lang {
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  margin-left: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(23, 32, 43, 0.18); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--meals { background: var(--meals); color: #fff; }
.btn--meals:hover { background: var(--meals-dark); }
.btn--sports { background: var(--sports); color: #fff; }
.btn--sports:hover { background: var(--sports-dark); }
.btn--link {
  padding: 13px 4px;
  color: var(--ink);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
}

.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.28em;
  background: linear-gradient(90deg, var(--meals), var(--sports));
  border-radius: 999px;
  opacity: 0.28;
  z-index: -1;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 30px;
}

.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__lead--alt { margin-top: 28px; font-size: 0.95rem; }
.hero__lead--alt a { color: var(--ink); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The loop: one infinity sign, InfinitMeals on the left, InfinitSports on the right */
.loop {
  position: relative;
  aspect-ratio: 1.6;
  width: 100%;
}

.loop__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.loop__blob--meals { width: 46%; aspect-ratio: 1; left: 2%; top: 14%; background: var(--meals-tint); }
.loop__blob--sports { width: 46%; aspect-ratio: 1; right: 2%; top: 10%; background: var(--sports-tint); }
.loop__blob--sun { width: 11%; aspect-ratio: 1; left: 47%; top: 0; background: var(--sun); opacity: 0.85; animation: float 7s ease-in-out infinite; }
.loop__blob--peach { width: 7%; aspect-ratio: 1; left: 44%; bottom: 4%; background: var(--peach); animation: float 6s ease-in-out -2s infinite; }

.loop svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The Infiniteam mark: soft colour first, then a dark ink line drawn over it (pathLength="1" on every path) */
.loop__path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loop__path--meals { stroke: var(--meals); stroke-width: 11; stroke-opacity: 0.75; }
.loop__path--sports { stroke: var(--sports); stroke-width: 11; stroke-opacity: 0.75; animation-delay: 0.35s; }
.loop__path--ink { stroke: var(--ink); stroke-width: 2.5; animation-duration: 1.6s; animation-delay: 0.9s; }

.loop__badge {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  /* Transparent logos straight on the loop's tint, no white disc */
  background: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 250ms ease;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.loop__badge img { width: 80%; }

/* Centred on the optical centre of each loop opening (x ±40.5 in the mark, scaled 2.15 in a 400x250 box) */
.loop__badge--meals { left: 17.2%; top: 32.4%; animation-delay: 1.9s; }
.loop__badge--sports { right: 17.2%; top: 32.4%; animation-delay: 2.1s; }

.loop__badge:hover,
.loop__badge:focus-visible { transform: scale(1.08) rotate(-4deg); }

.loop__note {
  position: absolute;
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}

.loop__note--meals { left: 4%; bottom: -6%; transform: rotate(-6deg); color: var(--meals-dark); }
.loop__note--sports { right: 2%; bottom: -6%; transform: rotate(5deg); color: var(--sports-dark); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section__head { max-width: 40rem; margin-bottom: 36px; }

.label {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.section__head p { color: var(--ink-soft); margin: 0; font-size: 1.1rem; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.app:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.app::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  top: -120px;
  right: -90px;
}

.app--meals::before { background: var(--meals-tint); }
.app--sports::before { background: var(--sports-tint); }

.app__logo { position: relative; width: 230px; margin-bottom: 18px; }

.app__tag {
  position: relative;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.app--meals .app__tag { background: var(--meals-tint); color: var(--meals-dark); }
.app--sports .app__tag { background: var(--sports-tint); color: var(--sports-dark); }

.app__tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.app__tags .app__tag { margin-bottom: 0; }
.app .app__tag--beta { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.app h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.app p { position: relative; color: var(--ink-soft); margin: 0 0 18px; }

.app ul {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.app li { display: flex; gap: 10px; align-items: flex-start; }

.app li::before {
  content: '';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.7 9 10 3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.app--meals li::before { background-color: var(--meals); }
.app--sports li::before { background-color: var(--sports); }

.app .actions { margin-top: auto; }

.one-account {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--meals-tint), #fff 50%, var(--sports-tint));
  border: 1px solid var(--line);
}

.one-account svg { flex: 0 0 auto; width: 64px; height: 34px; }

.one-account p { margin: 0; color: var(--ink-soft); }
.one-account strong { color: var(--ink); }

/* About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.about__photos {
  position: relative;
  aspect-ratio: 1.15;
}

.about__photo {
  position: absolute;
  width: 62%;
  border-radius: 22px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about__photo--a { left: 0; top: 4%; transform: rotate(-5deg); }
.about__photo--b { right: 0; bottom: 0; transform: rotate(4deg); }

.about__sticker {
  position: absolute;
  left: 46%;
  top: 0;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  background: var(--sun);
  padding: 4px 14px;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: var(--shadow);
}

.about__text p { color: var(--ink-soft); font-size: 1.1rem; }

/* Contact band */
.hello {
  background: var(--ink);
  color: #fff;
  border-radius: 36px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.hello::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 120px;
  right: -40px;
  bottom: -50px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120'%3E%3Cpath d='M110 60C90 18 20 18 20 60s70 42 90 0 90-42 90 0-70 42-90 0' fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hello h2 { color: #fff; margin: 0 0 8px; }
.hello p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 34rem; }
.hello .btn--ink { background: #fff; color: var(--ink); }

/* Footer */
.footer {
  padding: 40px 0 48px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__group { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer__group strong { color: var(--ink-soft); font-weight: 600; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Motion ---------- */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loop__path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero__grid, .about { grid-template-columns: 1fr; gap: 40px; }
  .loop { max-width: 520px; margin: 0 auto 24px; }
  .apps { grid-template-columns: 1fr; }
  .about__photos { max-width: 440px; margin: 0 auto; width: 100%; }
  .hello { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .section { padding: 56px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.lang) { display: none; }
  .app { padding: 26px 22px; }
  .app__logo { width: 190px; }
  .one-account { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; }
}
