﻿/* SmartPMO.ai - Redesigned Stylesheet */

html {
  scroll-padding-top: 100px;
}

:root {
  --cyan: #00F5FF;
  --purple: #825AFF;
  --blue: #4C78FF;
  --bg: #050505;
  --panel: rgba(30, 35, 45, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --text-primary: #e8f0ff;
  --text-muted: #b0c4de;
  --max-width: 1200px;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* prevent horizontal scroll & reserve banner space */
body {
  overflow-x: hidden;
  padding-top: 120px;
}

/* Animated background (simplified - performance optimized) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 20% 30%, rgba(0, 245, 255, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(130, 90, 255, 0.15) 0%, transparent 50%);
  animation: breathe 20s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.nav a:hover {
  color: var(--cyan);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem;
}

.hero-content {
  max-width: var(--max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Side: Content */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.carousel-msg {
  position: absolute;
  width: 100%;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.carousel-msg.active {
  opacity: 1;
  transform: translateY(0);
}

/* Right Side: Image + Signup Stacked */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

.signup-card {
  width: 100%;
  padding: 1.5rem 2rem;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.signup-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.signup-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signup-form input {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s;
  min-width: 0;
}

.signup-form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.btn-primary {
  padding: 1rem 2rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.signup-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Insights Section */
.insights-section {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.5rem;
}

/* Insight Cards */
.insight-card {
  background: var(--panel);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.3);
}

/* Custom Badge System */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}

.badge i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pmo-badge {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: var(--cyan);
}

.implementation-badge {
  background: rgba(255, 136, 0, 0.1);
  border: 1px solid rgba(255, 136, 0, 0.3);
  color: #FF8800;
}

.skill-badge {
  background: rgba(130, 90, 255, 0.1);
  border: 1px solid rgba(130, 90, 255, 0.3);
  color: var(--purple);
}

.time-badge {
  background: rgba(76, 120, 255, 0.1);
  border: 1px solid rgba(76, 120, 255, 0.3);
  color: var(--blue);
}

.price-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px currentColor;
}

.tldr-badge {
  display: inline-block;
  margin: 8px 0 12px 0;
  background: rgba(100, 255, 218, 0.15);
  color: rgba(100, 255, 218, 1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tldr-badge i {
  vertical-align: middle;
}

/* Card Content */
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-title a {
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--cyan);
}

.card-tagline {
  font-size: 0.95rem;
  color: var(--cyan);
  font-style: normal;
  font-weight: 600;
}

.card-tldr {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-tldr strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.card-tldr ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-tldr li {
  line-height: 1.3;
}

.card-tldr li::before {
  content: "";
  margin-right: 0;
}

.card-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.card-link:hover {
  transform: translateX(4px);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

/* Demo Banner */
.demo-banner {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.demo-banner-content {
  display: flex;
  will-change: transform;
  animation: scroll-left 20s linear infinite;
  white-space: nowrap;
}

.demo-banner-text {
  padding: 0 50px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.demo-banner-text::before {
  content: "⚠️";
  font-size: 16px;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: -100%;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
    border-left: 1px solid var(--glass-border);
    min-width: 200px;
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    min-height: auto;
    padding: 5rem 1rem 2rem;
  }

  .hero-image {
    order: -1;
    max-height: 250px;
  }

  .hero-image img {
    opacity: 0.9;
    object-fit: contain;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    align-items: center;
  }
  
  .hero-headline {
    font-size: 1.5rem;
  }
  
  .carousel {
    height: 80px;
  }
  
  .carousel-msg {
    font-size: 1rem;
  }
  
  .signup-card {
    max-width: 100%;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }
  
  .signup-form {
    grid-template-columns: 1fr;
  }
  
  .btn-primary {
    width: 100%;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
  }

  /* banner speed tweak */
  .demo-banner-content {
    animation-duration: 12s;
  }

  /* lighter shadows on mobile */
  .insight-card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }

  /* newsletter centering */
  .emailoctopus-form-wrapper {
    display: flex;
    justify-content: center;
  }
  .emailoctopus-form-wrapper iframe {
    width: 100% !important;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .signup-card {
    padding: 1.5rem;
  }
  
  .signup-card h2 {
    font-size: 1.25rem;
  }
  
  .hero-headline {
    font-size: 1.25rem;
  }
  
  .hero-image img {
    max-height: 150px;
  }
}

.tldr-bullet {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.5;
}

.tldr-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(100, 255, 218, 0.8);
    font-weight: bold;
    font-size: 1.2em;
}

/* EmailOctopus form cleanup */
.emailoctopus-form-wrapper form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.emailoctopus-form-wrapper h2,
.emailoctopus-form-wrapper p:first-child {
  display: none !important; /* hide EmailOctopus default heading */
}

.emailoctopus-form-wrapper input[type="email"] {
  border-radius: 10px !important;
  border: 1px solid var(--glass-border) !important;
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-primary) !important;
  padding: 1rem 1.25rem !important;
  font-size: 1rem !important;
  width: 100% !important;
}

.emailoctopus-form-wrapper input[type="submit"] {
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--cyan), var(--purple)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 1rem 2rem !important;
  cursor: pointer !important;
  width: 100% !important;
}

/* Restore 'Powered by EmailOctopus' attribution styling */
.emailoctopus-form-wrapper .emailoctopus-powered {
  display: block !important;
  margin-top: 0.75rem !important;
  text-align: center !important;
  font-size: 0.8rem !important;
  color: rgba(200, 200, 200, 0.6) !important;
  background: transparent !important;
  padding: 0.25rem 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.emailoctopus-form-wrapper .emailoctopus-powered a {
  color: rgba(200, 200, 200, 0.6) !important;
  text-decoration: none !important;
}

.emailoctopus-form-wrapper .emailoctopus-powered a:hover {
  color: var(--cyan) !important;
}

/* --- Restore and restyle official EmailOctopus attribution --- */
.emailoctopus-form-wrapper .mastfoot,
.emailoctopus-form-wrapper .mastfoot.no-bg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 !important;
  margin-top: 0.5rem !important;
  text-align: center !important;
}

.emailoctopus-form-wrapper .mastfoot .inner p,
.emailoctopus-form-wrapper .mastfoot .inner a {
  color: rgba(200, 200, 200, 0.6) !important;
  font-size: 0.8rem !important;
  text-decoration: none !important;
}

.emailoctopus-form-wrapper .mastfoot .inner a:hover {
  color: var(--cyan) !important;
  text-decoration: underline !important;
}

/* --- FORCE FIX: EmailOctopus attribution white block override --- */
.emailoctopus-form-wrapper .mastfoot,
.emailoctopus-form-wrapper .mastfoot * {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.emailoctopus-form-wrapper .mastfoot {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0.75rem 0 !important;
  margin-top: 0.75rem !important;
}

.emailoctopus-form-wrapper .mastfoot .inner p,
.emailoctopus-form-wrapper .mastfoot .inner a {
  color: rgba(200, 200, 200, 0.65) !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.emailoctopus-form-wrapper .mastfoot .inner a:hover {
  color: var(--cyan) !important;
  text-decoration: underline !important;
}

/* Extra catch-all to stop embedded divs from forcing white */
.emailoctopus-form-wrapper div[style*="background"],
.emailoctopus-form-wrapper div[style*="background-color"] {
  background: transparent !important;
  background-color: transparent !important;
}


