/* === FONT FACE: SF Pro === */
/*
  To use SF Pro everywhere, copy these files to cpcrm-website/assets/fonts/:
    - SFPRODISPLAYREGULAR.OTF
    - SFPRODISPLAYMEDIUM.OTF
    - SFPRODISPLAYBOLD.OTF
*/
@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/fonts/SFPRODISPLAYMEDIUM.OTF') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../assets/fonts/SFPRODISPLAYBOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* === THEME COLORS === */
:root {
  --bg: #fff;
  --fg: #111;
  --accent: #ff8800;
  --header-bg: rgba(255,255,255,0.55); /* More transparent for frosted glass */
  --header-bg-scrolled: rgba(255,255,255,0.82);
  --header-shadow: 0 8px 32px 0 rgba(0,0,0,0.14);
  --header-border: 1.5px solid rgba(180,180,180,0.18);
  --card-bg: #fff;
  --card-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
  --input-bg: #fff;
  --input-border: #eee;
}

/* Reset & base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Capsule Header - Frosted Glass */
#site-header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  background: none;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  width: 90%; /* More flexible width */
  max-width: 900px;
  background: var(--header-bg);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-radius: 40px;
  box-shadow: var(--header-shadow);
  padding: 0 32px;
  height: 60px;
  margin: 0 16px;
  border: var(--header-border);
  transition: background 0.3s, box-shadow 0.3s;
}
#site-header.scrolled .header-content {
  background: var(--header-bg-scrolled);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
}

/* Responsive header: always horizontal, compact nav */
@media (max-width: 700px) {
  #site-header .header-content {
    padding: 0 12px;
    gap: 6px;
    width: 95%;
  }
  .nav { display: none !important; }
  .login-btn {
    margin-left: auto;
    margin-right: 0;
  }
  #hamburger {
    margin-left: 8px;
  }
}
@media (max-width: 480px) {
  #site-header { top: 8px; }
  #site-header .header-content {
    height: 48px;
    padding: 0 8px; /* More balanced padding */
    border-radius: 28px;
    width: 98%; /* Almost full width for tiny screens */
  }
  .logo img { height: 28px; width: 28px; }
  .logo span { display: none; }
  .nav-link { font-size: 0.9rem; padding: 4px 0; }
  .login-btn { padding: 6px 8px; font-size: 0.85rem; margin-left: 6px; }
}
@media (max-width: 360px) {
  #site-header .header-content {
    padding: 0 6px; /* Even tighter for very small screens */
  }
  .nav { gap: 6px; }
  .nav-link { font-size: 0.85rem; }
  .login-btn { padding: 5px 6px; font-size: 0.8rem; }
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
  gap: 10px;
}
.logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  background: #eee;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  background: none;
  transition: color 0.2s;
}
.nav-link.active, .nav-link.hovered {
  color: var(--accent);
  border-bottom: 2px solid transparent;
  background: none;
}
.nav-link:hover {
  color: var(--accent);
  background: none;
}
.login-btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(255,136,0,0.10);
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: 24px;
  white-space: nowrap;
}
.login-btn:hover {
  background: #ff6600;
  box-shadow: 0 4px 16px 0 rgba(255,136,0,0.18);
}

/* Responsive header: always horizontal, compact nav */
@media (max-width: 700px) {
  #site-header .header-content {
    padding: 0 10px;
    gap: 8px;
    min-width: 0;
  }
  .nav {
    gap: 12px;
  }
  .logo span { font-size: 1.05rem; }
  .login-btn { padding: 8px 16px; font-size: 0.98rem; margin-left: 10px; }
}
@media (max-width: 480px) {
  #site-header { top: 8px; }
  #site-header .header-content {
    height: 48px;
    padding: 0 4px;
    border-radius: 28px;
  }
  .logo img { height: 28px; width: 28px; }
  .logo span { display: none; }
  .nav-link { font-size: 0.98rem; padding: 4px 0; }
  .login-btn { padding: 6px 10px; font-size: 0.95rem; }
}

/* === INVITE ONLY BANNER === */
.invite-banner {
  background: none;
  padding: 16px 0;
  margin-top: 84px; /* Account for fixed header */
  display: flex;
  justify-content: center;
}

.invite-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50px;
  padding: 12px 24px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 2px 12px rgba(255, 136, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.invite-content:hover {
  box-shadow: 0 4px 20px rgba(255, 136, 0, 0.12);
}

.invite-text h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 2px 0;
  color: var(--fg);
}

.invite-text p {
  font-size: 0.8rem;
  margin: 0;
  color: #666;
  font-weight: 400;
}

