/* Delexn Traders LLC */

:root {
  --bg: #070606;
  --bg-elev: #0d0b0b;
  --cream: #f3efe9;
  --muted: #8f8884;
  --red: #9c1c1c;
  --red-deep: #5c1010;
  --red-hover: #b42323;
  --line: rgba(156, 28, 28, 0.4);
  --hair: rgba(243, 239, 233, 0.1);
  --nav-h: 80px;
  --wrap: 1120px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: #e8d0d0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1, h2, h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: #e8d8d4;
}

.wrap {
  width: min(calc(100% - 64px), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  background: var(--red);
  color: var(--cream);
  padding: 8px 14px;
}

.skip-link:focus {
  top: 12px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.is-scrolled,
.nav.is-solid {
  background: rgba(7, 6, 6, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hair);
}

.nav-inner {
  width: min(calc(100% - 64px), var(--wrap));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 0;
}

.wordmark:hover {
  opacity: 0.82;
}

.wordmark-img {
  display: block;
  width: auto;
  max-width: none;
}

.wordmark-img--nav {
  height: 26px;
}

.wordmark-img--footer {
  height: 48px;
}

.mark-img {
  display: block;
  width: auto;
  height: 30px;
}

.wordmark--footer .mark-img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: #c4bdb7;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cream);
}

.nav-cta {
  color: var(--cream) !important;
  border: 1px solid rgba(156, 28, 28, 0.7);
  padding: 8px 16px;
}

.nav-cta:hover {
  background: var(--red);
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--cream);
  margin: 6px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(243, 239, 233, 0.28);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #070606 0%,
      #070606 40%,
      rgba(7, 6, 6, 0.82) 50%,
      rgba(7, 6, 6, 0.28) 66%,
      rgba(20, 6, 6, 0.38) 100%),
    linear-gradient(180deg,
      rgba(7, 6, 6, 0.2) 0%,
      transparent 30%,
      rgba(7, 6, 6, 0.4) 82%,
      #070606 100%),
    linear-gradient(155deg,
      transparent 42%,
      rgba(92, 16, 16, 0.34) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0 96px;
  max-width: 720px;
  margin-left: max(32px, calc((100% - var(--wrap)) / 2));
  margin-right: auto;
  width: min(calc(100% - 64px), 720px);
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c45c5c;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: #c8c0b8;
  max-width: 34rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7a746e;
}

/* Sections */
.section {
  position: relative;
  padding: 120px 0;
}

.section + .section {
  border-top: 1px solid var(--hair);
}

.section-head {
  margin-bottom: 64px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.about-copy .lede {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 24px;
}

.principles {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}

.principles li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hair);
}

.principles span,
.curriculum-list span,
.steps span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #c45c5c;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.principles strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 6px;
}

.principles p {
  font-size: 0.92rem;
}

/* Curriculum */
.curriculum-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}

.curriculum-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 16px;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
}

.curriculum-list h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.curriculum-list p {
  font-size: 0.95rem;
}

/* Process */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.steps h3 {
  font-size: 1.7rem;
  margin: 20px 0 12px;
}

.steps p {
  font-size: 0.95rem;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.faq .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

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

.acc-item {
  border-bottom: 1px solid var(--hair);
}

.acc-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 400;
}

.acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 22px 0;
  color: var(--cream);
  font-size: 1.05rem;
}

.acc-btn:hover,
.acc-btn:focus-visible {
  color: #e8d0d0;
}

.acc-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.4em;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: #c45c5c;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s, transform 0.25s;
}

.acc-icon::before {
  width: 12px;
  height: 1px;
}

.acc-icon::after {
  width: 1px;
  height: 12px;
}

.acc-btn[aria-expanded="true"] .acc-icon::after {
  opacity: 0;
}

.acc-panel {
  padding: 0 36px 22px 0;
}

.acc-panel a {
  color: #d4a0a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Apply */
.apply {
  background:
    linear-gradient(180deg, #070606 0%, #120808 100%);
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
}

.apply-copy h2 {
  margin-bottom: 20px;
}

.apply-copy p {
  max-width: 36rem;
}

.apply-copy p a {
  color: #d4a0a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-copy p a:hover {
  color: var(--cream);
}

.apply-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
}

.apply-contact a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a0a0;
}

.apply-contact a:hover {
  color: var(--cream);
}

.apply-contact a[href^="mailto:"] {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.apply-form {
  border-top: 1px solid var(--hair);
  padding-top: 8px;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c45c5c;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  color: var(--cream);
  padding: 12px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5c5754;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--red);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-fine {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #6e6965;
}

.form-success {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.form-success strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 8px;
}

.form-success a {
  color: #d4a0a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-form.is-sent .btn,
.apply-form.is-sent .field,
.apply-form.is-sent .form-fine {
  display: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hair);
  padding: 64px 0 36px;
  background: #050404;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.footer-meta a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4bdb7;
}

.footer-meta a:hover {
  color: var(--cream);
}

.footer-meta a[href^="mailto:"] {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.disclaimer {
  font-size: 0.76rem;
  line-height: 1.7;
  color: #6e6965;
  max-width: 78ch;
  margin-bottom: 40px;
}

.disclaimer p + p {
  margin-top: 12px;
}

.disclaimer strong {
  color: #8f8884;
  font-weight: 600;
}

.disclaimer a {
  color: #8f8884;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclaimer a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 0.8rem;
  color: #6e6965;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

.footer-legal-links a {
  color: #6e6965;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

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

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid,
  .faq-wrap,
  .apply-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .faq .section-head {
    position: static;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .hero-media img {
    width: 64%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg,
        #070606 0%,
        #070606 36%,
        rgba(7, 6, 6, 0.88) 48%,
        rgba(7, 6, 6, 0.35) 70%,
        rgba(20, 6, 6, 0.4) 100%),
      linear-gradient(180deg,
        rgba(7, 6, 6, 0.2) 0%,
        transparent 30%,
        rgba(7, 6, 6, 0.5) 80%,
        #070606 100%),
      linear-gradient(155deg, transparent 40%, rgba(92, 16, 16, 0.36) 100%);
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 68px;
  }

  .wrap,
  .nav-inner {
    width: min(calc(100% - 40px), var(--wrap));
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    width: min(calc(100% - 40px), 720px);
    margin-left: 20px;
    padding: 40px 0 64px;
  }

  .hero-media img {
    width: 100%;
    object-position: 50% 22%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg,
        rgba(7, 6, 6, 0.78) 0%,
        rgba(7, 6, 6, 0.8) 48%,
        rgba(7, 6, 6, 0.9) 100%),
      linear-gradient(155deg,
        rgba(7, 6, 6, 0.25) 0%,
        rgba(92, 16, 16, 0.42) 100%);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: #070606;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav .wordmark,
  .nav-toggle {
    position: relative;
    z-index: 60;
  }

  .nav.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .curriculum-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 88px 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .footer-top,
  .footer-bottom,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .wordmark-img--nav {
    height: 20px;
  }

  .wordmark-img--footer {
    height: 40px;
  }

  .mark-img {
    height: 24px;
  }

  .wordmark--footer .mark-img {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

}



/* Legal pages */
.legal-page {
  padding: 48px 0 120px;
  max-width: 720px;
}

.legal-page .eyebrow {
  margin-bottom: 16px;
}

.legal-page h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  margin-bottom: 16px;
}

.legal-page .legal-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--cream);
  margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.legal-page ul {
  padding-left: 1.2em;
  margin-bottom: 16px;
}

.legal-page a {
  color: #d4a0a0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .legal-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: 0.82rem;
  color: #7a746e;
}
