/* ==========================================================================
   Communitaz Modern Webhotel Website Stylesheet
   Matches Communitaz iOS & Android App Design
   ========================================================================== */

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #DB2777 100%);
  --secondary: #0D9488;
  --secondary-light: #F0FDFA;
  --accent: #DB2777;
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --success: #10B981;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-sub: #64748B;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 12px 40px rgba(79, 70, 229, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #818CF8;
    --primary-hover: #6366F1;
    --primary-light: #1E1B4B;
    --secondary: #2DD4BF;
    --secondary-light: #134E4A;
    --accent: #F472B6;
    --text-main: #F8FAFC;
    --text-muted: #CBD5E1;
    --text-sub: #94A3B8;
    --bg-page: #0B0F19;
    --bg-card: #141C2E;
    --border: #232E42;
    --border-light: #1A2333;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 12px 40px rgba(99, 102, 241, 0.25);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .site-nav {
    background: rgba(15, 23, 42, 0.88);
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-dark-apple {
  background: #000000;
  color: #FFFFFF !important;
  padding: 12px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-dark-apple:hover {
  background: #1A1A1A;
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 70px 24px 90px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img, .avatar-group .mock-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -8px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.avatar-group .mock-avatar:first-child {
  margin-left: 0;
}

.social-proof-text {
  font-size: 13px;
  color: var(--text-muted);
}

.social-proof-text strong {
  color: var(--text-main);
}

/* ==========================================================================
   Hero Phone Mockup Presentation
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card);
  border-radius: 38px;
  border: 8px solid #1E293B;
  box-shadow: var(--shadow-glow), 0 30px 60px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) scale(1.02);
}

.phone-header {
  height: 150px;
  background: var(--primary-gradient);
  padding: 16px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-notch {
  width: 90px;
  height: 16px;
  background: #1E293B;
  border-radius: 0 0 10px 10px;
  margin: -8px auto 0;
}

.phone-card {
  margin: -30px 14px 14px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.phone-event-title {
  font-size: 16px;
  font-weight: 800;
  margin: 6px 0 10px;
  color: var(--text-main);
}

.phone-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.phone-price-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  top: 15%;
  left: -20px;
}

.floating-badge-2 {
  bottom: 12%;
  right: -25px;
  animation-delay: 2s;
}

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

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon-primary { background: var(--primary-light); color: var(--primary); }
.feature-icon-secondary { background: var(--secondary-light); color: var(--secondary); }
.feature-icon-gold { background: var(--gold-light); color: var(--gold); }
.feature-icon-accent { background: #FCE7F3; color: var(--accent); }

.feature-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Categories Showcase Ticker
   ========================================================================== */
.categories-wrapper {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.categories-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 20px auto 0;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.cat-pill:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   Communitaz Pro Pricing Card
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pricing-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.price-tag {
  font-size: 40px;
  font-weight: 900;
  margin: 20px 0;
  letter-spacing: -1px;
}

.price-tag span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--success);
}

/* ==========================================================================
   Safety & Verification Callout
   ========================================================================== */
.safety-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.safety-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-section {
  padding: 90px 24px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  text-align: center;
  border-radius: 32px;
  max-width: 1150px;
  margin: 40px auto 80px;
  box-shadow: var(--shadow-glow);
}

.cta-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-sub);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 60px;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-social-proof {
    justify-content: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    display: none;
  }
  .nav-container {
    padding: 12px 16px;
  }
  .hero-section {
    padding: 36px 16px 44px;
    gap: 32px;
  }
  .hero-title {
    font-size: clamp(28px, 8.5vw, 38px);
    letter-spacing: -0.8px;
  }
  .hero-description {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto 28px;
    gap: 10px;
  }
  .btn-dark-apple, .btn-outline {
    width: 100%;
    text-align: center;
  }
  .hero-mockup-wrapper {
    overflow: hidden;
    padding: 8px 0;
  }
  .phone-mockup {
    width: 100%;
    max-width: 290px;
    transform: none !important;
    border-width: 6px;
  }
  .floating-badge {
    display: none !important; /* Hiding negative-offset badges eliminates horizontal scrollbar */
  }
  .section {
    padding: 48px 16px;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: clamp(22px, 7vw, 28px);
    letter-spacing: -0.4px;
  }
  .section-subtitle {
    font-size: 14px;
  }
  .categories-wrapper {
    padding: 32px 14px;
  }
  .categories-pills {
    gap: 8px;
    margin-top: 14px;
  }
  .cat-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 22px 18px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pricing-card {
    padding: 26px 18px;
    border-radius: 20px;
  }
  .price-tag {
    font-size: clamp(30px, 8vw, 36px);
  }
  .safety-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    margin: 20px 12px 0;
    border-radius: 18px;
    gap: 16px;
  }
  .safety-icon-circle {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .cta-section {
    padding: 48px 16px;
    margin: 30px 12px 50px;
    border-radius: 22px;
  }
  .cta-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .cta-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 290px;
    margin: 0 auto;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .nav-container {
    padding: 10px 12px;
  }
  .brand-text {
    font-size: 18px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .phone-mockup {
    max-width: 265px;
    border-width: 5px;
  }
  .cat-pill {
    font-size: 11px;
    padding: 5px 10px;
  }
}
