:root {
  --bg: #fcfefd;
  --bg-soft: #f5faf7;
  --surface: #ffffff;
  --surface-soft: #f9fcfa;
  --ink: #11251f;
  --ink-soft: #3d5c52;
  --brand-900: #0f4d3e;
  --brand-700: #1d6e58;
  --brand-500: #4ea58a;
  --frame: #c9dfd4;
  --frame-strong: #a6ccbc;
  --line: rgba(15, 77, 62, 0.18);
  --shadow-soft: 0 20px 46px rgba(12, 69, 55, 0.1);
  --shadow-card: 0 12px 26px rgba(13, 72, 57, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(118, 185, 162, 0.14), transparent 34%),
    radial-gradient(circle at 94% 10%, rgba(143, 198, 178, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: repeating-linear-gradient(
    118deg,
    rgba(119, 177, 154, 0.04) 0,
    rgba(119, 177, 154, 0.04) 1px,
    transparent 1px,
    transparent 28px
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.16), transparent 38%);
}

body::after {
  background: radial-gradient(circle at 84% 80%, rgba(96, 169, 142, 0.1), transparent 30%);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #ffffff;
  color: var(--brand-900);
  border: 2px solid var(--brand-700);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  z-index: 3000;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 3px;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at 50% 28%, rgba(234, 255, 246, 0.98), rgba(214, 240, 227, 0.94) 44%, rgba(188, 224, 209, 0.96) 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms ease;
}

.intro-overlay.is-video-mode .intro-video {
  opacity: 1;
}

.intro-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 300ms ease;
}

.intro-overlay.is-video-mode .intro-sky {
  opacity: 0.35;
}

.sunset-orb {
  position: absolute;
  width: min(40vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(173, 224, 205, 0.48) 52%, rgba(124, 190, 164, 0.12) 80%, transparent 100%);
  animation: intro-glow 1.2s ease forwards;
}

.sunset-haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(232, 252, 244, 0.3) 0%, rgba(188, 225, 211, 0.3) 100%),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px,
      transparent 14px
    );
  animation: intro-haze 1.2s ease forwards;
}

.intro-dragonfly {
  position: absolute;
  width: clamp(118px, 14vw, 190px);
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%) rotate(-2deg);
  filter: drop-shadow(0 9px 12px rgba(16, 78, 63, 0.23));
  animation: intro-fly 1.2s cubic-bezier(0.2, 0.84, 0.22, 0.98) forwards;
}

.intro-mark {
  position: absolute;
  width: clamp(96px, 11vw, 150px);
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  animation: intro-mark-rise 0.95s ease 0.2s forwards;
}

.intro-caption {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  margin: 0;
  max-width: min(85vw, 860px);
  color: #143f33;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.02rem, 2vw, 1.36rem);
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.015em;
  opacity: 0;
  animation: intro-caption-rise 0.9s ease 0.3s forwards;
}

.intro-skip,
.intro-sound {
  position: absolute;
  top: 1rem;
  border: 1px solid rgba(20, 103, 82, 0.44);
  background: rgba(252, 255, 254, 0.9);
  color: var(--brand-900);
  border-radius: 999px;
  padding: 0.42rem 0.76rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
}

.intro-skip {
  right: 1rem;
}

.intro-sound {
  right: 6.9rem;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0.55rem;
  z-index: 100;
  margin-top: 0.68rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--frame-strong);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.site-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.brand-name {
  margin: 0.12rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.38rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(56, 136, 110, 0.14);
  color: var(--brand-900);
}

main {
  padding: 2.4rem 0 1rem;
  display: grid;
  gap: 2rem;
}

.hero,
.market-widgets,
.x-feed,
.merch {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--frame);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 2.3vw, 2.1rem);
  overflow: hidden;
}

.hero::before,
.market-widgets::before,
.x-feed::before,
.merch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(41, 123, 99, 0.25), rgba(94, 174, 146, 0.36), rgba(41, 123, 99, 0.2));
}

.hero {
  background:
    radial-gradient(circle at 12% -18%, rgba(132, 189, 166, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fcfffd 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.market-voice-visual {
  min-width: 0;
}

.chart-shot {
  margin: 0;
  position: relative;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(17, 73, 59, 0.24);
  box-shadow: 0 22px 44px rgba(10, 58, 46, 0.2);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fdfa 0%, #eef8f3 100%);
  transform: translateX(50px) scale(0.95);
  opacity: 0;
  animation: chart-shot-enter 700ms cubic-bezier(0.16, 0.84, 0.22, 1) 120ms forwards;
}

.chart-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 14%, rgba(114, 198, 169, 0.34), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 42%);
  z-index: 1;
}

.chart-shot img {
  width: 115%;
  max-width: none;
  height: auto;
  transform: translateX(3.5%);
  animation: chart-shot-pan 2600ms cubic-bezier(0.22, 0.8, 0.2, 1) 360ms forwards;
}

.chart-shot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    103deg,
    rgba(255, 255, 255, 0) 6%,
    rgba(255, 255, 255, 0.48) 46%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-130%);
  animation: chart-shot-sheen 1200ms ease 460ms forwards;
}

.chart-shot-caption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 3;
  background: rgba(11, 55, 44, 0.86);
  color: #e6fbf2;
  border: 1px solid rgba(162, 220, 199, 0.36);
  border-radius: 10px;
  padding: 0.55rem 0.72rem;
  display: grid;
  gap: 0.16rem;
}

.chart-shot-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: #a8e4ce;
}

.chart-shot-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.34;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

