/*
Theme Name: Smart Marketing - Divi 5 Child
Theme URI: https://smartmarketing.biz
Description: A cutting-edge dark neon child theme for Divi 5. Features a Three.js particle wave hero, glassmorphism cards, gradient text effects, and custom cursor. Built for Smart Marketing automation platform.
Author: Smart Marketing
Author URI: https://smartmarketing.biz
Template: Divi
Version: 1.0.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   DESIGN SYSTEM - CSS VARIABLES
   ============================================ */

:root {
  /* Backgrounds */
  --bg-primary: #07010A;
  --bg-secondary: #0D0D12;
  --bg-tertiary: #141419;

  /* Text */
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-inverse: #18181B;

  /* Accents */
  --accent-purple: #8B3AF8;
  --accent-yellow: #E0FF00;
  --accent-blue: #06B6D4;
  --accent-red: #FF0000;

  /* Glass */
  --glass-bg: rgba(13, 13, 18, 0.6);
  --glass-border: rgba(244, 244, 245, 0.06);
  --glass-border-hover: rgba(139, 58, 248, 0.2);

  /* Fonts */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Monaco', monospace;

  /* Spacing */
  --section-pad: 120px;
  --section-pad-mobile: 80px;
  --content-max: 1200px;
  --page-pad: 48px;
  --page-pad-mobile: 24px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-power3: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ============================================
   FONT IMPORTS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.et_pb_pagebuilder_layout.et_pb_pagebuilder_layout {
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p, li, span {
  color: var(--text-secondary);
}

/* Default cursor behavior - no custom cursor */
a, button, input, textarea, select {
  cursor: pointer;
}

/* ============================================
   GRADIENT TEXT EFFECT
   ============================================ */

.sm-gradient-text {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-yellow) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */

.sm-glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
}

.sm-glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 32px rgba(139, 58, 248, 0.08);
}

/* ============================================
   PILL BADGE
   ============================================ */

.sm-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  line-height: 1;
}

.sm-badge--purple {
  background-color: rgba(139, 58, 248, 0.12);
  color: var(--accent-purple);
}

.sm-badge--yellow {
  background-color: rgba(224, 255, 0, 0.12);
  color: var(--accent-yellow);
}

.sm-badge--blue {
  background-color: rgba(6, 182, 212, 0.12);
  color: var(--accent-blue);
}

.sm-badge--red {
  background-color: rgba(255, 0, 0, 0.15);
  color: #FF4444;
}

/* ============================================
   NAVIGATION
   ============================================ */

.sm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(7, 1, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 244, 245, 0.06);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.sm-nav.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.sm-nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sm-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.sm-nav__logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: var(--accent-yellow);
  color: var(--text-inverse);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.sm-nav__logo-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sm-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sm-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none !important;
  transition: color 200ms ease-out;
  position: relative;
}

.sm-nav__link:hover {
  color: var(--text-primary);
}

.sm-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background-color: var(--accent-yellow);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: filter 200ms ease-out;
}

.sm-nav__cta:hover {
  filter: brightness(1.1);
}

/* Mobile hamburger */
.sm-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}

.sm-nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 300ms ease, opacity 300ms ease;
}

.sm-nav__mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  padding: 24px;
  background: rgba(7, 1, 10, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 244, 245, 0.06);
  flex-direction: column;
  gap: 20px;
}

.sm-nav__mobile-menu.is-open {
  display: flex;
}

.sm-nav__mobile-menu .sm-nav__link {
  font-size: 16px;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .sm-nav__links {
    display: none;
  }
  .sm-nav__cta {
    display: none;
  }
  .sm-nav__hamburger {
    display: flex;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.sm-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 var(--page-pad);
}

.sm-hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sm-hero__canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.sm-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.sm-hero__badge {
  opacity: 0;
  transform: translateY(12px);
}

.sm-hero__badge.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  transition-delay: 400ms;
}

.sm-hero__title {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  margin-top: 24px;
}

.sm-hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
}

.sm-hero__title-line.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
}

.sm-hero__title-line--1.is-visible {
  transition-delay: 600ms;
}

.sm-hero__title-line--2.is-visible {
  transition-delay: 750ms;
}

.sm-hero__title-line--2 {
  text-shadow: 0 0 40px rgba(139, 58, 248, 0.3);
}

.sm-hero__subtitle {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 24px auto 0;
  opacity: 0;
  transform: translateY(12px);
}

.sm-hero__subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  transition-delay: 900ms;
}

.sm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(12px);
}

.sm-hero__ctas.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo);
  transition-delay: 1100ms;
}

.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter 200ms ease-out, transform 200ms ease-out, box-shadow 300ms ease-out;
  border: none;
}

.sm-btn:hover {
  transform: scale(1.02);
}

.sm-btn--primary {
  background-color: var(--accent-purple);
  color: #fff;
}

.sm-btn--primary:hover {
  filter: brightness(1.15);
}

.sm-btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(244, 244, 245, 0.15);
}

.sm-btn--secondary:hover {
  background: rgba(244, 244, 245, 0.06);
}

.sm-btn--yellow {
  background-color: var(--accent-yellow);
  color: var(--text-inverse);
}

.sm-btn--yellow:hover {
  box-shadow: 0 0 24px rgba(224, 255, 0, 0.25);
}

.sm-btn--blue {
  background-color: var(--accent-blue);
  color: var(--text-inverse);
}

.sm-btn--blue:hover {
  filter: brightness(1.1);
}

@media (max-width: 480px) {
  .sm-btn {
    width: 100%;
  }
}

