/* ============================================
   Clickfyre Ping — style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
  --accent: #0099FF;
  --accent-dark: #007ACC;
  --accent-light: #E6F4FF;
  --text: #111318;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --border: #E5E7EB;
  --border-soft: #F3F4F6;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --bg-chip: #F3F4F6;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: 'Roboto', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-w: 1100px;
  --nav-h: 96px;
}

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

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

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

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

p a,
li a:not(.nav-cta):not([class]) {
  color: var(--accent-dark);
  text-decoration: none;
}

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

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.cf-logotext-1 {
  color: var(--accent);
}

.cf-logotext-2 {
  color: var(--text-muted);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--border);
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
}

.btn-store:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-store .store-icon {
  font-size: 20px;
  line-height: 1;
}

.btn-store .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-store .store-pre {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.btn-store .store-name {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}

.hero-test-link {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

.hero-test-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-screenshot-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9/19;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8edf2 100%);
  border-radius: 32px;
  border: 8px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
}

.hero-screenshot-placeholder::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 0 0 6px 6px;
}

.placeholder-icon {
  font-size: 32px;
}

/* ── Section base ── */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* ── How it works ── */
.how {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-header {
  text-align: center;
  margin-bottom: 56px;
}

.how-header .section-sub {
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.how-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  flex-shrink: 0;
}

.how-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.how-step:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.how-step::before {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--border-soft);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.how-step-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

.how-code {
  margin-top: 48px;
  background: #111318;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.how-code::before {
  content: 'curl example';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 11px;
  color: #4B5563;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.how-code pre {
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 14px;
  color: #E5E7EB;
  line-height: 1.8;
  overflow-x: auto;
}

.how-code .c-green {
  color: #34D399;
}

.how-code .c-blue {
  color: #60A5FA;
}

.how-code .c-yellow {
  color: #FCD34D;
}

.how-code .c-muted {
  color: #6B7280;
}

.copy-btn {
  position: absolute;
  bottom: 16px;
  right: 20px;
  background: #1F2937;
  border: 1px solid #374151;
  color: #9CA3AF;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: #374151;
  color: #E5E7EB;
}

.copy-btn.copied {
  color: #34D399;
  border-color: #34D399;
}

/* ── Use cases ── */
.usecases {
  background: var(--bg);
}

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

.usecases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usecase-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-chip);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}

.usecase-chip:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.usecase-chip .chip-emoji {
  font-size: 15px;
}

.usecases-foot {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.usecases-foot span {
  color: var(--text-muted);
}

/* ── Integrations ── */
.integrations {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.integrations-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.integrations-label {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.integrations-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  transition: color 0.15s, border-color 0.15s;
}

.integration-tag:hover {
  color: var(--text);
  border-color: #9CA3AF;
}

/* ── Pricing ── */
.pricing {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pricing-card-top {
  margin-bottom: 20px;
}

.pricing-badge {
  display: inline-block;
  background: #ECFDF5;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #D1FAE5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pricing-amount span {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.pricing-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.pricing-perks li svg {
  color: #059669;
  flex-shrink: 0;
}

.pricing-faq {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FAQ CTA ── */
.faq-cta {
  background: var(--bg);
  padding: 56px 0;
}

.faq-cta-inner {
  text-align: center;
  max-width: 620px;
}

.faq-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.faq-cta p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.faq-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent-dark);
  background: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.faq-cta a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.15s;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-test-link {
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-screenshot-placeholder {
    max-width: 200px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .how-connector {
    display: none;
  }

  .how-step {
    padding: 24px 20px;
    transform: none !important;
  }

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

  .pricing-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .integrations-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-logo img {
    height: 60px;
    width: 60px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .how-code pre {
    font-size: 12px;
  }
}