h1 {
  margin-top: 0.62rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.hero-subhead {
  margin: 0.88rem 0 0;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 600;
  color: var(--brand-900);
}

.hero-text,
.feed-intro,
.merch-intro,
.about-text {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 67ch;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.12rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  color: #f8fffd;
  background: linear-gradient(140deg, #17654f, #0f4335);
  box-shadow: 0 12px 24px rgba(15, 77, 62, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(20, 99, 80, 0.28);
  color: var(--brand-900);
  background: #ffffff;
}

.market-widgets {
  display: grid;
  gap: 1rem;
}

.market-widgets .section-heading {
  text-align: center;
  justify-items: center;
}

.market-widgets .section-heading h2 {
  max-width: 22ch;
}

.widget-card {
  border: 1px solid var(--frame);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fcfffd 0%, #f5faf7 100%);
  box-shadow: var(--shadow-card);
  padding: 0.8rem;
}

.widget-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.tradingview-widget-container,
.dukascopy-news-widget {
  width: 100%;
}

.tradingview-widget-container__widget,
.dukascopy-news-widget {
  border: 1px solid var(--frame);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.tradingview-widget-copyright {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: right;
}

.tradingview-widget-copyright a {
  color: var(--brand-900);
  font-weight: 600;
}

.dukascopy-news-widget {
  min-height: 500px;
}

.dukascopy-news-frame {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
  background: #ffffff;
}

.widget-fallback {
  margin: 0.7rem 0 0;
  border: 1px solid rgba(144, 90, 55, 0.34);
  background: #fff6ee;
  color: #6f3a20;
  border-radius: 12px;
  padding: 0.74rem 0.9rem;
  line-height: 1.5;
}

.widget-fallback[hidden] {
  display: none !important;
}

.widget-fallback a {
  margin-left: 0.35rem;
  color: var(--brand-900);
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 0.34rem;
}

.section-heading h2 {
  font-size: clamp(1.68rem, 3.3vw, 2.35rem);
}

.x-feed {
  display: grid;
  gap: 1rem;
}

.x-feed .section-heading {
  text-align: center;
  justify-items: center;
}

.x-feed .feed-intro {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.x-timeline-root {
  min-height: 560px;
}

.x-timeline-root iframe {
  display: block;
  margin-inline: auto;
}

.feed-shell {
  border: 1px solid var(--frame);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 560px;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
  padding: 0.35rem;
}

.feed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
  gap: 0.8rem;
}

.x-follow-root {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.feed-actions .btn {
  border: 1px solid rgba(15, 77, 63, 0.25);
  background: #ffffff;
  color: var(--brand-900);
}

.feed-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.x-fallback {
  border: 1px solid rgba(144, 90, 55, 0.34);
  background: #fff6ee;
  color: #6f3a20;
  padding: 0.84rem 0.94rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}

.x-fallback[hidden] {
  display: none !important;
}

.x-fallback a,
.feed-cta {
  color: var(--brand-900);
  font-weight: 700;
}

.feed-cta {
  width: max-content;
  margin-inline: auto;
}

.merch-grid {
  margin-top: 1.26rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.88rem;
}

.merch-card {
  border: 1px solid var(--frame);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.merch-image-wrap {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f0f8f4 0%, #e3f2eb 100%);
}

.merch-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-body {
  padding: 0.92rem;
  display: grid;
  gap: 0.38rem;
}

.merch-body h3 {
  font-size: 1.14rem;
}

.merch-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.52;
}

.coming-soon {
  margin-top: 0.32rem;
  width: max-content;
  border: 1px solid rgba(24, 98, 80, 0.3);
  color: #165544;
  background: rgba(224, 246, 237, 0.95);
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer {
  padding: 1.3rem 0 2.3rem;
  color: #2d4f44;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.18rem 0;
}

.disclaimer {
  color: #4a6d62;
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes intro-fly {
  0% {
    left: 50%;
    bottom: 28%;
    transform: translateX(-50%) scale(0.86) rotate(-5deg);
    opacity: 0.68;
  }
  62% {
    opacity: 1;
  }
  100% {
    left: 62%;
    bottom: 56%;
    transform: translateX(-50%) scale(0.62) rotate(8deg);
    opacity: 0;
  }
}

@keyframes intro-glow {
  0% {
    opacity: 0.9;
    filter: brightness(1.02);
  }
  100% {
    opacity: 0.34;
    filter: brightness(0.96);
  }
}

@keyframes intro-haze {
  0% {
    opacity: 0.62;
  }
  100% {
    opacity: 0.85;
  }
}

@keyframes intro-mark-rise {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes intro-caption-rise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes chart-shot-enter {
  0% {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes chart-shot-pan {
  0% {
    transform: translateX(3.5%);
  }
  100% {
    transform: translateX(-8%);
  }
}

@keyframes chart-shot-sheen {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .site-header {
    border-radius: var(--radius-lg);
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .merch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-shell,
  .x-timeline-root {
    min-height: 520px;
  }

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

  .market-voice-visual {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .chart-shot {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .intro-sound {
    right: 1rem;
    top: 3.7rem;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 26% -6%, rgba(104, 174, 151, 0.2), transparent 42%),
      linear-gradient(180deg, #fefefe 0%, #f5faf7 100%);
  }

  .site-header,
  main,
  .site-footer {
    width: min(1180px, calc(100% - 1.2rem));
  }

  main {
    padding-top: 1.8rem;
    gap: 1.45rem;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }

  .chart-shot img {
    width: 125%;
  }

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

  .feed-shell {
    min-height: 460px;
    max-width: 100%;
  }

  .x-timeline-root {
    min-height: 460px;
  }

  .feed-actions,
  .x-fallback {
    max-width: 100%;
  }
}

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

  .section-reveal {
    opacity: 1;
    transform: none;
  }

  .chart-shot {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .chart-shot img,
  .chart-shot-overlay {
    animation: none;
    transform: none;
  }
}
