/* ============================================
   PoolTechPro — Landing Page Styles
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #0b3d91;
  --primary-dark: #072a66;
  --primary-light: #1a5ec4;
  --accent: #00b4d8;
  --accent-dark: #0096b7;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --white: #ffffff;
  --off-white: #f4f7fa;
  --light-gray: #e8ecf1;
  --gray: #6b7280;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #555555;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ═══════════════════════════
   HEADER
   ═══════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--white);
  transition: color var(--transition);
}
.header.scrolled .logo { color: var(--dark); }
.logo-text { font-weight: 400; letter-spacing: -0.5px; }
.logo-text strong { font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--white); }
.header.scrolled .nav-link { color: var(--text-light); }
.header.scrolled .nav-link:hover { color: var(--primary); }

.nav-demo {
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 6px;
}
.nav-demo:hover { background: rgba(255,255,255,0.25); }
.header.scrolled .nav-demo {
  background: var(--accent-glow);
  color: var(--accent-dark);
}
.header.scrolled .nav-demo:hover {
  background: var(--accent);
  color: var(--white);
}

.header-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}
.header.scrolled .header-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.header.scrolled .hamburger span { background: var(--dark); }
.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(5px, -5px); }

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 180, 216, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 120px;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Mockup */
.hero-visual { display: flex; justify-content: center; }
.hero-mockup {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #28c840; }
.mockup-body {
  display: flex;
  min-height: 300px;
}
.mockup-sidebar {
  width: 60px;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-nav-item {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.mockup-nav-item.active {
  background: var(--accent);
  opacity: 0.7;
}
.mockup-content {
  flex: 1;
  padding: 16px;
}
.mockup-header-bar {
  height: 12px;
  width: 40%;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  margin-bottom: 16px;
}
.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.mockup-card {
  height: 50px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.mockup-card.c1 { background: rgba(0, 180, 216, 0.15); }
.mockup-card.c2 { background: rgba(40, 200, 64, 0.12); }
.mockup-card.c3 { background: rgba(255, 189, 46, 0.12); }
.mockup-table { display: flex; flex-direction: column; gap: 6px; }
.mockup-row {
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.mockup-row:nth-child(2) { width: 85%; }
.mockup-row:nth-child(3) { width: 70%; }

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══════════════════════════
   SECTIONS
   ═══════════════════════════ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ═══════════════════════════
   FEATURES GRID
   ═══════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-dark);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ═══════════════════════════
   HOW IT WORKS
   ═══════════════════════════ */
.how-it-works {
  background: var(--off-white);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 16px;
  margin-bottom: 24px;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ═══════════════════════════
   ALL FEATURES (EXTRAS)
   ═══════════════════════════ */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.extra-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.extra-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.extra-item svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--accent-dark);
  margin-top: 2px;
}
.extra-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.extra-item p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ═══════════════════════════
   CTA
   ═══════════════════════════ */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cta .btn-outline {
  border-color: rgba(255,255,255,0.3);
}
.cta .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Demo Credentials */
.demo-credentials {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: inline-block;
  backdrop-filter: blur(8px);
}
.demo-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.demo-creds-grid {
  display: flex;
  gap: 32px;
}
.demo-cred {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cred-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cred-value {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--white);
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-text {
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════
   SCROLL REVEAL ANIMATION
   ═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-mockup { max-width: 420px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile Nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition);
    z-index: 1000;
  }
  .nav.active { right: 0; }
  .nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
  }
  .nav-link:hover { color: var(--white); }
  .nav-demo {
    background: rgba(0, 180, 216, 0.2);
    text-align: center;
  }
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .steps-grid { grid-template-columns: 1fr; }
  .extras-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero { min-height: auto; padding-top: 100px; padding-bottom: 0; }
  .hero-inner { padding-bottom: 100px; }
  .hero h1 { font-size: 2rem; }
  .hero-mockup { display: none; }

  .demo-creds-grid { flex-direction: column; gap: 12px; }
  .demo-credentials { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
  .feature-card { padding: 24px 20px; }
}
