/*
  ╔══════════════════════════════════════════════════════╗
  ║  TEKDLIN NEWSLETTER  —  newsletter.css               ║
  ║  Palette: Electric Depth (Tekdlin brand)             ║
  ║  Aesthetic: Bold editorial — confident & modern      ║
  ╚══════════════════════════════════════════════════════╝
*/

/* ── CSS Variables ── */
:root {
  --blue:        #1A6FFF;
  --blue-dark:   #0F52CC;
  --blue-light:  #EEF3FF;
  --gold:        #F5A623;
  --gold-dark:   #C7841A;
  --teal:        #00C9A7;
  --teal-dark:   #009E84;
  --coral:       #FF6B6B;
  --navy:        #0A1628;
  --navy-mid:    #1E2D45;
  --cream:       #FDFAF4;
  --white:       #FFFFFF;
  --mid:         #64748B;
  --border:      rgba(10, 22, 40, 0.08);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #4F86C6;
  color: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s;
}

.site-nav.scrolled {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.nav-brand img { height: 32px; filter: brightness(0) invert(1); }

.brand-fallback {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: #fff;
}
.brand-fallback span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* ══════════════════════════════
   PAGE WRAPPER + BACKGROUND
══════════════════════════════ */
.page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
  /*background: var(--navy);*/
}

/* Ambient background orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.orb-1 {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(26, 111, 255, 0.22) 0%, transparent 70%);
}

.orb-2 {
  width: 400px; height: 400px;
  bottom: -80px; left: -60px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.14) 0%, transparent 70%);
}

.orb-3 {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 201, 167, 0.08) 0%, transparent 70%);
}

/* Subtle dot grid */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ══════════════════════════════
   SIGNUP CARD — two-column layout
══════════════════════════════ */
.signup-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 680px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ══════════════════════════════
   PHOTO PANEL (left)
══════════════════════════════ */
.photo-panel {
  position: relative;
  background: var(--navy-mid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Rainbow top bar */
.panel-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold), var(--coral));
  z-index: 10;
}

/* Mesh background on photo panel */
.photo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(26, 111, 255, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 30% 90%, rgba(245, 166, 35, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* Photo wrapper */
.photo-wrap {
  position: relative;
  flex: 1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 420px;
}

.photo-fallback {
  width: 100%;
  height: 420px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  color: #fff;
}

/* Gradient overlay so photo bleeds into bottom section */
.photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--navy-mid) 0%, transparent 100%);
  pointer-events: none;
}

/* Floating badges over photo */
.float-badge {
  position: absolute;
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: floatBadge 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.badge-name {
  top: 1.5rem;
  left: 1rem;
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  animation-delay: 0s;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 201, 167, 0.5); }
  50%       { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 0 5px rgba(0, 201, 167, 0); }
}

.badge-count {
  bottom: 6rem;
  right: 0.75rem;
  background: rgba(26, 111, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  flex-direction: row;
  gap: 0.5rem;
  animation-delay: 1.5s;
}

.badge-count i { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.badge-count strong { display: block; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; color: #fff; line-height: 1; }
.badge-count span   { font-size: 0.65rem; color: rgba(255, 255, 255, 0.65); }

/* Social section */
.social-section {
  padding: 1.25rem 1.5rem 1.75rem;
  position: relative;
  z-index: 2;
}

.social-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.85rem;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-btn:hover { transform: translateY(-2px); color: #fff; }

/* Per-platform accent colours on hover */
.s-instagram:hover { background: rgba(225, 48, 108, 0.2);  border-color: rgba(225, 48, 108, 0.5); }
.s-youtube:hover   { background: rgba(255, 0,   0,   0.2);  border-color: rgba(255, 0,   0,   0.5); }
.s-tiktok:hover    { background: rgba(0,   0,   0,   0.4);  border-color: rgba(255,255,255, 0.25); }
.s-linkedin:hover  { background: rgba(10, 102, 194, 0.25); border-color: rgba(10, 102, 194, 0.5); }
.s-threads:hover   { background: rgba(255,255,255, 0.12); border-color: rgba(255,255,255, 0.3); }
.s-x:hover         { background: rgba(255,255,255, 0.1);  border-color: rgba(255,255,255, 0.25); }
.s-substack:hover  { background: rgba(255, 102, 0,   0.2); border-color: rgba(255, 102, 0,   0.4); }

.social-btn i { font-size: 0.9rem; }

/* ══════════════════════════════
   FORM PANEL (right)
══════════════════════════════ */
.form-panel {
  background: var(--cream);
  padding: 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle mesh on cream bg */
.form-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26, 111, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Tekdlin tag */
.tekdlin-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.tekdlin-tag img   { height: 14px; filter: brightness(0) invert(1); }
.tag-fallback      { font-family: 'Outfit', sans-serif; font-weight: 900; color: #fff; }
.tag-divider       { color: rgba(255, 255, 255, 0.25); }

/* Eyebrow */
.form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.ey-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Headline */
.form-h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.h1-accent {
  /* Blue → gold gradient text */
  background: linear-gradient(135deg, var(--blue) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body copy */
.form-desc {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.form-desc strong { color: var(--navy); font-weight: 600; }

/* Trust pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.t-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.t-pill i { font-size: 0.8rem; }
.t-pill:nth-child(1) i { color: var(--teal); }
.t-pill:nth-child(2) i { color: var(--gold); }
.t-pill:nth-child(3) i { color: var(--blue); }

/* ── ConvertKit embed wrapper ── */
.ck-wrap {
  margin-bottom: 1.25rem;
  position: relative;
}

/*
  Override ConvertKit's default styles to match Tekdlin brand.
  ConvertKit injects an iframe or form — we target what we can.
*/
.ck-wrap form,
.ck-wrap .formkit-form {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.ck-wrap input[type="text"],
.ck-wrap input[type="email"],
.ck-wrap .formkit-input {
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  color: var(--navy) !important;
  background: #fff !important;
  transition: border-color 0.2s !important;
  margin-bottom: 0.6rem !important;
}

.ck-wrap input:focus,
.ck-wrap .formkit-input:focus {
  border-color: var(--blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(26, 111, 255, 0.1) !important;
}

.bi{
  font-size: 25px;
}

.ck-wrap button[type="submit"],
.ck-wrap .formkit-submit {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.85rem 2rem !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s !important;
  box-shadow: 0 4px 20px rgba(26, 111, 255, 0.35) !important;
  letter-spacing: 0.01em !important;
}

.ck-wrap button[type="submit"]:hover,
.ck-wrap .formkit-submit:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(26, 111, 255, 0.45) !important;
}

/* Privacy note */
.form-privacy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--mid);
  opacity: 0.7;
}
.form-privacy i { color: var(--teal); font-size: 0.85rem; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: #040914;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover { color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .signup-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .photo-panel {
    max-height: 480px;
  }

  .profile-photo {
    min-height: 320px;
    max-height: 380px;
  }

  .form-panel {
    padding: 2.25rem 2rem;
  }

  .badge-count { display: none; }
}

@media (max-width: 576px) {
  .page-wrap  { padding: 5rem 0.75rem 3rem; }
  .form-panel { padding: 2rem 1.5rem; }
  .form-h1    { font-size: 2rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
