/*
Theme Name: Alvixverse Funnel
Theme URI: https://alvixversemerch.com
Description: Minimal email capture funnel theme for the Alvixverse API domain. Displays a premium landing page with email capture while keeping all API endpoints, webhooks, and WooCommerce functionality untouched.
Author: alvixhq
Author URI: https://alvixversemerch.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alvixverse-funnel
*/

/* ── Design Tokens ── */
:root {
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-card-border: rgba(0, 0, 0, 0.06);
  --bg-input: #f0eff2;
  --fg: #1a1a2e;
  --fg-muted: #6b6b80;
  --fg-dim: #9e9eb0;
  --cyan: #5ce0d2;
  --purple: #b4a0d1;
  --purple-dark: #8b72b0;
  --gradient-cyan: linear-gradient(135deg, #ec4899, #a855f7);
  --gradient-btn: linear-gradient(135deg, #c4b0e0, #e8b4c8);
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;
  --radius: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input,
button {
  font-family: inherit;
}

/* ── Page layout ── */
.funnel-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Ambient background ── */
.funnel-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.funnel-bg-glow::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 30%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(92, 224, 210, 0.06) 0%,
    transparent 70%
  );
  filter: blur(100px);
}

.funnel-bg-glow::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 160, 209, 0.06) 0%,
    transparent 70%
  );
  filter: blur(80px);
}

/* ── Nav bar ── */
.funnel-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--bg-card-border);
}

.funnel-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.funnel-nav .nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.funnel-nav .nav-brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}

.funnel-nav .nav-brand .purple {
  color: var(--purple-dark);
}
.funnel-nav .nav-brand .muted {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--fg-dim);
  margin-left: 0.3rem;
}

.funnel-nav .nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.funnel-nav .nav-link:hover {
  color: var(--purple-dark);
  border-color: rgba(180, 160, 209, 0.3);
  box-shadow: 0 4px 20px rgba(180, 160, 209, 0.15);
}

/* ── Hero section ── */
.funnel-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.funnel-hero-inner {
  max-width: 640px;
  width: 100%;
}

/* Gift icon */
.funnel-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--purple);
}

/* Headline */
.funnel-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s ease both;
}

.funnel-headline .highlight {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub text */
.funnel-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fade-up 0.8s ease 0.15s both;
}

/* ── Email capture form ── */
.funnel-form-wrap {
  animation: fade-up 0.8s ease 0.3s both;
}

.funnel-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
  padding: 0.35rem;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-soft);
}

.funnel-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 0.9rem;
  outline: none;
}

.funnel-form input[type="email"]::placeholder {
  color: var(--fg-dim);
}

.funnel-form button {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.funnel-form button:hover {
  box-shadow: 0 4px 25px rgba(180, 160, 209, 0.35);
  transform: translateY(-1px);
}

.funnel-form button:active {
  transform: translateY(0);
}

.funnel-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* States */
.funnel-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  animation: fade-up 0.4s ease both;
}

.funnel-msg.success {
  color: #22c55e;
}
.funnel-msg.error {
  color: #ef4444;
}

.funnel-privacy {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--fg-dim);
}

/* ── Feature cards ── */
.funnel-features {
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.funnel-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.funnel-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.funnel-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(180, 160, 209, 0.2);
}

.funnel-feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
}

.funnel-feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.funnel-feature-card p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── CTA banner ── */
.funnel-cta {
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.funnel-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.funnel-cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
  background: radial-gradient(
    ellipse,
    rgba(180, 160, 209, 0.08) 0%,
    transparent 70%
  );
  filter: blur(40px);
}

.funnel-cta h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
  position: relative;
}

.funnel-cta p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  position: relative;
}

.funnel-cta .btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
}

.funnel-cta .btn-shop:hover {
  box-shadow: 0 4px 25px rgba(180, 160, 209, 0.3);
  transform: translateY(-1px);
}

/* ── Footer ── */
.funnel-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--bg-card-border);
  position: relative;
  z-index: 1;
}

.funnel-footer p {
  font-size: 0.7rem;
  color: var(--fg-dim);
}

.funnel-footer a {
  color: var(--fg-muted);
  transition: color 0.3s ease;
}

.funnel-footer a:hover {
  color: var(--purple-dark);
}

/* ── Animations ── */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .funnel-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 0.5rem;
  }

  .funnel-form button {
    width: 100%;
  }

  .funnel-nav {
    padding: 0.75rem 1.25rem;
  }

  .funnel-hero {
    padding: 7rem 1.25rem 2rem;
  }
}

/* ── Hide WP admin bar in funnel ── */
#wpadminbar {
  display: none !important;
}
html {
  margin-top: 0 !important;
}
