/* ==========================================================================
   AutoSEO — Coming Soon
   ========================================================================== */

:root {
  --bg: #06080f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5fb;
  --text-muted: #9aa3b8;
  --text-faint: #6b7280;

  --brand-1: #6366f1;
  --brand-2: #a855f7;
  --brand-3: #ec4899;
  --accent: #22d3ee;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 70%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.bg__orb--1 {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  animation: drift-1 18s ease-in-out infinite;
}

.bg__orb--2 {
  width: 520px;
  height: 520px;
  top: 10%;
  right: -180px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  animation: drift-2 22s ease-in-out infinite;
}

.bg__orb--3 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: 32%;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  opacity: 0.35;
  animation: drift-3 26s ease-in-out infinite;
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -50px) scale(1.08); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

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

.shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand__mark {
  display: inline-flex;
  border-radius: 9px;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__name span {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 64px;
  animation: rise 0.9s var(--ease-out) both;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7cdfa;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  margin-bottom: 28px;
}

.chip__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-1);
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.grad {
  background: linear-gradient(110deg, var(--brand-1) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero__sub {
  max-width: 560px;
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form {
  width: 100%;
  max-width: 520px;
  margin-bottom: 12px;
}

.form__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.form__field:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 24px 48px -24px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.form__field.error {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
  animation: shake 0.4s var(--ease-out);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.form__field input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
}

.form__field input::placeholder {
  color: var(--text-faint);
}

.form__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.7);
}

.form__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px -10px rgba(99, 102, 241, 0.85);
}

.form__button:active {
  transform: translateY(0);
}

.form__button.loading .form__button-arrow {
  display: none;
}

.form__button.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form__hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 12px;
}

.form__hint.error {
  color: #f8719d;
}

/* --------------------------------------------------------------------------
   Success state
   -------------------------------------------------------------------------- */

.success {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  margin-bottom: 12px;
  animation: rise 0.5s var(--ease-out) both;
}

.success__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent);
}

.success__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.success__text strong {
  font-weight: 600;
}

.success__text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin-top: 48px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.feature:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #c7cdfa;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(168, 85, 247, 0.22));
}

.feature__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.35;
}

.feature__text strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.feature__text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 32px;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

.footer__meta {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .form__field {
    flex-direction: column;
    align-items: stretch;
  }

  .form__button {
    justify-content: center;
  }

  .feature {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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