/*
 * Angaros Fintech Solutions design system.
 * Editorial-technical: near-white paper, ink navy, ember accent,
 * Inter (sans) + JetBrains Mono (technical labels).
 * All colors use oklch. Ported 1:1 from the Tailwind-based build.
 */

:root {
  --radius: 0.125rem;
  --background: oklch(0.993 0.002 106);
  --foreground: oklch(0.208 0.042 265.755);
  --surface: oklch(0.984 0.003 247.858);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.705 0.187 47.6);
  --accent-foreground: oklch(0.993 0.002 106);
  --border: oklch(0.929 0.013 255.508);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --max-w: 80rem; /* max-w-7xl */

  /* Logo-derived heading colors. Primary uses the wordmark's near-black
     charcoal (barely darker than --foreground, so the shift is subtle);
     secondary uses the logo's muted brick maroon rather than its more
     saturated crimson, so dozens of small card headings don't read as loud. */
  --heading-primary: #302d2c;
  --heading-secondary: #932b26;

  /* Explicit navy for button backgrounds — --foreground reads as neutral
     charcoal, not a visible blue, so buttons need their own color. */
  --btn-navy: #101b33;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
}

::selection {
  background-color: color-mix(in oklab, var(--accent) 20%, transparent);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Primary headings (page titles, section headings) vs secondary
   (card-level titles) get distinct logo colors. .eyebrow/.text-accent
   labels keep the orange accent — their class specificity wins over
   these bare-tag rules regardless of source order. */
h1,
h2 {
  color: var(--heading-primary);
}

h3,
h2.card-title {
  color: var(--heading-secondary);
}

/* Dark sections (bg-ink) still need light headings for contrast. */
.bg-ink h1,
.bg-ink h2,
.bg-ink h3,
.bg-ink h2.card-title {
  color: var(--background);
}

/* Accent-label heading treatment (mono, uppercase, orange) — used where a
   heading should read like the site's eyebrow labels but at full heading
   size. Selector specificity is raised via .section so it wins over the
   .bg-ink override above, since some of these headings sit on dark bands. */
.section h2.accent-label {
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.border-t {
  border-top: 1px solid var(--border);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-ink {
  background-color: var(--foreground);
  color: var(--background);
}

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
}

.mono {
  font-family: var(--font-mono);
}

.fade-up {
  animation: fade-up 0.8s var(--ease-expo) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-scrollbar {
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.btn {
  display: inline-block;
  background-color: var(--btn-navy);
  color: var(--background);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background-color 0.2s;
  border-radius: 0.75rem;
  border: none;
}
.btn:hover {
  background-color: var(--accent);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .brand-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header img {
  height: 4.5rem;
  width: auto;
}

.site-nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 0.25rem;
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 1rem 1.5rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer img {
  height: 4rem;
  width: auto;
}

.footer-copy {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

@media (min-width: 768px) {
  .site-footer .wrap {
    flex-direction: row;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding-block: 5rem 5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

.badge {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
  background-color: color-mix(in oklab, var(--accent) 5%, transparent);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.badge-dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}
.badge-dot::before,
.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--accent);
}
.badge-dot::before {
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: 2.25rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero h1 .muted {
  color: color-mix(in oklab, var(--muted-foreground) 40%, transparent);
}

/* Flowing headline gradient (maroon -> orange -> black), used on every
   page's main heading. inline-block so the gradient sizes to each line's
   own text width rather than the full (much wider) heading box. */
h1 .gradient-line,
h1 .solid-line {
  display: inline-block;
}

h1 .gradient-line {
  background: linear-gradient(to right, var(--heading-secondary) 0%, var(--accent) 50%, var(--heading-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* The closing word of long sentence headings: nested inline (not
   inline-block) inside .gradient-line so it flows with the surrounding
   text and stays on the same line, but "punches out" of the parent's
   gradient clip with its own solid color — guaranteed black regardless
   of where the sentence happens to wrap. */
h1 .gradient-line .solid-word {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--heading-primary);
  -webkit-text-fill-color: var(--heading-primary);
}

.hero > .hero-grid > .hero-copy > p {
  max-width: 36rem;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.hero-cta {
  margin-top: 2.5rem;
}

.hero-stats {
  border-left: 1px solid var(--border);
  padding-block: 0.5rem;
  padding-left: 2rem;
}

.hero-stats .stat + .stat {
  margin-top: 1.5rem;
}

.hero-stats .stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-stats .stat-label {
  margin-top: 0.25rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .hero-copy {
    grid-column: span 8 / span 8;
  }
  .hero-stats {
    grid-column: span 4 / span 4;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: 5rem 4rem;
}

.page-hero .eyebrow {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  max-width: 56rem;
  font-size: 2.25rem;
  line-height: 1.05;
}

.page-hero p {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .page-hero h1 {
    font-size: 3.25rem;
  }
}

/* ---------- Section headers ---------- */

.section {
  padding-block: 6rem;
}

.section-head {
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head .rule {
  flex: 1 1 auto;
  height: 1px;
  background-color: var(--border);
  margin-inline: 2rem;
  margin-bottom: 0.375rem;
}

.section-head .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.section h2.title-lg {
  font-size: 1.875rem;
  margin-bottom: 4rem;
}

/* ---------- Card grids ---------- */

.card-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background-color: var(--border);
}

.card {
  position: relative;
  background-color: var(--background);
  padding: 2rem;
  transition: background-color 0.2s;
}
.card:hover {
  background-color: var(--surface);
}

.card .n {
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.card h3,
.card h2.card-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.card-bar {
  height: 4px;
  width: 0;
  background-color: var(--accent);
  transition: width 0.5s;
}
.card:hover .card-bar {
  width: 100%;
}

.card-fill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background);
  padding: 2rem;
}
.card-fill p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.card-fill .link-arrow {
  margin-top: 2rem;
  align-self: flex-start;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tech-line {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

/* ---------- Lifecycle (horizontal scroll) ---------- */

.lifecycle-scroll {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding-bottom: 3rem;
}

.lifecycle-item {
  min-width: 300px;
  flex-shrink: 0;
}

.lifecycle-item .phase {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
}

.lifecycle-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.lifecycle-item p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Industries dark band ---------- */

.industries-intro {
  max-width: 40rem;
  margin-bottom: 3.5rem;
}

.industries-intro h2 {
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
}

.industries-intro p {
  color: color-mix(in oklab, var(--background) 60%, transparent);
}

/* ---------- Industry cards (hover-reveal) ---------- */

.industry-cards {
  display: grid;
  gap: 1px;
  background-color: color-mix(in oklab, var(--background) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--background) 12%, transparent);
}

.industry-card {
  position: relative;
  background-color: var(--foreground);
  padding: 2rem;
  transition: background-color 0.25s;
}

.industry-card:hover {
  background-color: color-mix(in oklab, var(--foreground) 80%, var(--background) 8%);
}

.industry-icon {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.industry-icon svg {
  height: 1.75rem;
  width: 1.75rem;
}

.industry-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
}

.industry-card p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--background) 60%, transparent);
}

.industry-tags-reveal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-expo), opacity 0.25s, margin-top 0.3s;
}

.industry-card:hover .industry-tags-reveal,
.industry-card:focus .industry-tags-reveal,
.industry-card:focus-within .industry-tags-reveal {
  margin-top: 1.25rem;
  max-height: 6rem;
  opacity: 1;
}

.industry-tags-reveal .tag {
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

@media (min-width: 640px) {
  .industry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .industry-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Why us grid ---------- */

.why-grid {
  display: grid;
  gap: 2.5rem 3rem;
}

.why-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.why-grid p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  padding-block: 5rem;
}

.cta-band .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 36rem;
  font-size: 1.875rem;
}

.cta-band p {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .cta-band .wrap {
    flex-direction: row;
    align-items: flex-end;
  }
  .cta-band h2 {
    font-size: 2.25rem;
  }
}

/* ---------- Two-column generic sections ---------- */

.split {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .split.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split h2.label {
  margin-bottom: 1.5rem;
  font-size: inherit;
}

.split .lede {
  font-size: 1.25rem;
  line-height: 1.6;
}

.presence-item + .presence-item {
  margin-top: 2rem;
}

.presence-item {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.cert-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--background) 70%, transparent);
}

@media (min-width: 640px) {
  .cert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Mobile apps (dark band) ---------- */

.apps-grid {
  display: grid;
  gap: 2rem;
}

.app-card {
  border: 1px solid color-mix(in oklab, var(--background) 20%, transparent);
  padding: 2rem;
}

.app-card .tag {
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.app-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.app-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--background) 60%, transparent);
}

@media (min-width: 768px) {
  .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Platform badge row (staff augmentation) ---------- */

.platform-head {
  margin-bottom: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.platform-head h2 {
  font-size: 2.25rem;
}

.in-dev-badge {
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ---------- Contact ---------- */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info .field-label {
  margin-bottom: 0.5rem;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  padding: 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: inherit;
  outline: none;
}

.contact-form select {
  color: var(--muted-foreground);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  align-self: center;
  border: none;
  background-color: var(--btn-navy);
  color: var(--background);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 0.75rem;
  transition: background-color 0.2s;
}
.contact-form button:hover {
  background-color: var(--accent);
}

.form-sent {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}
.form-sent.visible {
  display: block;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - 4rem - 10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.5rem;
  text-align: center;
}

.error-page .code {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.error-page h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-page p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.error-page .btn {
  margin-top: 1.5rem;
}
