/* ============================================================
   Bashdoor Technologies LLC — global stylesheet (light / minimal)
   Shared by index.html, privacy.html, terms.html
   ------------------------------------------------------------
   1. Design tokens        8. Services / Why
   2. Base & reset         9. Tech stack (+ logo animation)
   3. Layout              10. Process
   4. Navbar              11. CTA
   5. Buttons             12. Footer + payments
   6. Hero                13. Legal pages
   7. Section headers     14. Animations / Responsive
   ============================================================ */

/* 1. DESIGN TOKENS ------------------------------------------ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --border: rgba(15, 18, 25, 0.12);
  --border-strong: rgba(15, 18, 25, 0.28);
  --text: #0e1015;
  --text-soft: #4b5563;
  --text-muted: #9aa1ac;
  --accent: #4f46e5;
  --accent-2: #0891b2;
  --accent-3: #7c3aed;
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 48%, #0891b2 100%);
  --font-display: 'Geist', sans-serif;
  --font-body: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

/* 2. BASE & RESET ------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(55% 28% at 50% 0%, rgba(79, 70, 229, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(79, 70, 229, 0.18); color: var(--text); }

/* 3. LAYOUT ------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* 4. NAVBAR ------------------------------------------------- */
nav {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  z-index: 100;
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--grad);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 9px 18px;
  background: var(--text);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

