/* Attest - Shared Styles */

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

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --red-500: #ef4444;
  --red-400: #f87171;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --violet-500: #8b5cf6;
  --purple-500: #a855f7;
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--slate-950);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(16, 185, 129, 0.3);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

.container-narrow {
  max-width: 800px;
}

.container-docs {
  max-width: 1400px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s ease;
}

.nav.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-600));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: var(--slate-950);
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 14px;
  color: var(--slate-400);
  transition: color 0.2s;
}

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

.nav-ctas {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-ctas {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-ghost {
  color: var(--slate-300);
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-primary {
  background: var(--white);
  color: var(--slate-950);
}

.btn-primary:hover {
  background: var(--slate-200);
}

.btn-large {
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 12px;
}

.btn-emerald {
  background: var(--emerald-500);
  color: var(--white);
}

.btn-emerald:hover {
  background: var(--emerald-600);
}

.btn-dark {
  background: var(--slate-800);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--slate-700);
}

.btn-outline {
  border: 1px solid var(--slate-700);
  color: var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--slate-600);
  color: var(--white);
}

.mobile-menu-btn {
  display: flex;
  color: var(--white);
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--slate-950);
  border-top: 1px solid var(--slate-800);
  padding: 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--slate-300);
}

.mobile-menu-ctas {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-ctas .btn {
  width: 100%;
  justify-content: center;
}

/* Page Header */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  background: rgba(16, 185, 129, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.page-header-content {
  position: relative;
}

.page-header-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--emerald-400);
  margin-bottom: 16px;
}

.page-header-title {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .page-header-title {
    font-size: 64px;
  }
}

.page-header-subtitle {
  font-size: 20px;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Section styling */
.section {
  padding: 96px 0;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--emerald-400);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px;
  }
}

.section-title-muted {
  color: var(--slate-500);
}

.section-subtitle {
  font-size: 20px;
  color: var(--slate-400);
  line-height: 1.7;
}

/* Cards */
.card {
  padding: 32px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--slate-700);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon-emerald {
  background: rgba(16, 185, 129, 0.1);
}

.card-icon-emerald svg {
  color: var(--emerald-400);
}

.card-icon-blue {
  background: rgba(59, 130, 246, 0.1);
}

.card-icon-blue svg {
  color: var(--blue-500);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-text {
  color: var(--slate-400);
  line-height: 1.7;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Code blocks */
.code-block {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-800);
}

.code-dot {
  width: 12px;
  height: 12px;
  background: var(--slate-700);
  border-radius: 50%;
}

.code-filename {
  margin-left: 8px;
  font-size: 12px;
  color: var(--slate-500);
}

.code-content {
  padding: 24px;
  overflow-x: auto;
}

.code-content pre {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-300);
}

.code-keyword { color: var(--violet-500); }
.code-string { color: var(--emerald-400); }
.code-comment { color: var(--slate-500); }
.code-func { color: var(--blue-500); }
.code-number { color: var(--amber-400); }

/* Inline code */
code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: var(--slate-800);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--slate-800);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--slate-800);
}

th {
  font-weight: 600;
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: 14px;
}

td {
  color: var(--slate-400);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(15, 23, 42, 0.5);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--slate-300);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--emerald-500);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--slate-500);
}

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

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-400);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-500);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber-400);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-400);
}

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-dot-green {
  background: var(--emerald-500);
}

.status-dot-amber {
  background: var(--amber-500);
}

.status-dot-red {
  background: var(--red-500);
}

/* Prose content */
.prose {
  color: var(--slate-300);
  line-height: 1.8;
}

.prose h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 48px 0 24px;
}

.prose h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 36px 0 16px;
}

.prose h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 12px;
}

.prose p {
  margin-bottom: 20px;
}

.prose ul, .prose ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--emerald-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--emerald-300);
}

.prose blockquote {
  border-left: 3px solid var(--emerald-500);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--slate-400);
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--slate-800);
  margin: 48px 0;
}

/* Footer */
.footer {
  background: var(--slate-950);
  border-top: 1px solid rgba(30, 41, 59, 0.5);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand-text {
  color: var(--slate-400);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-brand-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--slate-500);
}

.footer-col-title {
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--slate-400);
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(30, 41, 59, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 14px;
  color: var(--slate-500);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--slate-500);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Docs specific */
.docs-layout {
  display: grid;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 96px;
}

@media (min-width: 1024px) {
  .docs-layout {
    grid-template-columns: 250px 1fr;
  }
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-nav-section {
  margin-bottom: 32px;
}

.docs-nav-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.docs-nav-links {
  list-style: none;
}

.docs-nav-links li {
  margin-bottom: 4px;
}

.docs-nav-links a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--slate-400);
  border-radius: 6px;
  transition: all 0.2s;
}

.docs-nav-links a:hover {
  color: var(--white);
  background: var(--slate-800);
}

.docs-nav-links a.active {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
}

/* Team grid */
.team-grid {
  display: grid;
  gap: 32px;
}

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

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  text-align: center;
  padding: 32px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 16px;
}

.team-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-800));
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  color: var(--slate-500);
}

.team-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  color: var(--emerald-400);
  font-size: 14px;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--slate-400);
  font-size: 14px;
  line-height: 1.7;
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 32px;
}

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

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--slate-700);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image svg {
  width: 64px;
  height: 64px;
  color: var(--slate-600);
}

.blog-card-content {
  padding: 24px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--slate-400);
  font-size: 14px;
  line-height: 1.7;
}

/* Jobs */
.job-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .job-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.job-card:hover {
  border-color: var(--slate-700);
}

.job-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--slate-400);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-meta svg {
  width: 16px;
  height: 16px;
}

/* Status page */
.status-card {
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  margin-bottom: 16px;
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-card-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-card-uptime {
  font-size: 14px;
  color: var(--slate-400);
}

.status-bars {
  display: flex;
  gap: 2px;
  height: 32px;
}

.status-bar {
  flex: 1;
  border-radius: 2px;
  background: var(--emerald-500);
}

.status-bar-degraded {
  background: var(--amber-500);
}

.status-bar-down {
  background: var(--red-500);
}

/* CTA Section */
.cta-section {
  background: var(--slate-900);
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.cta-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.1), transparent);
  opacity: 0.5;
  filter: blur(80px);
}

.cta-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 48px;
  }
}

.cta-subtitle {
  font-size: 20px;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto 48px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Feature detail page */
.feature-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.feature-hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-visual {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.feature-visual svg {
  width: 200px;
  height: 200px;
  color: var(--emerald-400);
  opacity: 0.5;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }

.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }

.bg-slate-900 { background: var(--slate-900); }
.bg-slate-950 { background: var(--slate-950); }

.border-t { border-top: 1px solid var(--slate-800); }
.border-b { border-bottom: 1px solid var(--slate-800); }