/* ============================================
   SECTIONS - BASE
   ============================================ */

.sm-section {
  padding: var(--section-pad) var(--page-pad);
}

.sm-section--alt {
  background-color: var(--bg-secondary);
}

.sm-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.sm-section__header {
  text-align: center;
}

.sm-section__title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 24px;
}

.sm-section__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 16px auto 0;
}

@media (max-width: 768px) {
  .sm-section {
    padding: var(--section-pad-mobile) var(--page-pad-mobile);
  }
}

/* ============================================
   CAPABILITY CARDS
   ============================================ */

.sm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.sm-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  transition: border-color 300ms ease-out, box-shadow 300ms ease-out;
  opacity: 0;
  transform: translateY(40px);
}

.sm-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sm-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 0 32px rgba(139, 58, 248, 0.08);
}

.sm-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(139, 58, 248, 0.15);
}

.sm-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-purple);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
}

.sm-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 12px;
}

.sm-card__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none !important;
  transition: text-decoration 200ms ease;
}

.sm-card__link:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .sm-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT LISTS - FEATURE SPLIT
   ============================================ */

.sm-feature {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  margin-top: 0;
}

.sm-feature__text {
  opacity: 0;
  transform: translateX(-30px);
}

.sm-feature__text.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 800ms var(--ease-out-power3), transform 800ms var(--ease-out-power3);
}

.sm-feature__visual {
  opacity: 0;
  transform: translateX(30px);
}

.sm-feature__visual.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 800ms var(--ease-out-power3) 150ms, transform 800ms var(--ease-out-power3) 150ms;
}

.sm-feature__visual-inner {
  animation: sm-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes sm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.sm-browser {
  border-radius: 16px;
  overflow: hidden;
  background-color: #141419;
  border: 1px solid rgba(244, 244, 245, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.sm-browser__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: #1a1a22;
  border-bottom: 1px solid rgba(244, 244, 245, 0.06);
}

.sm-browser__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.sm-browser__dot--r { background-color: #ff5f57; }
.sm-browser__dot--y { background-color: #febc2e; }
.sm-browser__dot--g { background-color: #28c840; }

.sm-browser__url {
  flex: 1;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background-color: #0D0D12;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.sm-browser__content img {
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  .sm-feature {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DISCORD COMMUNITY CARD
   ============================================ */

.sm-discord {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(40px);
}

.sm-discord.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms var(--ease-out-power3), transform 800ms var(--ease-out-power3);
}

.sm-discord__img {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  object-fit: contain;
  opacity: 0.6;
  pointer-events: none;
}

.sm-discord__content {
  position: relative;
  z-index: 10;
  padding: 56px 64px;
}

.sm-discord__stats {
  display: flex;
  flex-direction: column;
}

.sm-discord__stats-number {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.sm-discord__stats-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .sm-discord__img {
    display: none;
  }
  .sm-discord__content {
    padding: 40px 32px;
  }
}

/* ============================================
   YOUTUBE SECTION
   ============================================ */

.sm-video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244, 244, 245, 0.08);
  margin-top: 40px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.95);
}

.sm-video-wrap.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 600ms var(--ease-out-power3), transform 600ms var(--ease-out-power3);
}

.sm-video-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 300ms ease;
}

.sm-video-wrap:hover img {
  filter: brightness(1.1);
}

.sm-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sm-video-play__btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 300ms ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.sm-video-wrap:hover .sm-video-play__btn {
  transform: scale(1.1);
}

.sm-video-play__btn svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-yellow);
  margin-left: 4px;
}

/* ============================================
   FOOTER
   ============================================ */

.sm-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(244, 244, 245, 0.06);
  padding: 80px var(--page-pad) 48px;
}

.sm-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.sm-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.sm-footer__col {
  opacity: 0;
}

.sm-footer__col.is-visible {
  opacity: 1;
  transition: opacity 600ms ease-out;
}

.sm-footer__col.is-visible:nth-child(1) { transition-delay: 0ms; }
.sm-footer__col.is-visible:nth-child(2) { transition-delay: 100ms; }
.sm-footer__col.is-visible:nth-child(3) { transition-delay: 200ms; }

.sm-footer__heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.sm-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sm-footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none !important;
  transition: color 200ms ease;
}

.sm-footer__links a:hover {
  color: var(--text-primary);
}

.sm-footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 280px;
  margin-top: 16px;
}

.sm-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 244, 245, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sm-footer__bottom p,
.sm-footer__bottom a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none !important;
}

.sm-footer__bottom a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .sm-footer__grid {
    grid-template-columns: 1fr;
  }
  .sm-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   DIVI COMPATIBILITY OVERRIDES
   ============================================ */

/* Override Divi's default background on builder pages */
.et_pb_section {
  background-color: transparent;
}

/* Hide Divi's default header/footer if using custom */
.et-l--header,
.et-l--footer {
  display: none !important;
}

/* Keep our nav above Divi's fixed elements */
#sm-nav {
  z-index: 99999 !important;
}

/* Override Divi button defaults */
.et_pb_button {
  border-radius: 10px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  padding: 14px 32px !important;
}

/* Force dark text on yellow buttons */
.et_pb_button.sm-btn--yellow {
  color: var(--text-inverse) !important;
}

/* Divi row/section spacing reset for our layout */
.sm-hero .et_pb_row,
.sm-section .et_pb_row {
  max-width: var(--content-max);
  padding: 0;
}

/* Make sure our content is never hidden behind Divi overlays */
.sm-nav,
.sm-hero__content,
.sm-section,
.sm-footer {
  position: relative;
  z-index: 2;
}

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

}