nav a.back { color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
nav a.back:hover { color: var(--text); }

/* 5. BUTTONS ------------------------------------------------ */
.btn-primary {
  padding: 15px 28px;
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 0 var(--accent); }

.btn-secondary {
  padding: 15px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

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

/* 6. HERO --------------------------------------------------- */
.hero { padding: 104px 0 88px; position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 30px;
  font-family: var(--font-mono);
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 86px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 1060px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .underline { position: relative; display: inline-block; }

.hero h1 .underline::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.5;
  z-index: -1;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 44px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-decoration {
  position: absolute;
  top: 88px; right: 32px;
  width: 230px; height: 230px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-decoration svg { width: 100%; height: 100%; }

/* 7. SECTION HEADERS --------------------------------------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(33px, 5vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 820px;
}

.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 56px;
}

/* 8. SERVICES / WHY ---------------------------------------- */
.services { padding: 96px 0; border-top: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-item {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.25s;
}

.service-item:hover { background: var(--surface-2); }

.service-number { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 18px; letter-spacing: 0.08em; }

.service-icon {
  width: 46px; height: 46px;
  margin-bottom: 22px;
  padding: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.service-item h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 10px; }
.service-item p { color: var(--text-soft); font-size: 15px; line-height: 1.65; }

/* About us */
.about { padding: 96px 0; border-top: 1px solid var(--border); }
.about-text { max-width: 720px; font-size: 19px; line-height: 1.7; color: var(--text-soft); margin-bottom: 48px; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.about-fact { background: var(--surface); padding: 32px 30px; transition: background 0.25s; }
.about-fact:hover { background: var(--surface-2); }
.about-fact .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.about-fact .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.about-fact .s { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* 9. TECH STACK (+ logo animation) ------------------------- */
.tech { padding: 96px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tech-chip:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 0 rgba(79, 70, 229, 0.18);
}

/* Logos: gentle continuous float, staggered; brighten + pop on hover */
.tech-chip img {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  animation: logoFloat 3s ease-in-out infinite;
  transition: filter 0.2s;
}

.tech-chip:hover img { filter: drop-shadow(0 4px 9px rgba(79, 70, 229, 0.45)); }

.tech-chip:nth-child(1) img  { animation-delay: 0s; }
.tech-chip:nth-child(2) img  { animation-delay: 0.15s; }
.tech-chip:nth-child(3) img  { animation-delay: 0.3s; }
.tech-chip:nth-child(4) img  { animation-delay: 0.45s; }
.tech-chip:nth-child(5) img  { animation-delay: 0.6s; }
.tech-chip:nth-child(6) img  { animation-delay: 0.75s; }
.tech-chip:nth-child(7) img  { animation-delay: 0.9s; }
.tech-chip:nth-child(8) img  { animation-delay: 1.05s; }
.tech-chip:nth-child(9) img  { animation-delay: 1.2s; }
.tech-chip:nth-child(10) img { animation-delay: 1.35s; }
.tech-chip:nth-child(11) img { animation-delay: 1.5s; }

/* 10. PROCESS ---------------------------------------------- */
.process { padding: 96px 0; }

.steps { display: flex; flex-direction: column; margin-top: 52px; }

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 36px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.step-content h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text); }
.step-content p { font-size: 16px; color: var(--text-soft); line-height: 1.65; max-width: 640px; }

/* 11. CTA -------------------------------------------------- */
.cta-section { padding: 116px 0; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--border); }

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, transparent 66%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section .container { position: relative; }

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 820px;
  margin-left: auto; margin-right: auto;
  color: var(--text);
}

.cta-section h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-section p { font-size: 18px; color: var(--text-soft); margin-bottom: 38px; max-width: 560px; margin-left: auto; margin-right: auto; }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 12. FOOTER + PAYMENTS ------------------------------------ */
footer { background: var(--bg-soft); border-top: 1px solid var(--border); color: var(--text); padding: 68px 0 34px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }

.footer-brand .logo { color: var(--text); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 320px; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

/* Payment badges */
.footer-pay {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 6px;
}

.footer-pay-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

.pay-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.pay-badge {
  height: 30px;
  min-width: 48px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.pay-badge.visa { color: #1a1f71; font-style: italic; }
.pay-badge.amex { color: #006fcf; }
.pay-badge.stripe { color: #635bff; font-size: 14px; }
.pay-badge.mc { gap: 0; padding: 0 10px; }
.pay-badge.mc .c { width: 16px; height: 16px; border-radius: 50%; }
.pay-badge.mc .c1 { background: #eb001b; }
.pay-badge.mc .c2 { background: #f79e1b; margin-left: -7px; mix-blend-mode: multiply; }

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

.footer-legal { font-size: 12px; color: var(--text-muted); line-height: 1.7; font-family: var(--font-mono); }
.footer-legal strong { color: var(--text-soft); font-weight: 500; }
.footer-meta { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); text-align: right; }

/* 13. LEGAL PAGES (scoped under body.legal) ---------------- */
.legal .content { padding: 64px 0; position: relative; }
.legal .content .container { max-width: 760px; }
.legal .eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 16px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 58px); line-height: 1.03; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--text); }
.legal .lead { font-size: 18px; color: var(--text-soft); margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.legal h2 { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; margin-top: 54px; margin-bottom: 16px; color: var(--text); }
.legal h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: var(--text); }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 16px; line-height: 1.7; }
.legal ul, .legal ol { margin-left: 24px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(79, 70, 229, 0.4); transition: color 0.2s; }
.legal a:hover { color: var(--accent-3); }
.legal .contact-box { background: var(--surface-2); border: 1px solid var(--border); padding: 32px; margin-top: 48px; font-family: var(--font-mono); font-size: 14px; line-height: 1.8; color: var(--text-soft); }
.legal .contact-box strong { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 12px; }
.legal .notice-box { background: var(--surface-2); border-left: 3px solid var(--accent); padding: 20px 24px; margin: 24px 0; color: var(--text-soft); }
.legal .notice-box strong { color: var(--text); }
.legal footer { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding: 40px 0; margin-top: 72px; }
.legal footer a { color: var(--text-soft); border: none; text-decoration: none; }
.legal footer a:hover { color: var(--text); }

/* 14. ANIMATIONS / RESPONSIVE ------------------------------ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero h1, .hero-sub, .hero-cta, .hero-eyebrow { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-eyebrow { animation-delay: 0s; }
.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .tech-chip img { animation: none; }
}

@media (max-width: 900px) {
  .hero-decoration { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 44px; }
  .services, .tech, .process, .about { padding: 60px 0; }
  .cta-section { padding: 76px 0; }
  .services-grid, .about-facts { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-meta { text-align: left; }
  .footer-bottom { flex-direction: column; }
}
