/* ===== ROOT ===== */
:root {
  --bg: #06060b;
  --bg-2: #0d0d14;
  --bg-card: #0f0f1a;
  --purple: #7c3aed;
  --orange: #f97316;
  --grad: linear-gradient(135deg, #7c3aed, #f97316);
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  background: var(--bg);
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* ===== GRADIENT HELPERS ===== */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: var(--purple);
  top: -15%;
  left: -8%;
  opacity: 0.3;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: var(--orange);
  top: -15%;
  right: -5%;
  opacity: 0.22;
}

.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: 15px 34px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.4);
}

.btn-outline {
  background: transparent;
  color: #e2e8f0;
  padding: 15px 34px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: #141422;
  transform: translateY(-3px);
}

.bento-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.3;
  transition: opacity 0.4s;
}

.bento-item:hover::after {
  opacity: 0.8;
}

/* Bento accent stripe */
.bento-accent {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(249, 115, 22, 0.08));
}

.bento-accent svg {
  width: 20px;
  height: 20px;
  stroke: var(--purple);
}

/* Large bento glow */
.bento-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
}

/* ===== SPEAKER STRIP ===== */
.speaker-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  transition: all 0.4s ease;
}

.speaker-strip:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.speaker-avatar {
  width: 140px;
  min-height: 170px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #13132a, #0d0d18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.speaker-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent);
}

.speaker-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.speaker-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.3s;
}

.speaker-linkedin:hover {
  color: var(--purple);
}

/* ===== EVENT META PILL ===== */
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  transition: all 0.3s;
}

.meta-pill:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

/* ===== FORM ===== */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: #334155;
}

label.error {
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--purple);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--purple);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0 16px;
}

/* ===== SCROLL ANIMATIONS ===== */
/* reveal class is controlled by GSAP - no default hidden state to avoid invisible content */

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-grid>* {
    grid-column: span 6 !important;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .orb-1 {
    width: 280px;
    height: 280px;
  }

  .orb-2 {
    width: 220px;
    height: 220px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid>* {
    grid-column: span 1 !important;
  }

  .speaker-strip {
    flex-direction: column;
  }

  .speaker-avatar {
    width: 100%;
    min-height: 120px;
  }

  /* Hero video stacks below text */
  #hero video {
    max-height: 300px;
    border-radius: 12px;
  }

  /* Sections — tighter vertical padding */
  #overview,
  #register {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Form name fields stack */
  #main-form-input .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  /* Meta pills stack */
  .meta-pill {
    font-size: 0.8rem;
    padding: 10px 14px;
  }
}

/* Mobile portrait */
@media (max-width: 640px) {

  /* Buttons full width */
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Hero heading scaling */
  #hero h1 {
    font-size: 1.85rem;
  }

  #hero #hero-sub {
    font-size: 0.95rem;
  }

  #hero #hero-partner {
    font-size: 0.65rem;
  }

  /* Hero section — less top padding */
  #hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  /* Video sizing on small phones */
  #hero video {
    max-height: 220px;
    border-radius: 10px;
    margin-top: 1rem;
  }

  /* Bento items — tighter padding */
  .bento-item {
    padding: 20px;
  }

  /* Section headings smaller */
  #overview h2,
  #register h2 {
    font-size: 1.5rem;
  }

  /* Speaker strips tighter */
  .speaker-info {
    padding: 16px;
  }

  /* Form card tighter padding */
  #register .p-7 {
    padding: 20px;
  }

  /* Nav logo container */
  .logo-container {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  #hero h1 {
    font-size: 1.55rem;
  }

  .meta-pill {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .bento-item {
    padding: 16px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}

/* WhatsApp */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  transition: transform 0.3s;
}

.wa-float:hover {
  transform: scale(1.1);
}