/* ===========================
   Unicorn Panel — Global Styles
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:       #f8f7ff;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: rgba(124,58,237,0.04);
  --border:        #e5e2f2;
  --border-accent: rgba(124,58,237,0.28);

  --purple-light:  #7c3aed;
  --purple:        #6d28d9;
  --purple-mid:    #5b21b6;
  --purple-dark:   #4c1d95;
  --pink:          #db2777;
  --cyan:          #0891b2;
  --green:         #16a34a;
  --yellow:        #d97706;
  --red:           #dc2626;

  --text-primary:   #1a1730;
  --text-secondary: #5a5478;
  --text-muted:     #9590b0;

  --gradient-hero:  linear-gradient(135deg, #7c3aed 0%, #9333ea 40%, #db2777 100%);
  --gradient-card:  linear-gradient(135deg, rgba(124,58,237,0.07) 0%, rgba(147,51,234,0.03) 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, transparent 60%);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card:   0 2px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-glow:   0 0 48px rgba(124,58,237,0.12);

  --nav-height: 68px;

  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
p  { color: var(--text-secondary); }
a  { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-mid); }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(248,247,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--purple-light);
  background: rgba(124,58,237,0.09);
  border: 1px solid rgba(124,58,237,0.22);
  padding: 3px 8px;
  border-radius: 20px;
}

/* --- Hero Background Orbs --- */
.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
  will-change: filter;
}
@media (max-width: 768px) {
  .orb { filter: none; opacity: 0.07; }
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px; left: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 100px; right: -150px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  bottom: -100px; left: 40%;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  max-width: 340px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Feature Icon --- */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-purple { background: rgba(124,58,237,0.10); color: var(--purple-light); }
.icon-pink    { background: rgba(219,39,119,0.10); color: var(--pink); }
.icon-cyan    { background: rgba(8,145,178,0.12);  color: var(--cyan); }
.icon-green   { background: rgba(22,163,74,0.10);  color: var(--green); }
.icon-yellow  { background: rgba(217,119,6,0.10);  color: var(--yellow); }
.icon-red     { background: rgba(220,38,38,0.10);  color: var(--red); }

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-planned      { color: var(--purple-light); background: rgba(124,58,237,0.10); }
.status-in-progress  { color: var(--yellow);       background: rgba(217,119,6,0.10); }
.status-under-discussion { color: var(--cyan);     background: rgba(8,145,178,0.10); }
.status-completed    { color: var(--green);        background: rgba(22,163,74,0.10); }
@keyframes badge-pill-pulse {
  0%   { box-shadow: 0 0 0 0px rgba(22,163,74,0.4); }
  100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); }
}
.badge-pulse { animation: badge-pill-pulse 2s infinite; }
.status-coming-soon  { color: var(--pink);         background: rgba(219,39,119,0.10); }

/* --- Footer --- */
footer {
  background: #f0eeff;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-bottom-right a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-right a:hover { color: var(--text-secondary); }

/* --- Newsletter Strip --- */
.newsletter-strip {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}
.newsletter-strip h2 { margin-bottom: 10px; }
.newsletter-strip p  { margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .nav-right { display: none; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Scroll animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================
   LOGO TICKER
   ================================ */
.logo-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.logo-ticker-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ticker 32s linear infinite;
  will-change: transform;
}
.logo-ticker:hover .logo-ticker-inner { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: border-color var(--transition);
}
.logo-img { width: 18px; height: 18px; object-fit: contain; display: block; flex-shrink: 0; }

/* ================================
   ALL-FEATURES GRID
   ================================ */
.af-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 900px) { .af-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .af-grid { grid-template-columns: 1fr; } }
.af-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  transition: border-color var(--transition);
}
.af-card:hover { border-color: var(--border-accent); }
.af-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.af-card-head h3 { font-size: 0.95rem; font-weight: 700; }
.af-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.af-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.825rem; color: var(--text-secondary); line-height: 1.5; }
.af-list li::before { content: '✓'; color: var(--purple-light); font-weight: 700; font-size: 0.7rem; margin-top: 2px; flex-shrink: 0; }

/* ================================
   THEME TOGGLE BUTTON
   ================================ */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-surface); color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--border-accent); color: var(--purple-light); }
.theme-toggle svg { width: 15px; height: 15px; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }

/* ================================
   DARK MODE
   ================================ */
