/* =========================================================
 *   1. DESIGN TOKENS
 *   ========================================================= */

:root {
  /* Colors */
  --aero-bg-top: #eaffff;
  --aero-bg-bottom: #8fd3ff;

  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-highlight: rgba(255, 255, 255, 0.75);

  --text-primary: #003a5c;
  --text-secondary: #356a87;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-glass:
  0 10px 28px rgba(0,0,0,0.18),
  inset 0 1px 0 rgba(255,255,255,0.6);
}


/* =========================================================
 *   2. GLOBAL RESETS & BASE RULES
 *   ========================================================= */

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

html {
  background:
  radial-gradient(circle at 80% 10%, rgba(255,255,255,0.65), transparent 35%),
  radial-gradient(circle at 20% 20%, rgba(180,230,255,0.45), transparent 40%),
  linear-gradient(180deg, #eaffff 0%, #9fdcff 55%, #6fbfff 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  background-position:
  calc(50% + var(--parallax-x, 0px))
  calc(20% + var(--parallax-y, 0px)),
  calc(50% + var(--parallax-x, 0px))
  calc(50% + var(--parallax-y, 0px)),
  center;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: transparent;
}

/* Ground / grass gradient */
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  pointer-events: none;
  z-index: 0;

  background:
  radial-gradient(
    ellipse at center bottom,
    rgba(120, 190, 120, 0.45),
                  transparent 35%
  ),
  linear-gradient(
    180deg,
    transparent,
    rgba(80, 160, 90, 0.35)
  );
}



/* =========================================================
 *   3. ENVIRONMENT LAYERS (AERO WORLD)
 *   ========================================================= */

.aero-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aero-bubbles::before,
.aero-bubbles::after {
  content: "";
  position: absolute;
  inset: -20%;

  background-image:
  radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 60%),
  radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 55%),
  radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  background-position: 10% 80%, 70% 30%, 40% 60%;

  animation: bubbleFloat 240s linear infinite;

  transform: translate(
    calc(var(--parallax-x, 0px) * 0.4),
                       calc(var(--parallax-y, 0px) * 0.4 + var(--bubble-y, 0px))
  );

  pointer-events: none;
}


@keyframes bubbleFloat {
  from {
    --bubble-y: 0px;
  }
  to {
    --bubble-y: -120px;
  }
}

.aero-sun {
  position: fixed;
  top: -30%;
  right: -30%;
  width: 900px;
  height: 900px;

  pointer-events: none;
  z-index: 0;

  background:
  conic-gradient(
    from 0deg,
    rgba(255,255,255,0.9),
                 rgba(255,255,255,0.15) 10%,
                 transparent 20%,
                 rgba(255,255,255,0.7) 30%,
                 transparent 40%,
                 rgba(255,255,255,0.5) 55%,
                 transparent 70%
  );

  filter: blur(var(--sun-blur, 26px));
  opacity: var(--sun-opacity, 0.35);

  mix-blend-mode: screen;
  transform-origin: center;
}

.aero-sun::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.9),
    transparent 70%
  );
  filter: blur(30px);
}

.aero-leaf-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;      /* put it above the background layers */
  overflow: hidden;
}

.aero-leaf {
  position: absolute;
  top: 55px;      /* starts just above viewport */
  left: 0;

  width: 14px;
  height: 10px;

  /* TEMP: make it obvious */
  opacity: 0.65;

  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(170, 255, 170, 0.95),
                              rgba(60, 170, 90, 0.75)
  );

  border-radius: 70% 30% 70% 30%;
  filter: none;

  will-change: transform;
}

@keyframes leafFall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(0, calc(100vh + 120px), 0) rotate(540deg); }
}

@keyframes leafDrift {
  0%   { margin-left: 0; }
  50%  { margin-left: 50px; }
  100% { margin-left: 0; }
}




/* =========================================================
 *   4. LAYOUT CONTAINERS
 *   ========================================================= */

#app {
max-width: 960px;
margin: 0 auto;
padding: 32px;
position: relative;
z-index: 1;
}

.waitlist-page {
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-width: 820px;
  margin: 0 auto;
}

.waitlist-page .glass-panel {
  animation-duration: 18s;
}


/* =========================================================
 *   5. CORE COMPONENTS
 *   ========================================================= */

/* ---------- Glass Panels ---------- */

.glass-panel {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.32),
    rgba(255,255,255,0.14)
  );

  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.7),
  inset 0 -1px 0 rgba(255,255,255,0.2),
  0 10px 28px rgba(0,0,0,0.18);

  padding: 24px;

  animation: panelFloat 12s ease-in-out infinite;
}

