/* ============================================================
   APSIS International — Website Stylesheet
   Palette: #1A1A2E (navy) · #0F3460 (strong blue) · #4A9EE8 (accent)
   Font: Inter (Google Fonts)
   Character: precision instrument, not startup
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1A1A2E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: #1A1A2E; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: #3a3f5a; }

a { color: #4A9EE8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--dark {
  background: #1A1A2E;
  color: #e8eaf2;
}

.section--dark h2,
.section--dark h3 { color: #ffffff; }

.section--dark p { color: #9aa3c2; }

.section--mid {
  background: #F5F6F8;
}

/* ---------- Section Labels ---------- */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4A9EE8;
  margin-bottom: 1rem;
}

.section--dark .section-label { color: #4A9EE8; }

.section-intro {
  font-size: 1.1rem;
  color: #5a6080;
  max-width: 640px;
  margin-top: 1rem;
}

.section--dark .section-intro { color: #7a85a8; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e4e6ef;
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 28px;
  display: block;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #3a3f5a;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: #1A1A2E;
  text-decoration: none;
}

.nav-cta {
  background: #1A1A2E;
  color: #ffffff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
}

.nav-cta:hover { background: #0F3460; text-decoration: none !important; }

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1A1A2E;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: #1A1A2E;
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
}

/* Subtle topo-line texture — no gradients, no glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(74,158,232,0.04) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(74,158,232,0.04) 60px
    );
  pointer-events: none;
}

.hero-orbital {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0.07;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4A9EE8;
  margin-bottom: 1.5rem;
}

.hero h1 { color: #ffffff; margin-bottom: 1.5rem; }

.hero h1 em {
  font-style: normal;
  color: #4A9EE8;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.75rem;
}

.hero-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn--primary {
  background: #4A9EE8;
  color: #ffffff;
}
.btn--primary:hover { background: #3a8cd8; text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { color: #ffffff; border-color: rgba(255,255,255,0.5); text-decoration: none; }

/* ---------- Positioning / What We Are ---------- */
.positioning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.positioning-statement {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1.7;
  border-left: 3px solid #4A9EE8;
  padding-left: 1.5rem;
}

.positioning-detail { font-size: 0.95rem; line-height: 1.8; }
.positioning-detail p + p { margin-top: 1rem; }

/* ---------- Gap we fill ---------- */
.gap-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.gap-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1.75rem;
}

.gap-card h3 { font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; }

.gap-card p { font-size: 0.9rem; line-height: 1.7; }

.gap-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #4A9EE8;
}

.gap-divider svg { opacity: 0.6; }

.gap-divider span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4A9EE8;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  margin-top: 3rem;
  background: #e4e6ef;
  border: 1px solid #e4e6ef;
}

.service-card {
  background: #ffffff;
  padding: 2rem;
  transition: background 0.15s;
}

.service-card:hover { background: #f8f9fc; }

.service-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #4A9EE8;
  margin-bottom: 0.75rem;
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.service-card p { font-size: 0.9rem; line-height: 1.7; }


/* ---------- Founders ---------- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.founder-card {
  border-top: 2px solid #4A9EE8;
  padding-top: 1.5rem;
}

.founder-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A9EE8;
  margin-bottom: 1rem;
}

.founder-base {
  font-size: 0.8rem;
  color: #8a93b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.founder-card p { font-size: 0.9rem; line-height: 1.75; }

/* ---------- Markets ---------- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}

.market-item {
  background: #1A1A2E;
  padding: 1.5rem;
}

.market-item h3 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.market-item p { font-size: 0.83rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-detail {
  font-size: 0.9rem;
  line-height: 2;
}

.contact-detail a { color: #4A9EE8; }

.contact-locations {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-loc {
  font-size: 0.85rem;
  color: #5a6080;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.contact-loc strong {
  font-weight: 600;
  color: #1A1A2E;
  min-width: 100px;
}

/* ---------- Footer ---------- */
.footer {
  background: #111224;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img { height: 22px; opacity: 0.7; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

.footer-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ---------- Multiplier Block ---------- */
.multiplier-block {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e4e6ef;
}

.multiplier-headline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.multiplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.multiplier-item {
  border-left: 2px solid #4A9EE8;
  padding-left: 1.25rem;
}

.multiplier-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A9EE8;
  margin-bottom: 0.5rem;
}

.multiplier-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #5a6080;
}

/* ---------- Tech Network Note ---------- */
.tech-network-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #F5F6F8;
  border-radius: 4px;
  border-left: 3px solid #4A9EE8;
}

.tech-network-note p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #5a6080;
}

/* ---------- Divider ---------- */
.rule {
  border: none;
  border-top: 1px solid #e4e6ef;
  margin: 3rem 0;
}

.rule--dark { border-color: rgba(255,255,255,0.06); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e4e6ef;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
    gap: 0;
  }

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

  .nav-links a {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #f0f1f7;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-cta {
    margin: 0.5rem 2rem;
    text-align: center;
    border-radius: 3px;
  }

  .nav-toggle { display: flex; }

  .positioning-grid,
  .contact-block { grid-template-columns: 1fr; gap: 2rem; }

  .gap-row {
    grid-template-columns: 1fr;
  }

  .gap-divider { flex-direction: row; writing-mode: horizontal-tb; }
  .gap-divider span { writing-mode: horizontal-tb; }

  .hero { padding: 8rem 0 5rem; }
  .hero-orbital { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
