/* TradeTheDeep — dark, sharp, orange accent */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: #222222;
  --border-strong: #333333;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --accent: #ff6801;
  --accent-bright: #ff7a1a;
  --accent-soft: rgba(255, 104, 1, 0.15);
  --accent-glow: rgba(255, 104, 1, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --container: 1100px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent-bright);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 1000;
  font-weight: 600;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.slash {
  position: absolute;
  width: 180%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 104, 1, 0.35),
    transparent
  );
  transform-origin: center;
}

.slash-1 {
  top: 28%;
  left: -40%;
  transform: rotate(-28deg);
  opacity: 0.7;
}

.slash-2 {
  top: 62%;
  left: -30%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: rotate(-28deg);
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(110px, 22vw, 160px);
  height: auto;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 1px var(--border), 0 20px 60px rgba(255, 104, 1, 0.18);
  animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s,
    box-shadow 0.25s;
}

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

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-bright);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

.tools-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.25s,
    background 0.25s, box-shadow 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #3a3a3a;
  background: var(--bg-card-hover);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 104, 1, 0.12);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  opacity: 0.9;
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-body {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.card-link .arrow {
  transition: transform 0.25s var(--ease);
}

.card:hover .card-link .arrow {
  transform: translateX(4px);
}

.card-link.muted {
  color: var(--text-dim);
  font-weight: 500;
  cursor: default;
}

.placeholder-text {
  font-style: italic;
  color: var(--text-dim);
}

.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 104, 1, 0.3);
  border-radius: 999px;
}

.placeholder-card {
  border-style: dashed;
  border-color: #2a2a2a;
}

.placeholder-card:hover {
  border-style: dashed;
  border-color: rgba(255, 104, 1, 0.35);
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.media-card {
  text-align: center;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.media-card .card-title {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

.media-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 104, 1, 0.25);
}

.media-status {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.qr-slot {
  margin-top: 0.65rem;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  border: 1px dashed #333;
  background: #0c0c0c;
  display: grid;
  place-items: center;
  /* Ready for: <img src="..." alt="... QR"> inside this slot */
}

.qr-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.qr-placeholder {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
  padding: 0.25rem;
}

.qr-slot-lg {
  width: 160px;
  height: 160px;
  margin-top: 0.5rem;
}

.qr-slot-lg .qr-placeholder {
  font-size: 0.85rem;
}

.qr-slot-lg .qr-placeholder small {
  font-size: 0.75rem;
  color: #555;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.email-link {
  font-size: 1.05rem;
  word-break: break-all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #000;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand a {
  color: var(--text-muted);
}

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

.back-top {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.back-top:hover {
  color: var(--accent);
}

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

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

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

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

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

  .hero-logo {
    animation: none;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .products-grid,
  .tools-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 1rem;
  }

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

  .brand-sub {
    display: none;
  }
}

@media (min-width: 861px) and (max-width: 980px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