[data-theme="dark"] {
  --bg-base:       #0e0c1a;
  --bg-surface:    #15132b;
  --bg-card:       #1c1930;
  --bg-card-hover: rgba(139,92,246,0.1);
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(139,92,246,0.38);
  --text-primary:  #eae7f8;
  --text-secondary:#9b97be;
  --text-muted:    #5c5878;
  --shadow-card:   0 2px 20px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow:   0 0 60px rgba(124,58,237,0.22);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(14,12,26,0.94);
}
[data-theme="dark"] footer {
  background: #0b0918;
  border-top-color: var(--border);
}
[data-theme="dark"] .newsletter-strip {
  background: rgba(124,58,237,0.1);
  border-color: var(--border-accent);
}
[data-theme="dark"] .logo-chip {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .nav-badge { background: rgba(139,92,246,0.15); }

/* ================================
   GRAVITY FORMS — newsletter style
   ================================ */

/* Remove GF wrapper chrome */
.newsletter-form .gform_wrapper,
.newsletter-form .gform_wrapper form {
  margin: 0 !important;
  padding: 0 !important;
}

/* Lay out the GF body + footer as a flex row */
.newsletter-form .gform_wrapper form {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.newsletter-form .gform_body {
  flex: 1;
}

.newsletter-form .gform_footer,
.newsletter-form .gform_page_footer {
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
}

/* Hide GF field labels and validation messages in hero strip */
.newsletter-form .gfield_label,
.newsletter-form .gfield_description {
  display: none !important;
}

.newsletter-form .gform_fields {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-form .gfield {
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-form .ginput_container {
  margin: 0 !important;
}

/* Style the GF email input like .form-control */
.newsletter-form .ginput_container input[type="email"],
.newsletter-form .ginput_container input[type="text"] {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.newsletter-form .ginput_container input[type="email"]:focus,
.newsletter-form .ginput_container input[type="text"]:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.newsletter-form .ginput_container input::placeholder {
  color: var(--text-muted);
}

/* Style the GF submit button like .btn.btn-primary */
.newsletter-form .gform_button,
.newsletter-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 0 28px rgba(139,92,246,0.4);
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form .gform_button:hover,
.newsletter-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(139,92,246,0.55);
}

/* Dark mode overrides for GF inputs */
[data-theme="dark"] .newsletter-form .ginput_container input[type="email"],
[data-theme="dark"] .newsletter-form .ginput_container input[type="text"] {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

.ggrid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden;
}

/* Stack vertically on mobile */
@media (max-width: 680px) {
  .ggrid { grid-template-columns:repeat(2,1fr); }
  .newsletter-form .gform_wrapper form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-form .gform_button,
  .newsletter-form input[type="submit"] {
    width: 100%;
  }
  h1 br { display:none; }
  .newsletter-form .gform-theme--foundation .gform_fields { gap:10px; }
}

/* ================================
   SCREENSHOT SLIDER
   ================================ */
.screenshots-section { padding-bottom: 0; }

.browser-mockup {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}

.browser-chrome {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-url-bar {
  flex: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left:auto;
}
.slider-prev,
.slider-next {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition);
}
.slider-prev:hover,
.slider-next:hover {
  border-color: var(--purple-light);
  color: var(--purple-light);
}
@keyframes slider-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  60%       { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}
.slider-next.pulse {
  border-color: var(--purple-light);
  color: var(--purple-light);
  animation: slider-pulse 2.6s ease-out infinite;
}

.browser-content {
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 50px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.slider-dot.active {
  background: var(--purple-light);
  transform: scale(1.35);
}

/* Dark mode */
[data-theme="dark"] .browser-chrome { background: var(--bg-card); }
[data-theme="dark"] .browser-url-bar { background: var(--bg-surface); }
[data-theme="dark"] .browser-mockup { box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 8px 24px rgba(124,58,237,0.12); }

/* Mobile: shrink chrome slightly */
@media (max-width: 600px) {
  .browser-url-bar { display: none; }
  .dot { width: 10px; height: 10px; }
}

/* ================================
   GF — confirmation + spinner
   ================================ */
#gform_confirmation_message_4 {
  background: #d7ffd7;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #8af78a;
  color: black;
}

.gform_ajax_spinner {
  display: inline-block !important;
  visibility: visible !important;
  width: 24px !important;
  height: 24px !important;
}

/* ================================
   DARK MODE — misc overrides
   ================================ */
[data-theme="dark"] .nav-logo img { filter: invert(1); }
