/* Cal.com Design System - Pure CSS */
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans:wght@400&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fafafa;
  --bg-white: #ffffff;
  --text: #292929;
  --text-secondary: #6b7280;
  --blue: #0099ff;
  --blue-hover: #0088e6;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;
  --nav-height: 48px;
  --radius-pill: 9999px;
  --radius-lg: 16px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --gutter: 32px;
  --content-max: 1200px;
  --font-display: 'Cal Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-white: #141414;
  --text: #fafafa;
  --text-secondary: #9ca3af;
  --blue: #0099ff;
  --blue-hover: #33aaff;
  --border: #262626;
  --border-light: #1f1f1f;
  --card-bg: #141414;
  --card-border: #262626;
  --nav-bg: rgba(10, 10, 10, 0.85);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  padding-top: 72px;
}
main { padding: 8px var(--gutter) 0; max-width: var(--content-max); margin-inline: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }

/* CONTAINER */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* FLOATING NAV */
.nav {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  height: var(--nav-height);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .nav {
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
}
.theme-toggle:hover { background: var(--border-light); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-admin {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-admin:hover { color: var(--text); border-color: var(--text-secondary); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }
.hamburger svg { width: 20px; height: 20px; fill: currentColor; }

/* DRAWER */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; transition: opacity var(--transition); }
.drawer-overlay.active { display: block; opacity: 1; }
.drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: var(--bg-white);
  z-index: 1001;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 72px 24px 24px;
  box-shadow: var(--shadow-lg);
}
.drawer.active { left: 0; }
.drawer-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.drawer-nav a:hover { background: var(--border-light); }
.drawer-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 8px; border-radius: var(--radius-pill); transition: background var(--transition); }
.drawer-close:hover { background: var(--border-light); }
.drawer-close svg { width: 20px; height: 20px; fill: currentColor; }
.drawer-social { display: flex; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.drawer-social a { color: var(--text-secondary); transition: color var(--transition); padding: 8px; border-radius: var(--radius-md); }
.drawer-social a:hover { color: var(--blue); background: var(--border-light); }
.drawer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* HERO */
.hero { padding: 64px 0 72px; text-align: center; }
.hero-eyebrow { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 4px; }
.gradient-text {
  font-family: var(--font-display);
  background: linear-gradient(135deg, #0099ff, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1, .hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3); }
.btn-secondary { background: var(--bg-white); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-secondary); }
.btn-super { padding: 14px 28px; font-size: 1rem; }

/* PAGE HEADER */
.page-header { padding: 56px 0 32px; text-align: center; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* SECTIONS */
.section { padding: 16px 0; }
.section-title, section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-align: center;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
}

/* ABOUT */
.about-content { text-align: center; }
.about-text { flex: 1; font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.about-text .section-title { text-align: left; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #0099ff 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.8125rem; color: var(--text-secondary); }
.card-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--border-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--blue); }
.card-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ARTICLE PAGE */
.article-header { padding: 56px 0 24px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-date { font-size: 0.875rem; color: var(--text-secondary); }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto;
}
.article-body { padding: 0 0 60px; font-size: 1rem; line-height: 1.8; color: var(--text-secondary); }
.article-body p { margin-bottom: 1.5em; }
.article-body h2, .article-body h3 { color: var(--text); margin: 2em 0 0.5em; }
.article-body pre { background: var(--card-bg); padding: 20px; border-radius: var(--radius-md); overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--card-border); }
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body code { font-size: 0.9em; background: var(--border-light); padding: 2px 6px; border-radius: var(--radius-sm); }
.article-body img { border-radius: var(--radius-md); margin: 1.5em 0; }
.content-narrow {
  max-width: 680px;
  margin-inline: auto;
}



/* CONTACT */
.contact-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-input, .form-textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* CTA */
.cta-section { padding: 64px 0; text-align: center; }

/* FOOTER */
.footer { padding: 32px 0; text-align: center; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-secondary); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }
.footer-social a { color: var(--text-secondary); transition: color var(--transition); padding: 8px; border-radius: var(--radius-pill); }
.footer-social a:hover { color: var(--blue); background: var(--border-light); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* BOTTOM NAV */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 52px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06), inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
[data-theme="dark"] .bottom-nav {
  background: rgba(10, 10, 10, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
}
.bottom-nav-inner { display: flex; align-items: center; justify-content: space-around; height: 100%; padding: 0 8px; }
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { width: 20px; height: 20px; fill: currentColor; }
.bottom-nav-item.active { color: var(--blue); background: rgba(0, 153, 255, 0.08); border-radius: var(--radius-pill); }
.bottom-nav-item:hover { color: var(--blue); }

/* SCROLL ANIMATIONS */
.fade-in { opacity: 1; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ALERTS */
.alert { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 0.875rem; font-weight: 500; }
.alert-success { background: rgba(16, 185, 129, 0.08); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-error { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

/* RESPONSIVE */
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  body { padding-top: 68px; }
  .nav { top: 10px; left: 10px; right: 10px; height: 44px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .bottom-nav { display: block; }
  body { padding-bottom: 76px; }
  .footer { margin-bottom: 76px; }
  .hero { padding: 48px 0 56px; }
  .about-content { flex-direction: column; text-align: center; }
  .about-text .section-title { text-align: center; }
  .section { padding: 12px 0; }
  .page-header { padding: 48px 0 24px; }
  .card-image { height: 140px; }
  .article-header { padding: 48px 0 20px; }
  .cta-section { padding: 48px 0; }
}
@media (max-width: 375px) {
  :root { --gutter: 16px; }
  .nav { top: 8px; left: 8px; right: 8px; height: 42px; }
  .nav-inner { padding: 0 16px; }
  .nav-logo { font-size: 1.125rem; }
  .bottom-nav { bottom: 8px; left: 8px; right: 8px; height: 48px; }
  .bottom-nav-item { padding: 4px 12px; }
  .bottom-nav-item svg { width: 18px; height: 18px; }
  .hero { padding: 40px 0 48px; }
  .page-header { padding: 40px 0 20px; }
}