@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0e1a;
  --fg: #f0f4ff;
  --fg-muted: #8b95b0;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #818cf8;
  --content-max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(32, 38, 210, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(32, 38, 210, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

footer { position: relative; z-index: 1; }

.hero {
  flex: 1;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-content: center;
  align-items: center;
  justify-items: center;
  text-align: left;
  min-height: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 40px 24px 24px;
    gap: 48px;
    text-align: left;
    justify-items: stretch;
  }
}

.hero h1 {
  width: 100%;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero h1 .with {
  color: var(--fg-muted);
  font-weight: 500;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #c7d2fe 0%, #818cf8 45%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avatar {
  width: 100%;
  max-width: 100%;
  max-height: 52dvh;
  height: auto;
  object-fit: contain;
  justify-self: stretch;
}

@media (min-width: 900px) {
  .avatar {
    width: auto;
    max-height: 56dvh;
    justify-self: center;
  }
}

.trusted {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 12px 24px 16px;
}

@media (min-width: 900px) {
  .trusted { padding: 16px 24px 20px; }
}

.trusted h2 {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.logo-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 20px;
}

@media (min-width: 720px)  { .logo-grid { gap: 16px 28px; } }
@media (min-width: 1000px) { .logo-grid { gap: 18px 36px; } }

.logo-grid li {
  flex: 0 0 auto;
  width: clamp(80px, 14vw, 140px);
  animation: fadeUp 0.6s ease both;
  animation-delay: calc(0.3s + var(--i, 0) * 0.08s);
}

.logo-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 6px;
  text-decoration: none;
}

@media (min-width: 720px)  { .logo-grid a { height: 64px; } }
@media (min-width: 1000px) { .logo-grid a { height: 72px; } }

.logo-grid img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.logo-grid img {
  filter: brightness(0) invert(1);
}

.logo-grid a:hover img { opacity: 1; }

footer {
  border-top: 1px solid var(--border);
  padding: 12px 24px 14px;
}

.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1    { animation: fadeUp 0.7s ease both; }
.avatar     { animation: fadeUp 0.7s ease 0.12s both; }
.trusted h2 { animation: fadeUp 0.7s ease 0.22s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
