/* Alice One — minimal landing page */

:root {
  color-scheme: light;
  --bg: #f8f9ff;
  --bg-deep: #f0f3ff;
  --surface: rgba(255, 255, 255, 0.7);
  --border: rgba(90, 97, 176, 0.13);
  --text: #202446;
  --muted: #7a80a1;
  --accent-a: #6885ff;
  --accent-b: #c56fff;
  --accent-c: #ff83c7;
  --shadow: 0 30px 90px rgba(72, 78, 145, 0.16);
  --portrait-opacity-day: 1;
  --portrait-opacity-night: 0;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #080b1e;
  --bg-deep: #101431;
  --surface: rgba(18, 23, 55, 0.68);
  --border: rgba(154, 167, 255, 0.16);
  --text: #f5f6ff;
  --muted: #a9afd0;
  --accent-a: #6aa8ff;
  --accent-b: #bc79ff;
  --accent-c: #ff6fc7;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
  --portrait-opacity-day: 0;
  --portrait-opacity-night: 1;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%,
      color-mix(in srgb, var(--accent-b) 8%, transparent),
      transparent 36rem),
    radial-gradient(circle at 88% 22%,
      color-mix(in srgb, var(--accent-a) 10%, transparent),
      transparent 38rem),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  transition: background 700ms ease, color 450ms ease;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(112, 104, 214, .16);
}

.theme-toggle {
  position: relative;
  width: 64px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: border-color .25s ease, background .25s ease, transform .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-b) 45%, var(--border));
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 5px 14px rgba(102, 100, 210, .25);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

html[data-theme="night"] .theme-toggle::after {
  transform: translateX(28px);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-52%);
  font-size: 14px;
  line-height: 1;
}

.theme-toggle__sun {
  left: 10px;
  color: white;
}

.theme-toggle__moon {
  right: 10px;
  color: var(--muted);
}

html[data-theme="night"] .theme-toggle__sun {
  color: var(--muted);
}

html[data-theme="night"] .theme-toggle__moon {
  color: white;
}

.hero {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(360px, .66fr) minmax(540px, 1fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  padding: clamp(54px, 7vh, 90px) 0;
}

.hero-copy {
  max-width: 600px;
  align-self: center;
  transform: translateY(-18px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .30em;
}

h1 {
  margin: 0;
  font-size: clamp(6.3rem, 11vw, 10.8rem);
  line-height: .80;
  letter-spacing: -.09em;
  font-weight: 770;
}

.gradient-text {
  background: linear-gradient(
    120deg,
    var(--accent-a) 3%,
    var(--accent-b) 48%,
    var(--accent-c) 96%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.alice-stage {
  position: relative;
  width: 100%;
  max-width: 700px;
  justify-self: end;
  isolation: isolate;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  pointer-events: none;
}

.alice-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: opacity 850ms ease;
}

.alice-portrait--day {
  opacity: var(--portrait-opacity-day);
}

.alice-portrait--night {
  opacity: var(--portrait-opacity-night);
}

.portrait-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(30px);
  transition: background .6s ease;
}

.portrait-glow--one {
  width: 58%;
  aspect-ratio: 1;
  right: -10%;
  top: 7%;
  background: var(--accent-b);
  opacity: .26;
}

.portrait-glow--two {
  width: 48%;
  aspect-ratio: 1;
  left: -9%;
  bottom: 3%;
  background: var(--accent-a);
  opacity: .15;
}

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .1;
}

.ambient--left {
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: 8%;
  background: var(--accent-c);
}

.ambient--right {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 22%;
  background: var(--accent-a);
}

@media (max-width: 1020px) {
  .page-shell {
    width: min(100% - 32px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 100%;
    transform: none;
  }

  h1 {
    font-size: clamp(5.8rem, 18vw, 8.8rem);
  }

  .alice-stage {
    width: min(100%, 640px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 520px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand-avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .hero {
    gap: 34px;
    padding: 42px 0 28px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: .64rem;
  }

  h1 {
    font-size: clamp(4.8rem, 24vw, 6.4rem);
  }

  .portrait-frame {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