@keyframes panelFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes rippleDrift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-12px, -8px); }
  100% { transform: translate(0, 0); }
}


.glass-panel::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
  radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.25),
                  transparent 60%
  ),
  radial-gradient(
    circle at 70% 60%,
    rgba(255,255,255,0.18),
                  transparent 65%
  );
  opacity: 0.22;
  filter: blur(12px);
  animation: rippleDrift 18s ease-in-out infinite;
  pointer-events: none;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.35) 50%,
                              transparent 60%
  );
  opacity: 0.18;
  pointer-events: none;
}


/* ---------- Buttons ---------- */

.aero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;

  background: linear-gradient(180deg, #f0fbff, #bfe9ff);
  border: 1px solid rgba(255,255,255,0.6);

  color: #004b73;
  font-weight: 600;

  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.9),
  0 6px 14px rgba(0,0,0,0.25);

  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.aero-button:active {
  transform: translateY(1px);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.8),
  0 4px 10px rgba(0,0,0,0.3);
}


/* ---------- Header ---------- */

.glass-header,
#app {
  position: relative;
  z-index: 2;
}


.glass-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.65),
                              rgba(255,255,255,0.45)
  );

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border-bottom: 1px solid rgba(255,255,255,0.55);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.7),
  0 6px 20px rgba(0,0,0,0.15),
  0 0 40px rgba(140,220,255,0.25);
}

.glass-header::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.8);
}

.glass-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.8),
                              transparent
  );
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #ffffff, #8fd3ff);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.9),
  0 2px 6px rgba(0,0,0,0.25);
  text-indent: -9999px;
  overflow: hidden;
}

.brand-name {
  letter-spacing: 0.3px;
}

.header-nav {
  display: flex;
  gap: 12px;
}

.header-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;

  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.45);

  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.header-nav a:hover {
  background: rgba(255,255,255,0.55);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.8),
  0 3px 8px rgba(0,0,0,0.18);
}

.header-nav a.current,
.nav-pill {
  background: linear-gradient(180deg, #f4ffff, #bfe9ff);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.9),
  0 3px 8px rgba(0,0,0,0.18);
}

.header-nav a:active {
  transform: translateY(1px);
}


/* =========================================================
 *   6. PAGE-SPECIFIC STYLES (WAITLIST)
 *   ========================================================= */

.hero-panel {
  text-align: center;
  padding: 36px 28px;
}

.hero-panel h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

.info-panel h2,
.form-panel h2,
.expectations-panel h3 {
  margin-top: 0;
}

.expectations-panel ul {
  padding-left: 18px;
  margin-bottom: 16px;
}

.expectations-panel li {
  margin-bottom: 6px;
}

.fine-print {
  font-size: 0.85rem;
  opacity: 0.8;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 14px;

  box-shadow:
  0 8px 22px rgba(0,0,0,0.18),
  inset 0 1px 0 rgba(255,255,255,0.4);

  background: rgba(255,255,255,0.2);
}



/* =========================================================
 *   7. WORDPRESS / PLUGIN OVERRIDES (CONTACT FORM 7)
 *   ========================================================= */

.wpcf7 form p {
  margin: 0;
}

.wpcf7 br {
  display: none;
}

.wpcf7 .screen-reader-response {
  display: none;
}

.wpcf7 fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wpcf7 label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.wpcf7 input[type="email"],
.wpcf7 input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.45),
                              rgba(255,255,255,0.25)
  );
  backdrop-filter: blur(10px) saturate(140%);
  font-size: 1rem;
  color: var(--text-primary);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.6),
  0 2px 6px rgba(0,0,0,0.15);
}

.wpcf7 input[type="email"],
.wpcf7 input[type="text"]:focus {
  outline: none;
  border-color: rgba(120,200,255,0.8);
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.8),
  0 0 0 2px rgba(140,220,255,0.35);
}

.wpcf7 input[type="submit"] {
  align-self: flex-start;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0fbff, #bfe9ff);
  border: 1px solid rgba(255,255,255,0.6);
  font-weight: 600;
  cursor: pointer;
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.9),
  0 6px 14px rgba(0,0,0,0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(1px);
}

.wpcf7-spinner {
  margin-left: 12px;
  opacity: 0.6;
}

.wpcf7-response-output {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(120,200,255,0.6);
}


/* =========================================================
 *   8. STATES & VISIBILITY
 *   ========================================================= */

body.page-widgetstack-waitlist .glass-header,
body.page-widgetstack-waitlist footer {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .aero-rain,
  .aero-mist,
  .aero-bubbles {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  body::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .aero-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
  }

  .aero-button-label {
    line-height: 1;
  }
}

@media (max-width: 768px) {
  html {
    background-attachment: scroll;
  }
}
