@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* DESIGN SYSTEM TOKENS */
:root {
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-dark: #070913;
  --bg-surface: rgba(15, 20, 42, 0.6);
  --bg-card: rgba(22, 28, 56, 0.4);
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  
  --accent: #14b8a6;
  --accent-glow: rgba(20, 110, 120, 0.2);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dimmed: #64748b;
  
  --border-color: rgba(99, 102, 241, 0.15);
  --border-hover: rgba(99, 102, 241, 0.35);
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

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

/* BACKGROUND GLOWS */
.glow-effect {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(7, 9, 19, 0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.glow-top-left {
  top: -100px;
  left: -100px;
}

.glow-bottom-right {
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(7, 9, 19, 0) 70%);
}

.glow-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(7, 9, 19, 0) 80%);
}

/* HEADER & NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 5%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background-color: rgba(7, 9, 19, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.8rem 5%;
  background-color: rgba(7, 9, 19, 0.9);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--border-hover);
  background-color: rgba(99, 102, 241, 0.05);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 10rem 5% 5rem 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-tag {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 30%, #a5b4fc 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* CLINICAL STATS */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 800px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, #fff 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}

/* SECTION STRUCTURE */
section {
  padding: 7rem 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  max-width: 600px;
  font-size: 1.1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* GOOGLE INTEGRATION SECTION */
.integration-section {
  background: radial-gradient(100% 100% at 50% 0%, rgba(22, 28, 56, 0.4) 0%, rgba(7, 9, 19, 0) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.integration-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4rem;
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(20px);
}

.integration-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.integration-content p {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.integration-scopes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration-scopes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.integration-scopes li strong {
  color: var(--text-main);
}

.integration-scopes svg {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.integration-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.google-calendar-mockup {
  background: rgba(22, 28, 56, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.mockup-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calendar-event {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.calendar-event.sync {
  background: rgba(20, 184, 166, 0.1);
  border-left: 4px solid var(--accent);
}

.event-time {
  font-size: 0.75rem;
  color: var(--text-dimmed);
}

.event-name {
  font-size: 0.85rem;
  font-weight: 600;
}

/* SECURITY / COMPLIANCE */
.security-section {
  text-align: center;
}

.security-badge {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.security-card {
  background: rgba(15, 20, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
}

.security-card svg {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* CTA BANNER */
.cta-banner {
  margin: 5rem 5%;
}

.cta-box {
  background: linear-gradient(135deg, rgba(22, 28, 56, 0.8) 0%, rgba(15, 20, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  padding: 5rem 2rem;
  border-radius: var(--border-radius-xl);
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
}

/* FOOTER */
footer {
  background-color: #030409;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 5% 3rem 5%;
}

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

.footer-info p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  color: var(--text-dimmed);
  font-size: 0.85rem;
}

.google-disclosure {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  line-height: 1.5;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* POLICY PAGES COMMON STYLING */
.policy-page {
  padding: 8rem 5% 5rem 5%;
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(20px);
}

.policy-card h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.policy-date {
  font-size: 0.9rem;
  color: var(--text-dimmed);
  margin-bottom: 2rem;
}

.policy-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.policy-body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-body strong {
  color: var(--text-main);
}

.policy-body h2 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-body p {
  margin-bottom: 1.5rem;
}

.policy-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-body li {
  margin-bottom: 0.5rem;
}

.policy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.policy-back-btn:hover {
  color: var(--text-main);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .integration-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    display: none; /* simple hidden nav for mobile */
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .policy-card {
    padding: 2rem;
  }
}
