/* ==========================================================================
   DOTCHATER LLC - Custom Design System
   Color Palette: Deep Navy & Electric/Light Blues (No Purple)
   Aesthetic: Human-designed, clean corporate tech look with sharp typography,
              subtle shadows, realistic contrast, and zero generic glows.
   ========================================================================== */

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

:root {
  /* Clean Blue Color Palette (Strictly No Purple) */
  --bg-main: #0B132B;
  --bg-surface: #1C2541;
  --bg-surface-hover: #232E4E;
  --bg-card: rgba(28, 37, 65, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-active: #3A86FF;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  /* Blue Accents */
  --blue-primary: #3A86FF;      /* Vibrant Electric Blue */
  --blue-light: #60A5FA;        /* Crisp Light Blue */
  --blue-sky: #93C5FD;          /* Soft Sky Blue */
  --blue-deep: #1E3A8A;         /* Rich Navy Blue */
  --blue-glow: rgba(58, 134, 255, 0.2);

  --accent-green: #10B981;

  --gradient-blue: linear-gradient(135deg, #3A86FF 0%, #60A5FA 100%);
  --gradient-card: linear-gradient(180deg, rgba(28, 37, 65, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-blue: 0 8px 25px rgba(58, 134, 255, 0.25);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-primary);
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFF;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue-primary);
  color: #FFF;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: #2563EB;
  color: #FFF;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--blue-light);
  color: #FFF;
}

/* Section Header */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0.75rem auto 0;
}

.section-header h2 {
  font-size: 2.25rem;
}

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

.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(58, 134, 255, 0.12);
  border: 1px solid rgba(58, 134, 255, 0.3);
  border-radius: var(--radius-pill);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

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

/* Custom Clean Code Card */
.code-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.code-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.code-title {
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-family: monospace;
}

.code-body {
  padding: 1.5rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #D1D5DB;
}

.kw { color: var(--blue-light); font-weight: 600; }
.fn { color: #93C5FD; }
.str { color: #A7F3D0; }
.cm { color: #6B7280; font-style: italic; }

/* Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

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

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(58, 134, 255, 0.12);
  border: 1px solid rgba(58, 134, 255, 0.25);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Stats */
.stats-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  margin: 3rem 0;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-light);
}

.stat-lbl {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Tab Controls */
.tab-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #FFF;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #FFF;
}

.faq-header i {
  color: var(--blue-light);
  transition: transform 0.2s ease;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-body {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-header i {
  transform: rotate(180deg);
}

/* Status Component */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

/* Legal Document */
.legal-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-block {
  margin-bottom: 2.25rem;
}

.legal-block h2 {
  font-size: 1.4rem;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.legal-block p, .legal-block ul {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-block ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #0D162C;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: #070D1E;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

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

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--blue-light);
}

.footer-btm {
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-wrapper { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .stats-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Print Styles for Legal & Security Exports */
@media print {
  .navbar, footer, .mobile-toggle, .modal-overlay, .tag { display: none !important; }
  body { background: #FFF !important; color: #000 !important; font-size: 11pt !important; }
  .legal-wrapper, .container { padding: 0 !important; border: none !important; box-shadow: none !important; }
  .legal-block h2 { color: #000 !important; border-bottom: 1px solid #CCC !important; }
}

