/* qbit.me × Cal.com Design System */

:root {
  --charcoal: #242424;
  --midnight: #111111;
  --white: #ffffff;
  --mid-gray: #898989;
  --border-gray: rgba(34, 42, 53, 0.08);
  --link-blue: #0099ff;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --shadow-card: rgba(19, 19, 22, 0.7) 0px 1px 5px -4px,
                 rgba(34, 42, 53, 0.08) 0px 0px 0px 1px,
                 rgba(34, 42, 53, 0.05) 0px 4px 8px 0px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--charcoal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gray);
}

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

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
}

nav .logo img { height: 28px; width: auto; }

nav .logo span { color: var(--mid-gray); font-weight: 400; }

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

nav .links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid-gray);
  transition: color 0.2s;
}

nav .links a:hover { color: var(--charcoal); text-decoration: none; }

nav .links .cta {
  background: var(--charcoal);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

nav .links .cta:hover { opacity: 0.7; color: var(--white); text-decoration: none; }

/* Hero */
.hero {
  padding: 160px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero .logo-mark {
  margin-bottom: 32px;
}

.hero .logo-mark img { height: 48px; width: auto; }

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 24px;
  letter-spacing: 0px;
  color: var(--charcoal);
}

.hero h1 .highlight { color: var(--link-blue); }

.hero p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--mid-gray);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover { opacity: 0.7; color: var(--white); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover { opacity: 0.7; text-decoration: none; }

/* Section */
.section {
  padding: 96px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.section-header p {
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Pillar cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}

.pillar-card:hover {
  box-shadow: rgba(19, 19, 22, 0.7) 0px 1px 8px -4px,
              rgba(34, 42, 53, 0.1) 0px 0px 0px 1px,
              rgba(34, 42, 53, 0.08) 0px 6px 12px 0px;
}

.pillar-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.30;
  color: var(--charcoal);
}

.pillar-card p {
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pillar-card .tagline {
  display: block;
  color: var(--mid-gray);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 28px;
  width: 28px;
  height: 28px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 8px;
  line-height: 1.30;
  color: var(--charcoal);
}

.step p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* Use cases */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.use-case {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}

.use-case:hover {
  box-shadow: rgba(19, 19, 22, 0.7) 0px 1px 8px -4px,
              rgba(34, 42, 53, 0.1) 0px 0px 0px 1px,
              rgba(34, 42, 53, 0.08) 0px 6px 12px 0px;
}

.use-case h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.use-case p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.pricing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.pricing-card.featured {
  box-shadow: rgba(0, 153, 255, 0.3) 0px 0px 0px 2px,
              var(--shadow-card);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .tier-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  font-weight: 500;
  margin-bottom: 8px;
}

.pricing-card .tier-who {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 20px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.pricing-card .price-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin-bottom: 24px;
}

.pricing-card .features {
  list-style: none;
  flex: 1;
}

.pricing-card .features li {
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-gray);
}

.pricing-card .features li:last-child { border-bottom: none; }

.pricing-card .features li::before {
  content: "✓";
  color: var(--mid-gray);
  margin-right: 8px;
  font-weight: 600;
}

.pricing-card .btn {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

.pricing-note {
  text-align: center;
  color: var(--mid-gray);
  font-family: var(--font-body);
  font-size: 0.85rem;
  max-width: 700px;
  margin: 40px auto 0;
  line-height: 1.6;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 96px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.cta-section p {
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-gray);
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mid-gray);
}

footer .brand img { height: 20px; width: auto; }

footer .links {
  display: flex;
  gap: 20px;
}

footer .links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--mid-gray);
}

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

/* Detail pages — Cal.com styling */
.detail-page { padding-top: 80px; }

.detail-hero {
  padding: 120px 24px 60px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.detail-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.detail-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

.detail-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.detail-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.10;
  margin: 64px 0 16px;
  color: var(--charcoal);
}

.detail-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 40px 0 12px;
  line-height: 1.30;
  color: var(--charcoal);
}

.detail-content p {
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.detail-content ul {
  list-style: none;
  margin: 16px 0 32px;
}

.detail-content ul li {
  padding: 6px 0;
  font-family: var(--font-body);
  color: var(--mid-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.detail-content ul li::before {
  content: "→";
  color: var(--charcoal);
  margin-right: 10px;
}

.detail-content .highlight-box {
  background: #f9f9f9;
  border-left: 3px solid var(--charcoal);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}

.detail-content .highlight-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--charcoal);
}

/* Pipeline for memory page */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px 0;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  min-width: 100px;
}

.pipeline-step .step-icon { font-size: 1.4rem; }

.pipeline-step .step-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 500;
}

.pipeline-arrow {
  color: var(--mid-gray);
  font-size: 1.2rem;
  padding: 0 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .section-header h2 { font-size: 2rem; }
  .pipeline { flex-direction: column; gap: 8px; }
  .pipeline-arrow { transform: rotate(90deg); }
  nav .links { gap: 16px; }
  nav .links a { font-size: 0.8rem; }
}

@media (max-width: 600px) {
  .hero { padding: 140px 16px 60px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 60px 16px; }
  .detail-hero h1 { font-size: 1.8rem; }
  nav .inner { padding: 0 16px; }
  nav .links .cta { padding: 6px 14px; font-size: 0.8rem; }
}