/* ===================================================================
   GoSites — Apple Liquid Glass Design System
   =================================================================== */

/* ---- Custom Properties ---- */
:root {
  /* Background */
  --bg: #080b12;
  --bg-secondary: #0c0f18;

  /* Glass Surface */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-elevated: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-elevated: rgba(255, 255, 255, 0.12);

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-primary-dark: #2563eb;
  --accent-secondary: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);

  /* Status */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-glass: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glass-elevated: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --shadow-glow-strong: 0 0 60px rgba(59,130,246,0.3);

  /* Spacing & Radius */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Typography */
  --font: 'Inter', -apple-system, system-ui, sans-serif;
}

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

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

a { color: inherit; text-decoration: none; }

/* ---- Text Selection ---- */
::selection { background: rgba(59,130,246,0.3); color: white; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

/* ---- GLASS SURFACE BASE ---- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.glass:hover {
  background: var(--glass-elevated);
  border-color: var(--glass-border-elevated);
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-glass);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--glass-border-elevated);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--shadow-glow);
}

/* ---- GLASS BUTTON ---- */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  color: white;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-glow);
  letter-spacing: 0.02em;
  font-family: var(--font);
}

.glass-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

.glass-btn:active {
  transform: scale(0.97);
}

/* ---- GLASS INPUT ---- */
.glass-input {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 15px;
  width: 100%;
  transition: all 0.25s ease;
  font-family: var(--font);
  outline: none;
}

.glass-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-glow);
}

/* ---- SIDEBAR ---- */
.sidebar {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border-right: 1px solid var(--glass-border);
  width: 240px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  padding: 24px 16px;
}

/* ---- BOTTOM NAV (MOBILE) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 11, 18, 0.90);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 20px;
  gap: 8px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: flex; }
}

/* ---- AMBIENT ORBS ---- */
.orb-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-blue {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}

.orb-violet {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 30%; right: -150px;
  animation-delay: -7s;
}

.orb-emerald {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ---- FAQ ACCORDION ---- */
.faq-item {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--glass-border-elevated);
  background: var(--glass-elevated);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
}

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ---- PRICING CARDS ---- */
.pricing-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-glow);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.10));
  border-color: var(--accent-primary);
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(59,130,246,0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 0 60px rgba(59,130,246,0.5);
}

/* ---- HERO CTA BUTTON ---- */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: var(--radius-xl);
  color: white;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(59,130,246,0.4), 0 0 60px rgba(59,130,246,0.2);
  letter-spacing: 0.02em;
  font-family: var(--font);
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 40px rgba(59,130,246,0.6), 0 0 80px rgba(59,130,246,0.3);
}

.hero-cta:active {
  transform: scale(0.97);
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* ---- LOGO SVG FALLBACK ---- */
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- NAV LINK ---- */
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  background: var(--glass);
  color: var(--text-primary);
  border-color: var(--glass-border);
}

.nav-link.active {
  background: rgba(59,130,246,0.12);
  color: var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 16px;
}

/* ---- FEATURE CARD ---- */
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.feature-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  border-color: var(--glass-border-elevated);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ---- PAGE ENTRANCE ---- */
.page-entrance {
  animation: pageEntrance 0.6s ease forwards;
}

@keyframes pageEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- FLOAT ANIMATION ---- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.float-slow-delay-1 {
  animation: float-slow 7s ease-in-out infinite 2s;
}