/* ==========================================================================
   SkyFaith Technologies — Main Stylesheet
   Dark, confident, Palantir-inspired. Gold accents. No fluff.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-elevated:   #1D1D1D;
  --border:        #2A2A2A;
  --border-subtle: #1E1E1E;

  --text-primary:  #F5F5F5;
  --text-secondary:#B0B0B0;
  --text-muted:    #6B6B6B;

  --gold:          #D4A843;
  --gold-dim:      rgba(212, 168, 67, 0.12);
  --gold-border:   rgba(212, 168, 67, 0.25);
  --blue:          #3B82F6;
  --blue-dim:      rgba(59, 130, 246, 0.10);

  /* Typography */
  --font-head: 'Syne', 'Arial Black', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --max-width: 1160px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section-v: clamp(4rem, 8vw, 7rem);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-base:  250ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0A0A0A;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  transition: background var(--t-fast), transform var(--t-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #e0b84d;
  transform: translateY(-1px);
}

.btn-primary.btn-large {
  font-size: 1rem;
  padding: 0.95rem 2.25rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition: border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  border: 1px solid var(--gold-border);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn-nav:hover {
  background: var(--gold-dim);
  border-color: rgba(212, 168, 67, 0.5);
}

/* --- Section Headers --- */
.section-header {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-header.light h2 {
  color: var(--bg-primary);
}

.section-header.light p {
  color: rgba(10, 10, 10, 0.65);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */

.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--t-base);
}

.nav-header.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

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

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

.nav-links a:not(.btn-nav) {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}

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

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

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0.7rem 0;
  transition: color var(--t-fast);
}

.mobile-nav a:last-child {
  color: var(--gold);
  margin-top: 0.25rem;
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(212, 168, 67, 0.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero stat grid */
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-card.accent {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

.stat-card.wide {
  grid-column: 1 / -1;
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-text strong {
  color: var(--text-primary);
}

/* =========================================================================
   PROOF BAR
   ========================================================================= */

.proof-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.proof-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.proof-item {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.proof-divider {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
}


/* =========================================================================
   SERVICES
   ========================================================================= */

.services {
  padding: var(--section-v) 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color var(--t-base), background var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
}

.services-grid .service-card:nth-child(-n+3) {
  border-top: 2px solid rgba(212, 168, 67, 0.4);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.service-details li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 0.85rem;
  position: relative;
  line-height: 1.4;
}

.service-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.72rem;
  top: 0.1em;
}

/* =========================================================================
   APPROACH
   ========================================================================= */

.approach {
  padding: var(--section-v) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.approach .section-header {
  color: var(--text-primary);
}

.approach-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 1.5rem;
  position: relative;
}

.step:first-child {
  padding-left: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  padding-top: 2.2rem;
  flex-shrink: 0;
  opacity: 0.6;
}

/* =========================================================================
   INDUSTRIES
   ========================================================================= */

.industries {
  padding: var(--section-v) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.industry-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  letter-spacing: 0.01em;
  transition: border-color var(--t-fast), color var(--t-fast);
  cursor: default;
}

.industry-tag:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

/* =========================================================================
   ABOUT
   ========================================================================= */

.about {
  padding: var(--section-v) 0;
  background: var(--bg-primary);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.about-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.about-content p:not(.about-lead) {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-quote {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 4px 4px 0;
}

.about-quote p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold) !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
}

.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* =========================================================================
   CONTACT / CTA
   ========================================================================= */

.contact {
  padding: var(--section-v) 0;
  background: #0D0D0D;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact-chatgpt-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 1.5rem;
  filter: invert(1);
  opacity: 0.7;
}

.contact-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contact-email {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--gold);
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 0.35rem;
  margin-bottom: 1.75rem;
  transition: border-color var(--t-fast), opacity var(--t-fast);
  word-break: break-all;
}

.contact-email:hover {
  border-color: var(--gold);
  opacity: 0.85;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

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

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-markets {
  font-size: 0.72rem;
  color: #444;
}

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

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .approach-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding-top: 0;
    font-size: 1.25rem;
  }

  .step {
    padding: 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    min-width: unset;
  }

  .about-stat {
    flex: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

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

  .footer-links {
    justify-content: center;
  }

  .footer-brand {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    flex-direction: column;
  }

  .proof-inner {
    gap: 1.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .proof-inner::-webkit-scrollbar {
    display: none;
  }

  .proof-divider {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 2rem;
  }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
