/* ==========================================================================
   BOLTED: ROCK TOOLS - CLEAN & SIMPLE MARKETING STYLES
   Lightweight, authentic climbing aesthetic centered on real app screenshots.
   ========================================================================== */

:root {
  --bg-primary: #0e1217;
  --bg-secondary: #161c24;
  --bg-tertiary: #1f2732;
  --bg-translucent: rgba(14, 18, 23, 0.88);

  --border-subtle: #273342;
  --border-strong: #3b4b5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --color-amber: #f59e0b;
  --color-amber-hover: #d97706;
  --color-cyan: #06b6d4;
  --color-lime: #84cc16;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.15;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* App Store Buttons */
.store-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.app-badge-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--color-amber);
  transform: translateY(-2px);
}

.app-badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-badge-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.1;
}

.app-badge-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-amber);
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.btn-header {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background-color: var(--color-amber);
  color: #12161b;
  transition: all 0.15s ease;
}

.btn-header:hover {
  background-color: var(--color-amber-hover);
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 112, 54, 0.15) 0%, rgba(245, 158, 11, 0.08) 35%, rgba(14, 18, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  max-width: 840px;
  position: relative;
  z-index: 1;
}

/* Authentic Hero Brand Lockup */
.hero-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.hero-logo-mark {
  width: 140px;
  height: 140px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.hero-logo-mark:hover {
  transform: scale(1.05) rotate(-2deg);
}

.hero-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  text-align: left;
}

.hero-title {
  font-size: clamp(3.2rem, 7.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* Sized-up Blocky Logo Typeset for ROCK TOOLS below BOLTED */
.hero-subtitle {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85em;
  margin-top: 0.45rem;
  line-height: 1;
}

.sub-word {
  font-family: "Arial Black", "Segoe UI Black", "Roboto-Black", "sans-serif-black", Impact, sans-serif;
  font-size: clamp(1.25rem, 2.8vw, 1.95rem);
  font-weight: 900;
  color: var(--color-amber);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.word-tools {
  margin-right: -0.18em; /* Compensates for trailing letter-spacing so centering is optically balanced */
}

.hero-headline {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust-item svg {
  color: var(--color-lime);
}

/* Phone Mockup Frame for Real Screenshots */
.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.phone-img:hover {
  transform: translateY(-4px);
}

/* Feature Showcase Sections */
.feature-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-section:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reversed {
  direction: rtl;
}

.feature-grid.reversed > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-amber);
}

.feature-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-point svg {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-amber);
}

.feature-grid.reversed .feature-point svg {
  color: var(--color-cyan);
}

/* Community & TABVAR Banner */
.community-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0b0f14 100%);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.community-card {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.community-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
}

.community-card p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.community-card a.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.community-card a.link-btn:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.community-card a.link-btn.btn-donate {
  background-color: var(--color-amber);
  border-color: var(--color-amber);
  color: #12161b;
}

.community-card a.link-btn.btn-donate:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
  color: #12161b;
  transform: translateY(-1px);
}

.integration-note,
.thanks-note {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Legal / Privacy Policy Styles */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem 1.5rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-amber);
  margin: 1.5rem 0 0.75rem 0;
}

.legal-section p,
.legal-section ul {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-section ul {
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.legal-section a:hover {
  color: var(--color-amber-hover);
}

.legal-note {
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--color-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  color: var(--text-subtle);
  margin: 0.75rem 0 1.25rem 0;
}

/* Footer */
.site-footer {
  background-color: #07090c;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-disclaimer {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .feature-grid.reversed {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
    text-align: center;
  }

  .hero-content,
  .feature-content {
    align-items: center;
  }

  .feature-points {
    text-align: left;
  }

  .store-btn-group,
  .hero-trust-list {
    justify-content: center;
  }

  .phone-img {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .hero-brand-lockup {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-logo-mark {
    width: 105px;
    height: 105px;
  }

  .hero-wordmark {
    align-items: center;
    text-align: center;
  }

  .nav-links, .nav-cta-wrap {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .site-nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    gap: 1rem;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
