/* ATP · Redesigned site — based on the Brackets logo system
   Palette: navy + warm off-white + amber accent
   Type:    Fraunces (display serif) × Inter (geometric sans) */

:root {
  --navy: #0A2540;
  --navy-2: #0E2C4C;
  --ink: #081B30;
  --paper: #F7F4EC;
  --paper-2: #EDE8DC;
  --amber: #C8892B;
  --amber-2: #A96F1D;
  --mute: #6B7A8F;
  --line: rgba(10, 37, 64, 0.12);
  --line-on-navy: rgba(247, 244, 236, 0.14);
  --shadow: 0 1px 3px rgba(8, 27, 48, 0.08), 0 20px 48px -20px rgba(8, 27, 48, 0.2);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ─── Type ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
p  { margin: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--amber);
}

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1240px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo .mark { width: 34px; height: 34px; }
.nav-logo .wordmark {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.15;
}
.nav-logo .wordmark em { font-style: normal; font-weight: 600; display: block; }
.nav-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-size: 14px; color: var(--navy); opacity: 0.75;
  transition: opacity 0.18s ease;
}
.nav-menu a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--navy); color: var(--navy);
  background: transparent; cursor: pointer; border-radius: 2px;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--navy); color: var(--paper); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; padding: 96px 0 120px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 37, 64, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.hero h1 { margin-top: 24px; color: var(--ink); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.hero-lede {
  margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--navy);
  opacity: 0.78; max-width: 540px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 14px 24px; border-radius: 2px; cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary {
  background: var(--navy); color: var(--paper); border: 1px solid var(--navy);
}
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent; color: var(--navy); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

/* Hero side panel — big mark + rotating ticker */
.hero-panel {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--navy); color: var(--paper);
  border-radius: 4px; overflow: hidden;
  padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-panel .giant-mark {
  width: 52%; max-width: 280px;
  align-self: flex-start;
}
.hero-panel .panel-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: rgba(247, 244, 236, 0.6);
  display: flex; justify-content: space-between; border-top: 1px solid var(--line-on-navy); padding-top: 14px;
}


/* Stats strip */
.hero-stats {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats .stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat-number {
  font-family: var(--serif); font-size: 56px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.03em; line-height: 1;
  display: block;
}
.hero-stats .stat-label {
  margin-top: 10px; font-size: 13px; color: var(--mute); line-height: 1.45;
  max-width: 220px;
}

/* ─── Generic section ───────────────────────────────── */
section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { margin-top: 20px; color: var(--ink); }
.section-head p  { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--mute); max-width: 640px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.about-card {
  padding: 48px 36px 56px;
  border-right: 1px solid var(--line);
  position: relative;
}
.about-card:last-child { border-right: 0; }
.about-card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  color: var(--amber); margin-bottom: 32px;
}
.about-card h3 { color: var(--navy); margin-bottom: 14px; }
.about-card p  { color: var(--mute); font-size: 15px; line-height: 1.6; }

