/* ============================================================
   Tilo0: AI Meeting Notes Summary — Styles
   ============================================================ */

:root {
  --color-accent: #4F46E5;
  --color-accent-light: #EEF2FF;
  --color-accent-hover: #4338CA;
  --color-accent-soft: #6366F1;
  --color-text: #1E293B;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-off: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --max-width-content: 780px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

/* ============================================================
   Navigation
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: #E0E7FF;
  color: var(--color-accent-hover);
}

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

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

/* ============================================================
   Layout Helpers
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-off);
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--color-text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   Feature Cards
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

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

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.step-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   Highlight Box
   ============================================================ */

.highlight-box {
  background: var(--color-accent-light);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.highlight-box h3 {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.highlight-box p {
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Promise Cards
   ============================================================ */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.promise-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.promise-check {
  width: 28px;
  height: 28px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.promise-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--color-border-light);
  padding: 48px 0 32px;
  background: var(--color-bg-off);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.footer-brand-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Content Pages (Privacy / Terms)
   ============================================================ */

.page-header {
  padding: 80px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-bg) 100%);
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.page-content {
  padding: 0 0 80px;
}

.page-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.page-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--color-text-secondary);
}

.page-content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--color-text-secondary);
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.page-content a {
  font-weight: 500;
}

.page-content strong {
  color: var(--color-text);
}

/* Table of Contents */
.toc {
  background: var(--color-bg-off);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--color-text);
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--color-accent);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .highlight-box {
    padding: 28px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .footer-links {
    gap: 28px;
  }

  .page-header {
    padding: 56px 0 32px;
  }

  .toc {
    padding: 20px 24px;
  }
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility: Skip to content for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-size: 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}