/* ===== Self-hosted Inter Font ===== */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== Utility Classes ===== */
.hidden {
  display: none;
}

.mt-24 {
  margin-top: 24px;
}

/* ===== Custom Properties ===== */
:root {
  --color-bg: #0a0a0a;
  --color-bg-card: #111111;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-text-dim: #555555;
  --color-border: #222222;
  --color-border-light: #333333;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1080px;
  --spacing-section: 120px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

ul, ol {
  list-style: none;
}

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

/* ===== Typography ===== */
h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  color: var(--color-text-muted);
}

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

section {
  padding: var(--spacing-section) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(to right, #B8944F, transparent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 4px;
  cursor: pointer;
  transition: opacity var(--transition);
  border: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
}

.btn-secondary:hover {
  border-color: var(--color-text-muted);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8125rem;
}

/* ===== Hero ===== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

/* ===== How It Works ===== */
.step-number {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-border-light);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
}

/* ===== Pricing ===== */
.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.pricing-card-price {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.pricing-card-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-card-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

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

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

/* ===== Social Proof ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.proof-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 24px;
}

.proof-card p {
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 12px;
}

.proof-card-source {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* ===== About ===== */
.about-content {
  max-width: 640px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-content a:hover {
  color: var(--color-text-muted);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-author-info {
  display: flex;
  flex-direction: column;
}

.footer-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.footer-author-handle {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-author-handle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* ===== Intake Form ===== */
.intake {
  min-height: 100vh;
  padding-top: 100px;
}

.intake-content {
  max-width: 560px;
}

.intake h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.intake > .container > p {
  margin-bottom: 48px;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  transition: border-color var(--transition);
}

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

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-submit {
  margin-top: 16px;
}

.form-submit .btn {
  width: 100%;
  text-align: center;
  padding: 14px 28px;
}

/* ===== Reviews Page ===== */
.reviews-hero {
  padding-top: 100px;
  padding-bottom: 48px;
}

.reviews-hero h1 {
  margin-bottom: 16px;
}

.reviews-hero p {
  max-width: 560px;
}

.reviews-list {
  padding-top: 0;
}

.review-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 16px;
}

.review-severity {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.review-severity-high {
  color: #ff4444;
  border: 1px solid #ff4444;
}

.review-severity-medium {
  color: #ffaa00;
  border: 1px solid #ffaa00;
}

.review-severity-low {
  color: #888888;
  border: 1px solid #444444;
}

.review-item h3 {
  margin-bottom: 8px;
}

.review-description {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-tag {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  padding: 2px 10px;
  border-radius: 3px;
}

.review-tier {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===== Vulnerability Cards (list page) ===== */
.vuln-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 24px 28px;
  transition: border-color var(--transition), background var(--transition);
}

.vuln-card:hover {
  border-color: var(--color-border-light);
  background: rgba(255, 255, 255, 0.02);
}

.vuln-preview-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.vuln-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.vuln-preview-info {
  min-width: 0;
}

.vuln-preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.vuln-author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.vuln-handle {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.vuln-date {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.vuln-preview-top .vuln-date::before {
  content: '\00b7';
  margin-right: 8px;
  color: var(--color-text-dim);
}

.vuln-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 8px;
}

.vuln-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vuln-preview-meta .review-severity {
  margin-bottom: 0;
}

.vuln-chevron {
  flex-shrink: 0;
  color: var(--color-text-dim);
}

/* ===== Finding Detail Page ===== */
.finding {
  padding-top: 80px;
  padding-bottom: var(--spacing-section);
}

.finding-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  transition: color var(--transition);
}

.finding-back:hover {
  color: var(--color-text);
}

.finding-header {
  margin-bottom: 40px;
}

.finding-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.finding-date {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

.finding-header h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.finding-header .review-meta {
  margin-top: 0;
}

/* Embedded tweet */
.finding-tweet {
  max-width: 550px;
  margin-bottom: 48px;
}

.finding-tweet .twitter-tweet {
  margin: 0 !important;
}

/* Writeup body */
.finding-body {
  max-width: 680px;
}

.finding-section {
  margin-bottom: 32px;
}

.finding-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.finding-section p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.finding-section code {
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-text);
}

/* CTA at bottom of finding */
.finding-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.finding-cta p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.reviews-cta {
  text-align: center;
}

.reviews-cta h2 {
  margin-bottom: 12px;
}

.reviews-cta p {
  margin-bottom: 32px;
}

.nav-link-active {
  color: var(--color-text);
}

/* ===== Section Headers ===== */
.section-header {
  margin-bottom: 56px;
}

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

.section-header p {
  max-width: 480px;
}

/* ===== Animations ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-content > * {
  animation: fade-in-up 0.6s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --spacing-section: 72px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .reviews-hero {
    padding-top: 80px;
  }

  .vuln-card {
    padding: 16px 20px;
  }

  .vuln-preview-left {
    gap: 12px;
  }

  .vuln-avatar {
    width: 36px;
    height: 36px;
  }

  .finding-header h1 {
    font-size: 1.5rem;
  }

  .review-item {
    padding: 20px 24px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }

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

  .nav-right {
    gap: 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