/* Exchanges — Flowdesk-style marquee on navy */
.exchanges {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
  padding: 120px 0;
  overflow: hidden;
}
.exchanges .section-head { margin: 0 auto 72px; text-align: center; padding: 0 32px; }
.exchanges .section-head h2 { color: var(--paper); }
.exchanges .section-head p  { color: rgba(247,244,236,0.6); margin-left: auto; margin-right: auto; }
.exchanges .section-head .eyebrow { color: var(--amber); }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee + .marquee { margin-top: 48px; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 88px;
  padding: 24px 0;
  animation: marquee 45s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; animation-duration: 55s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 64px;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.marquee-item:hover { opacity: 1; transform: scale(1.06); }
.marquee-item img { height: 52px; width: auto; display: block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service-card {
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--paper-2); }
.service-card .service-mark { margin-bottom: 28px; }
.service-card h3 { color: var(--navy); margin-bottom: 14px; }
.service-card p  { color: var(--mute); font-size: 15px; line-height: 1.6; }

/* Technology */
.tech { background: var(--navy); color: var(--paper); border-bottom: 0; }
.tech .section-head h2 { color: var(--paper); }
.tech .section-head p  { color: rgba(247, 244, 236, 0.65); }
.tech-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.tech-features {
  list-style: none; padding: 0; margin: 40px 0 0;
  border-top: 1px solid var(--line-on-navy);
}
.tech-features li {
  padding: 18px 0; border-bottom: 1px solid var(--line-on-navy);
  display: flex; gap: 16px; align-items: baseline;
  font-size: 15px; color: rgba(247, 244, 236, 0.85);
}
.tech-features li .idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--amber);
  width: 32px; flex-shrink: 0;
}
.code-block {
  background: var(--ink); border: 1px solid var(--line-on-navy); border-radius: 2px;
  overflow: hidden;
}
.code-header {
  padding: 14px 18px; border-bottom: 1px solid var(--line-on-navy);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px;
}
.code-header .code-title { color: rgba(247, 244, 236, 0.6); }
.code-header .code-status { color: var(--amber); display: flex; align-items: center; gap: 6px; }
.code-header .code-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.code-block pre {
  margin: 0; padding: 24px; font-family: var(--mono); font-size: 13px;
  line-height: 1.7; color: rgba(247, 244, 236, 0.88);
  min-height: 260px; white-space: pre-wrap;
}

/* Contact */
.contact { background: var(--paper); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.contact-card {
  padding: 56px 44px;
  border-right: 1px solid var(--line);
  position: relative;
}
.contact-card:last-child { border-right: 0; }
.contact-card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--amber); margin-bottom: 24px;
}
.contact-card h3 { color: var(--navy); margin-bottom: 12px; }
.contact-card p  { color: var(--mute); font-size: 15px; line-height: 1.6; margin-bottom: 32px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 4px; transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--amber); border-color: var(--amber); }
.contact-email .arrow { transition: transform 0.2s ease; }
.contact-email:hover .arrow { transform: translate(3px, -3px); }

/* Footer */
.footer { padding: 60px 0 48px; background: var(--navy); color: var(--paper); border: 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-on-navy);
}
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; font-size: 14px; color: rgba(247, 244, 236, 0.75); }
.footer .footer-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.footer .footer-logo .mark { width: 40px; height: 40px; }
.footer .footer-logo .wordmark {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--paper); letter-spacing: -0.01em; line-height: 1.15;
}
.footer .footer-logo .wordmark em { font-style: normal; font-weight: 600; display: block; }
.footer .brand-blurb {
  font-size: 14px; color: rgba(247, 244, 236, 0.6); line-height: 1.6; max-width: 320px;
}
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: rgba(247, 244, 236, 0.5);
}

/* Scroll reveal + float animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero h1, .hero-lede, .hero-actions, .hero-stats { animation: fadeUp 1s ease forwards; opacity: 0; }
.hero-lede     { animation-delay: 0.15s; }
.hero-actions  { animation-delay: 0.3s; }
.hero-stats    { animation-delay: 0.45s; }
.hero-panel    { animation: fadeIn 1.2s ease 0.2s forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }

.giant-mark { animation: floaty 6s ease-in-out infinite; display: inline-block; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-card, .service-card, .contact-card { transition: transform 0.3s ease, background 0.2s ease, border-color 0.2s; }
.about-card:hover, .service-card:hover, .contact-card:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .marquee-track { gap: 56px; }
  .marquee-item img { height: 40px; }
  .hero-inner, .tech-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats .stat:last-child { border-bottom: 0; }
  .about-grid, .services-grid, .contact-cards { grid-template-columns: 1fr; }
  .about-card, .service-card, .contact-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .exchange-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exchange-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .exchange-cell:nth-child(2n) { border-right: 0; }
  .nav-menu { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
