/* =============================================================================
   global.css — usechisel.co
   Shared styles for all pages: tokens, reset, nav, footer, buttons, cards.

   Fonts loaded via Google Fonts in each HTML <head>:
     Sora: 300, 400, 600, 700
     DM Mono: 400, 500
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Brand Tokens
   ----------------------------------------------------------------------------- */
:root {
  --amber:         #F5A623;
  --amber-dim:     rgba(245, 166, 35, 0.15);
  --amber-border:  rgba(245, 166, 35, 0.25);
  --amber-glow:    rgba(245, 166, 35, 0.35);
  --amber-soft:    rgba(245, 166, 35, 0.08);

  --bg:            #080808;
  --surface:       #111111;
  --surface2:      #161616;
  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.12);

  --text:          #FFFFFF;
  --text-dim:      rgba(255, 255, 255, 0.45);
  --text-muted:    rgba(255, 255, 255, 0.25);

  --radius:        16px;
  --radius-sm:     10px;
  --radius-full:   100px;

  --nav-height:    72px;

  --transition:    150ms ease;
  --transition-md: 250ms 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: 'Sora', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

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

button {
  font-family: 'Sora', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* -----------------------------------------------------------------------------
   Amber Top Line
   2px gradient bar — appears at the very top of every page.
   ----------------------------------------------------------------------------- */
.top-line {
  height: 2px;
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent                      0%,
    rgba(245, 166, 35, 0.4)         20%,
    #F5A623                          50%,
    rgba(245, 166, 35, 0.4)         80%,
    transparent                     100%
  );
}

/* -----------------------------------------------------------------------------
   Navigation
   Sticky top bar with blur backdrop.
   ----------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Logo: chisel mark SVG + wordmark */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav__wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Center nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
  transition: color var(--transition);
  white-space: nowrap;
}

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

/* Right CTA */
.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav__hamburger:hover span {
  background: var(--text);
}

/* Hamburger open state */
.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 2px);
  left: 0;
  right: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-menu a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav__mobile-menu a:last-of-type {
  border-bottom: none;
}

.nav__mobile-menu a:hover {
  color: var(--text);
}

.nav__mobile-cta {
  margin-top: 20px;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.btn-primary,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform     var(--transition),
    box-shadow    var(--transition),
    opacity       var(--transition),
    background    var(--transition),
    border-color  var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

/* Primary — amber */
.btn-primary {
  background: var(--amber);
  color: #000000;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.42);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.28);
}

/* Ghost — transparent, faint border */
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* Outline — amber border */
.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.btn-outline:hover {
  background: var(--amber-dim);
  border-color: var(--amber-glow);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* Size modifier */
.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* -----------------------------------------------------------------------------
   Cards
   ----------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition-md);
}

.card:hover {
  border-color: var(--amber-border);
}

/* -----------------------------------------------------------------------------
   Layout Utilities
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 60px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 60px;
}

.container--xs {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 60px;
}

.section {
  padding: 120px 0;
}

.section--sm {
  padding: 80px 0;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
}

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

.section-center .section-sub {
  margin: 0 auto;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* Feature list with amber checkmarks */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* Animated amber badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-full);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.text-amber { color: var(--amber); }

.step-num {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--amber-dim);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 18px;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__mark {
  width: 18px;
  height: 18px;
  opacity: 0.4;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-dim);
}

/* -----------------------------------------------------------------------------
   Prose — legal pages (privacy, terms, security)
   ----------------------------------------------------------------------------- */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 60px 120px;
}

.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.prose .prose-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 52px;
  margin-bottom: 16px;
}

.prose p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 16px;
}

.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.prose ul li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

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

.prose a:hover {
  opacity: 0.8;
}

.prose-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.prose-section:last-child {
  border-bottom: none;
}

/* -----------------------------------------------------------------------------
   Form Elements — upgrade page
   ----------------------------------------------------------------------------- */
.input {
  width: 100%;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  color: var(--text);
  caret-color: var(--amber);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.22), 0 0 20px rgba(245, 166, 35, 0.06);
}

.input.input-error {
  border-color: #FF4444;
}

.error-msg {
  font-size: 13px;
  color: #FF4444;
  margin-top: 8px;
  min-height: 18px;
}

/* -----------------------------------------------------------------------------
   Responsive — Tablet (≤ 900px)
   ----------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    padding: 0 24px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta .btn-primary {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .container,
  .container--narrow,
  .container--xs {
    padding: 0 24px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .section {
    padding: 80px 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 24px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .prose {
    padding: 60px 24px 80px;
  }
}

/* -----------------------------------------------------------------------------
   Responsive — Mobile (≤ 600px)
   ----------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .btn-primary,
  .btn-ghost,
  .btn-outline {
    padding: 13px 22px;
    font-size: 14px;
  }

  .card {
    padding: 24px 20px;
  }
}
