/* ============================================
   LAUNCHKIT — Complete Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #0a0a0a;
  --color-bg-raised: #141414;
  --color-bg-card: #1a1a1a;
  --color-bg-input: #1e1e1e;
  --color-surface: #222222;
  --color-border: #2a2a2a;
  --color-border-light: #333333;
  --color-text: #f5f5f5;
  --color-text-muted: #a0a0a0;
  --color-text-dim: #666666;
  --color-accent: #4f46e5;
  --color-accent-hover: #6366f1;
  --color-accent-glow: rgba(79, 70, 229, 0.25);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* --- 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);
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-raised);
}

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

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  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;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

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

.logo-icon {
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-accent-glow);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 4px 20px var(--color-accent-glow);
  transform: translateY(-1px);
  color: #fff;
}

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

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

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn--loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Product Cards Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 4px 20px var(--color-accent-glow);
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.product-card-image {
  width: 100%;
  height: 180px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-text-dim);
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--color-accent);
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-card-price .current {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-card-price .original {
  font-size: 1rem;
  color: var(--color-text-dim);
  text-decoration: line-through;
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 4rem 1.5rem;
}

.product-detail-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
}

.product-detail-info h1 {
  margin-bottom: 0.75rem;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-detail-price .current {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-detail-price .original {
  font-size: 1.25rem;
  color: var(--color-text-dim);
  text-decoration: line-through;
}

.product-detail-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.product-trust-badges {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.trust-badge-icon {
  font-size: 1rem;
}

/* --- Trust Section --- */
.trust-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.trust-item-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  font-size: 2rem;
}

.trust-item-block h4 {
  font-size: 1rem;
  color: var(--color-text);
}

.trust-item-block p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Free Tool Teaser --- */
.tool-teaser {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), transparent);
  border-radius: var(--radius-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--color-border);
}

.tool-teaser h2 {
  margin-bottom: 0.75rem;
}

.tool-teaser p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* --- Free Tool Page --- */
.tool-page {
  padding: 4rem 1.5rem;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.tool-page h1 {
  margin-bottom: 0.75rem;
}

.tool-intro {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.tool-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color var(--transition);
}

.form-group textarea:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  min-height: 140px;
}

.tool-results {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: none;
}

.tool-results.active {
  display: block;
}

.tool-results h3 {
  margin-bottom: 1rem;
}

.tool-results-content {
  color: var(--color-text-muted);
  line-height: 1.8;
  white-space: pre-wrap;
}

.tool-upsell {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  text-align: center;
}

.tool-upsell h4 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.tool-upsell p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon {
  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: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* --- Static Pages --- */
.page-content {
  padding: 4rem 1.5rem;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.page-content h1 {
  margin-bottom: 0.5rem;
}

.page-content .page-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.page-content li {
  margin-bottom: 0.4rem;
}

/* --- Success Page --- */
.success-page {
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-page h1 {
  margin-bottom: 1rem;
}

.success-page p {
  font-size: 1.1rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  background: var(--color-bg);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

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

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.footer-trust {
  display: flex;
  gap: 1.5rem;
}

.trust-item {
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

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

  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-trust {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .product-detail-inner {
    gap: 1.5rem;
  }

  .product-detail-price .current {
    font-size: 2rem;
  }

  .tool-form {
    padding: 1.25rem;
  }

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

  .btn--large {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .product-trust-badges {
    flex-direction: column;
    gap: 0.75rem;
  }
}