.invite-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-invite {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-invite:hover {
  background: #ff6600;
  transform: translateY(-1px);
}

/* Responsive styles for invite banner */
@media (max-width: 768px) {
  .invite-banner {
    margin-top: 72px;
    padding: 12px 0;
  }
  
  .invite-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    width: 95%;
    max-width: 400px;
    padding: 16px 20px;
  }
  
  .invite-text h3 {
    font-size: 0.85rem;
  }
  
  .invite-text p {
    font-size: 0.75rem;
  }
  
  .btn-invite {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

@media (max-width: 480px) {
  .invite-banner {
    margin-top: 56px;
    padding: 10px 0;
  }
  
  .invite-content {
    width: 98%;
    padding: 12px 16px;
  }
  
  .invite-text h3 {
    font-size: 0.8rem;
  }
  
  .invite-text p {
    font-size: 0.7rem;
  }
  
  .btn-invite {
    font-size: 0.7rem;
    padding: 5px 12px;
  }
}

/* === HERO SECTION === */
.hero {
  padding-top: 48px;
  padding-bottom: 64px;
  text-align: center;
  background: #fff;
}
.hero-logo {
  width: 200px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #eee;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--fg);
}
.subtext {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  .container { width: 98%; }
  .cta-buttons { flex-direction: column; gap: 12px; }
  .hero-logo { 
    width: 140px; /* More balanced size for mobile */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 16px; /* Slightly less margin for tighter layout */
  }
  .hero h1 { font-size: 1.8rem; } /* Adjust heading for mobile */
  .subtext { font-size: 1rem; } /* Adjust subtext for mobile */
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(255,136,0,0.08);
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #ff6600;
}
.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover {
  background: #fff3e0;
  color: #ff6600;
}

/* Features Section */
.features {
  padding: 64px 0 32px 0;
  background: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.feature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 32px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,136,0,0.10);
  transform: translateY(-4px) scale(1.03);
}
.feature-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

/* Sales Inquiry */
.sales-inquiry {
  background: #fff;
  padding: 56px 0 64px 0;
  text-align: center;
}
.sales-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.sales-content p {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: #555;
}

/* About Page */
.about-section {
  padding: 48px 0 48px 0;
  background: #fff;
  text-align: center;
}
.about-section h1, .about-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-section p {
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 24px;
}
.team-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0 24px 0;
  flex-wrap: wrap;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 3px solid #eee;
  background: #eee;
}
.team-name {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.team-name:hover { text-decoration: underline; }
.team-role {
  font-size: 0.95rem;
  color: var(--fg);
}
.join-btn {
  margin-top: 18px;
}

/* Downloads Page */
.downloads-intro {
  padding: 48px 0 64px 0;
  background: #fff;
  text-align: center;
}
.downloads-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.download-card {
  border: 2px solid #111;
  border-radius: 12px;       /* Optional: smooth corners */
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
  text-align: center;
  min-width: 220px;
  max-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.download-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,136,0,0.10);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
}
.download-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}
.download-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
}

/* Contact Page */
.contact-section {
  padding: 48px 0 64px 0;
  background: #fff;
  text-align: center;
}
.contact-info {
  margin-bottom: 32px;
}
.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--input-bg);
  transition: border 0.2s;
  color: var(--fg);
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
.contact-form button {
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .features-grid, .team-grid, .downloads-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .container { width: 98%; }
  .cta-buttons { flex-direction: column; gap: 12px; }
  .hero-logo { width: 150px; height: 56px; }
  .feature-card, .download-card, .team-member { padding: 20px 8px; }
  .team-grid, .downloads-grid { flex-direction: column; align-items: center; }
  .about-section, .downloads-intro, .contact-section { padding: 32px 0 32px 0; }
}

/* Header nav responsive: hide nav links except logo and login on small screens */
@media (max-width: 700px) {
  .nav-link:not(.login-btn) {
    display: none !important;
  }
}

/* Button base style: black/white, orange on hover/active */
.btn, .btn-primary, .btn-secondary, .login-btn {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  box-shadow: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.btn:hover, .btn:active, .btn-primary:hover, .btn-primary:active, .btn-secondary:hover, .btn-secondary:active, .login-btn:hover, .login-btn:active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* Remove orange from secondary button default */
.btn-secondary {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}
/* Remove orange from download card border */
.download-card {
  border: 2px solid #111;
}
.download-card:hover {
  border-color: var(--accent);
}

/* Hamburger styles */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 110;
}
#hamburger .bar {
  width: 26px;
  height: 4px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
  transition: background 0.2s;
}
@media (max-width: 700px) {
  #hamburger { display: flex; }
  .nav { display: none !important; }
}
/* Dropdown styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 24px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.14);
  min-width: 180px;
  flex-direction: column;
  z-index: 120;
  padding: 12px 0;
}
.dropdown-menu.show {
  display: flex;
}
.dropdown-link {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  background: none;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.dropdown-link:hover, .dropdown-link:active {
  background: var(--accent);
  color: #fff;
}

/* Ensure pointer events for header-content and children */
/* #site-header { pointer-events: none; } */
/* #site-header .header-content, #site-header .header-content * {
  pointer-events: auto;
} */

/* Header actions (login + hamburger) always flex and right-aligned */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 700px) {
  .header-actions {
    margin-left: auto;
  }
  .login-btn {
    margin-left: 0;
    margin-right: 0;
  }
}

/* === FOOTER === */
.site-footer {
  background: #181818;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 64px;
  font-size: 1rem;
  position: relative;
  z-index: 10;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.footer-logo img {
  border-radius: 8px;
  background: #fff;
}
.footer-desc {
  font-size: 0.98rem;
  color: #bbb;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover, .footer-link:focus {
  color: var(--accent);
}
.footer-link img {
  display: inline-block;
  vertical-align: middle;
}
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}
.privacy-modal.show {
  display: flex;
}
.privacy-modal-content {
  background: #fff;
  color: #222;
  border-radius: 16px;
  max-width: 700px;
  width: 95vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.18);
  position: relative;
  padding: 0;
  animation: modalIn 0.2s;
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.privacy-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 0 0 16px 16px;
  background: #fafbfc;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.close-modal:hover { color: #ff8800; }
@media (max-width: 600px) {
  .footer-content { flex-direction: column; gap: 18px; align-items: flex-start; }
  .privacy-modal-content { max-width: 98vw; }
  .privacy-iframe { height: 60vh; }
} 