/* SanaOS Premium Landing Page Styles */

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

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors */
  --bg-deep: #05060b;
  --bg-dark: #0b0d16;
  --bg-surface: rgba(18, 22, 35, 0.7);
  --bg-card: rgba(26, 31, 50, 0.45);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(180deg, rgba(11, 13, 22, 0.8) 0%, rgba(5, 6, 11, 0.95) 100%);
  --glow-indigo: 0 0 30px rgba(99, 102, 241, 0.15);
  --glow-teal: 0 0 30px rgba(20, 184, 166, 0.15);

  /* Radius & Shadows */
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Gradients */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

.glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
}

/* Navigation */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-icon {
  width: 28px;
  height: 28px;
  fill: #6366f1;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 60px;
  }
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #818cf8;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

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

.hero-description {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 540px;
}

@media (max-width: 968px) {
  .hero-description {
    margin: 0 auto 36px;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-actions {
    justify-content: center;
  }
}

/* Glassmorphic Cards & Grid */
.grid-sections {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 968px) {
  .grid-sections {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Scribe Simulation Box */
.scribe-sim-box {
  background: rgba(10, 11, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sim-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.sim-controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.sim-body {
  padding: 20px;
  min-height: 240px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
  text-align: center;
}

.sim-placeholder svg {
  margin-bottom: 12px;
  width: 32px;
  height: 32px;
  stroke: var(--text-muted);
}

/* Chat bubble styling for simulation */
.sim-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: simBubbleAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.sim-bubble-wrapper.doc {
  align-self: flex-start;
}

.sim-bubble-wrapper.pat {
  align-self: flex-end;
  align-items: flex-end;
}

.sim-speaker {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 2px;
  text-transform: uppercase;
}

.sim-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.sim-bubble.doc {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid #6366f1;
  color: #e0e7ff;
}

.sim-bubble.pat {
  background: rgba(255, 255, 255, 0.05);
  border-right: 3px solid #9ca3af;
  color: #f3f4f6;
}

/* Compiled outcome cards in simulation */
.sim-outcome {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #ccfbf1;
  margin-top: 10px;
  animation: simBubbleAppear 0.4s ease-out forwards;
}

.sim-outcome h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: 11px;
  color: #2dd4bf;
  letter-spacing: 0.05em;
}

.sim-btn-container {
  padding: 16px;
  display: flex;
  justify-content: center;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(10, 11, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Buttons */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

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

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

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

.btn-teal {
  background: var(--gradient-teal);
  color: #fff;
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* Form success & error notifications */
.form-notification {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  margin-top: 12px;
}

.form-notification.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  display: block;
}

.form-notification.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: block;
}

/* Architecture / Tech Stack Showcase */
.tech-section {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.tech-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-card {
  background: rgba(18, 22, 35, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.tech-card:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.tech-icon {
  margin: 0 auto 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #818cf8;
}

.tech-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.tech-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Digital Business Card Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 11, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.business-card {
  width: 420px;
  max-width: 90%;
  background: linear-gradient(135deg, #111422 0%, #06070b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .business-card {
  transform: scale(1);
}

/* Metallic accent line */
.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.card-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close:hover {
  color: #fff;
}

.card-info {
  margin-bottom: 30px;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.card-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-detail svg {
  width: 16px;
  height: 16px;
  color: #818cf8;
}

.card-qr-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  margin-top: 24px;
}

.qr-code-placeholder {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-placeholder svg {
  width: 100%;
  height: 100%;
}

.qr-text {
  max-width: 60%;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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