
/* ==========================================================================
   U.A. — Premium Editorial Design System
   ========================================================================== */

:root {
  --deep-obsidian: #0C0E12;
  --matte-charcoal: #161920;
  --cool-slate-hairline: #252A37;
  --ivory-white: #F3F4F6;
  --architectural-slate: #8992A3;
  --ice-sapphire: #4F6BED;

  --bg: var(--deep-obsidian);
  --surface: var(--matte-charcoal);
  --surface-raised: #1B202A;
  --border: var(--cool-slate-hairline);
  --border-soft: rgba(123,132,148,.24);
  --text: var(--ivory-white);
  --text-muted: var(--architectural-slate);
  --text-small: var(--architectural-slate);
  --accent: var(--ice-sapphire);
  --accent-soft: rgba(79,107,237,.14);
  --hover-bg: rgba(243,244,246,.035);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1100px;
}

[data-theme="light"] {
  --bg: #F3F4F6;
  --surface: rgba(123,132,148,.10);
  --surface-raised: rgba(123,132,148,.16);
  --border: rgba(37,42,55,.16);
  --border-soft: rgba(123,132,148,.36);
  --text: #0C0E12;
  --text-muted: #454D5D;
  --text-small: #626B7C;
  --accent: #4F6BED;
  --accent-soft: rgba(79,107,237,.10);
  --hover-bg: rgba(12,14,18,.035);
}

/* ==========================================================================
   GLOBAL
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.78;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .25s ease, color .25s ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

button {
  font: inherit;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  background: var(--surface-raised);
  color: var(--text);
  padding: .55rem .95rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  z-index: 200;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 76px;
  gap: 1.5rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  font-size: .83rem;
  color: var(--text-muted);
  padding: .4rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.theme-toggle,
.menu-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .77rem;
  padding: .48rem .85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-raised);
  border-color: var(--border-soft);
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   PREMIUM INTRODUCTION HERO
   ========================================================================== */

.hero {
  min-height: 620px;
  padding: 5.5rem 0 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-kicker {
  display: block;
  color: var(--text-small);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  margin-bottom: 2.6rem;
  animation: heroFadeUp .8s ease both;
}

.hero-logo {
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1s ease both;
}

.hero-logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(79,107,237,.12));
}

[data-theme="light"] .hero-logo__image {
  filter: brightness(0) drop-shadow(0 10px 25px rgba(0,0,0,.08));
}

.hero-logo--fallback {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}

.hero-logo--fallback span {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -.09em;
}

.hero-rule {
  width: 46px;
  height: 2px;
  background: var(--accent);
  border: 0;
  margin: 0 0 2rem;
  animation: heroFadeUp 1.1s ease both;
}

.hero-statement {
  max-width: 570px;
  font-size: 1.04rem;
  line-height: 1.95;
  color: var(--text-muted);
  margin: 0 0 2.3rem;
  animation: heroFadeUp 1.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  animation: heroFadeUp 1.3s ease both;
}

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

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .84rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #4059D2;
  border-color: #4059D2;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--surface);
  border-color: var(--border-soft);
}

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */

.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header__kicker {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  margin: 0 0 1.1rem;
}

.page-header__subtitle {
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   EDITORIAL CONTENT
   ========================================================================== */

.band {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.band:last-child {
  border-bottom: none;
}

.editorial-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  align-items: start;
}

.editorial-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: -.02em;
  margin: 0;
  padding-top: .15rem;
}

.editorial-row__body {
  max-width: 660px;
}

.editorial-row__body p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
}

.editorial-row__body p:last-child {
  margin-bottom: 0;
}

.editorial-row__body strong {
  color: var(--text);
}

/* ==========================================================================
   WHY U.A. PILLARS
   ========================================================================== */

.pillar-stack {
  display: flex;
  flex-direction: column;
}

.pillar-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.7rem 0;
  border-bottom: 1px solid var(--border);
}

.pillar-item:first-child {
  padding-top: 0;
}

.pillar-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pillar-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0;
}

.pillar-item__text {
  max-width: 660px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   ACCOUNT INFORMATION
   ========================================================================== */

.account-badge {
  margin-top: 1.7rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .83rem;
}

.account-badge__label {
  font-weight: 500;
  color: var(--text-muted);
}

.account-badge__value {
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   TRACK RECORD
   ========================================================================== */

.month-section {
  margin-bottom: 3rem;
}

.month-section:last-child {
  margin-bottom: 0;
}

.month-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
}

.week-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.week-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  transition: border-color .2s ease;
}

.week-row:hover {
  border-color: var(--border-soft);
}

.week-row__trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.week-row__trigger:hover {
  background: var(--hover-bg);
}

.week-row__date {
  font-weight: 600;
  font-size: .93rem;
}

.week-row__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.result-chip {
  font-size: .73rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.result-chip--green {
  border-color: rgba(79,107,237,.4);
  background: var(--accent-soft);
  color: var(--text);
}

.result-chip--red {
  color: var(--text-muted);
}

.week-row__pnl {
  font-weight: 600;
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}

.week-row__details {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  padding: 1.3rem 0;
}

.metric__label {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.metric__value {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.week-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.week-row__hint {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DEMO EXECUTIONS
   ========================================================================== */

.demo-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  padding: 1rem 1.3rem;
  margin-bottom: 2.2rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.demo-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.demo-card__media {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.demo-card__img {
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
}

.demo-card__body {
  padding: 1.7rem;
}

.demo-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  font-size: .76rem;
  color: var(--text-muted);
  margin-bottom: .7rem;
}

.demo-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 .8rem;
}

.demo-card__explanation {
  color: var(--text-muted);
  margin: 0;
  white-space: pre-line;
  max-width: 700px;
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2rem;
  max-width: 620px;
}

.empty-state__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 0 0 .5rem;
}

.empty-state__text {
  color: var(--text-muted);
  font-size: .91rem;
  margin: 0;
}

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

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 560px;
}

.contact-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 .6rem;
}

.contact-panel__text {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
}

.contact-panel__link {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: .2rem;
  transition: color .2s ease;
}

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

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  font-size: .8rem;
  color: var(--text-muted);
}

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

.footer-email {
  transition: color .2s ease;
}

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

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

@media (max-width: 880px) {
  .editorial-row,
  .pillar-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem 1.75rem 1.6rem;
    gap: .9rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-controls {
    gap: .8rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 530px;
    padding: 4rem 0 3.5rem;
  }

  .hero-kicker {
    font-size: .65rem;
    margin-bottom: 2rem;
  }

  .hero-logo {
    width: 205px;
    height: 205px;
    margin-bottom: 2rem;
  }

  .hero-statement {
    font-size: .94rem;
    padding: 0 .3rem;
  }

  .page-header {
    padding: 3.5rem 0 2.3rem;
  }

  .band {
    padding: 2.8rem 0;
  }

  .week-row__trigger {
    padding: 1rem;
  }

  .week-row__details {
    padding: 0 1rem 1rem;
  }

  .demo-card__body {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 490px;
  }

  .hero-logo {
    width: 175px;
    height: 175px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-header__title {
    font-size: 2.15rem;
  }

  .week-row__summary {
    width: 100%;
    justify-content: space-between;
  }

  .week-row__actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
