/* iManifest — design tokens from app screenshots */
:root {
  --bg: #0b0e14;
  --surface: #161b26;
  --accent: #00f5d4;
  --text: #ffffff;
  --muted: #8a94a6;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --font: "Outfit", sans-serif;
  --glow: 0 0 12px rgba(0, 245, 212, 0.55), 0 0 28px rgba(0, 245, 212, 0.35),
    0 0 48px rgba(0, 245, 212, 0.18);
  --shadow-fab: 0 0 0 4px rgba(0, 245, 212, 0.12),
    0 8px 28px rgba(0, 245, 212, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 70% 50% at 70% 20%,
      rgba(0, 245, 212, 0.07),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 15% 80%,
      rgba(0, 245, 212, 0.04),
      transparent 50%
    ),
    var(--bg);
}

.site-header,
.hero,
.features,
.site-footer {
  position: relative;
  z-index: 1;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  text-shadow: var(--glow);
  letter-spacing: -0.02em;
}

/* —— Buttons —— */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.65rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  color: #0b0e14;
  box-shadow: var(--shadow-fab);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 0 5px rgba(0, 245, 212, 0.16),
    0 10px 32px rgba(0, 245, 212, 0.45);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 245, 212, 0.28);
}

.btn-block {
  width: 100%;
}

/* —— Brand glow (splash reference) —— */
.brand-mark {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: var(--glow);
  line-height: 1.05;
  animation: brandPulse 4.5s ease-in-out infinite;
}

.brand-mark--sm {
  font-size: 1.35rem;
  animation: none;
}

@keyframes brandPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.5),
      0 0 24px rgba(0, 245, 212, 0.3), 0 0 40px rgba(0, 245, 212, 0.15);
  }
  50% {
    text-shadow: 0 0 14px rgba(0, 245, 212, 0.7),
      0 0 36px rgba(0, 245, 212, 0.45), 0 0 60px rgba(0, 245, 212, 0.22);
  }
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  min-height: calc(100svh - 4.5rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
}

.hero__copy {
  max-width: 34rem;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title {
  margin: 1.15rem 0 0.85rem;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.hero__sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero__cta {
  margin-top: 1.75rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: riseIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 245, 212, 0.22),
    transparent 68%
  );
  filter: blur(28px);
  animation: glowBreathe 5s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.phone {
  margin: 0;
  position: relative;
  width: min(280px, 72vw);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(138, 148, 166, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.phone img {
  width: 100%;
  height: auto;
}

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
  }

  .hero__visual {
    justify-content: flex-end;
  }

  .phone {
    width: min(320px, 100%);
  }
}

/* —— Features —— */
.features {
  padding: 1rem 1.5rem 5rem;
}

.features__inner {
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0.4rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature-card:nth-child(1) {
  animation-delay: 0.05s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.15s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.25s;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0e14;
  display: grid;
  place-items: center;
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__text {
  flex: 1;
  min-width: 0;
}

.feature-card__text h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card__text p {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.feature-card__chevron {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.7;
}

.feature-card__chevron svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* —— Footer —— */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(138, 148, 166, 0.1);
}

.footer-tagline {
  margin: 0.65rem 0 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.4),
    0 0 22px rgba(0, 245, 212, 0.2);
}

/* —— Signup modal —— */
.modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.25rem;
}

.modal.hidden {
  display: none;
}

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 14, 20, 0.55);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(11, 14, 20, 0.9);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__panel h2 {
  margin: 0 2rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal__sub {
  margin: 0.35rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(138, 148, 166, 0.22);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(138, 148, 166, 0.55);
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.18);
}

.form-error {
  margin: 0;
  font-size: 0.875rem;
  color: #ff7b8a;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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