/* Algebra Capital — External Stylesheet */
@font-face {
  font-family: 'Cenios';
  src: url('assets/fonts/Cenios-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #C8102E;
  --red-dark: #9a0b22;
  --red-light: #e8203e;
  --black: #0a0a0a;
  --off-white: #f5f3ef;
  --white: #ffffff;
  --gray-100: #f0ede8;
  --gray-200: #ddd9d2;
  --gray-400: #9a9590;
  --gray-600: #5a5550;
  --gray-800: #2a2520;
  --navy: #0d1b2a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

em, i { font-style: normal; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 72px;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: rgba(245, 243, 239, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: lowercase;
}

.logo-mark {
  font-family: 'Cenios', sans-serif;
  font-size: 44px;
  font-weight: 200;
  color: var(--red);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.logo-mark .logo-sup {
  font-size: 0.65em;
  line-height: 1;
  margin-left: 0.02em;
}

nav.scrolled .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'Roboto', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  background: var(--red);
  padding: 8px 22px;
  transition: background 0.2s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark); color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-math-bg {
  position: absolute;
  inset: 0;
  background-color: var(--off-white);
  background-image: url('assets/hero-math.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.78) 50%, rgba(255,255,255,0.85) 100%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(200,16,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-left {}

.hero-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--red);
}

.hero-headline {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero-headline em {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.15em;
  color: var(--red);
}

.hero-subtext {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.btn-primary {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: var(--red);
  padding: 14px 32px;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-ghost {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--red); }
.btn-ghost .arrow { font-size: 1.1rem; transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.hero-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeRight 0.9s ease 0.7s forwards;
}

.mottos-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2.5rem;
  position: relative;
  box-shadow: 8px 8px 0 var(--gray-200);
}

.mottos-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--red);
}

.mottos-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.motto-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gray-800);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: color 0.2s;
  cursor: default;
}

.motto-item:last-child { border-bottom: none; }
.motto-item:hover { color: var(--red); }

.motto-item::before {
  content: '—';
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: var(--red);
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── STATS TICKER ── */
.ticker-bar {
  background: var(--black);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-track {
  display: flex;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-item .up { color: #22c55e; }
.ticker-item .down { color: var(--red); }
.ticker-sym { color: var(--white); font-weight: 400; }

/* ── SECTION BASE ── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4vw;
}

.section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.5rem;
}

/* ── ABOUT US ── */
#about {
  background: var(--white);
  max-width: 100%;
  padding: 8rem 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 7rem;
  align-items: start;
}

.about-left { position: sticky; top: 120px; }

.about-big-quote {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 300;
  color: var(--black);
  line-height: 1.5;
  border-left: 4px solid var(--red);
  padding-left: 2rem;
  margin-top: 2rem;
}

.about-big-quote strong {
  font-style: normal;
  color: var(--red);
  font-weight: 400;
}

.about-section,
.values-section {
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
}

.about-right {}

.about-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.about-intro strong {
  color: var(--black);
  font-weight: 500;
}

.disclosure-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  padding: 2rem;
  margin-top: 3rem;
}

.disclosure-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.disclosure-item {
  margin-bottom: 1rem;
}

.disclosure-item h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.disclosure-item p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
}

.disclosure-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.disclosure-warning {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ── VALUES ── */
#values {
  background: var(--black);
  max-width: 100%;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

#values::before {
  content: 'AC';
  position: absolute;
  font-family: 'Roboto', sans-serif;
  font-size: 30vw;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.values-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
  position: relative;
  z-index: 1;
}

.values-header {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
}

.values-header .section-label { color: var(--red); }
.values-header .section-title { color: var(--white); }

.values-header-right {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.values-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 5rem;
}

.pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}

.pillar:hover {
  background: rgba(255,255,255,0.06);
}

.pillar:hover::after { width: 100%; }

.pillar-num {
  font-family: 'Roboto', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pillar-body {
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

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

.principle {
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: background 0.2s;
}

.principle:hover { background: rgba(255,255,255,0.03); }

.principle-icon {
  width: 36px; height: 36px;
  background: rgba(200,16,46,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.principle-icon svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 1.5; }

.principle-text h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.principle-text p {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

/* ── FOOTER ── */
footer {
  background: var(--white);
  padding: 3rem 4vw;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}

.footer-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.75rem;
  text-transform: lowercase;
}

.footer-tagline {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.footer-disclaimer {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── RESPONSIVE (mobile-first enhancements) ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding: 4rem 4vw 3rem;
  }
  .hero-right { display: none; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-left { position: static; }
  .values-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .values-pillars { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 5rem 4vw; }
  #about { padding: 5rem 0; }
  #values { padding: 5rem 0; }
  .values-inner { padding: 0 4vw; }
  .ticker-item { padding: 0 2rem; font-size: 0.65rem; }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-subtext { font-size: 0.95rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  nav { padding: 0 4vw; height: 64px; }
  .nav-logo { font-size: 1rem; }
  .logo-mark { font-size: 34px; }
  section { padding: 3rem 4vw; }
  #about, #values { padding: 3rem 0; }
  .about-big-quote { font-size: 1.25rem; padding-left: 1.25rem; }
  .disclosure-box { padding: 1.25rem; }
  .pillar { padding: 1.5rem; }
  .pillar-title { font-size: 1.1rem; }
  .principle { padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.75rem; }
  .principle-icon { width: 32px; height: 32px; }
  .footer-disclaimer { font-size: 0.65rem; }
  .ticker-bar { height: 38px; }
  .mottos-card { padding: 1.5rem; }
}

@media (max-width: 400px) {
  .section-title { font-size: 1.5rem; }
  .hero-headline { font-size: clamp(1.75rem, 10vw, 2.2rem); }
}
