/* ============================================================
   DesktopToTrade — style.css
   Brand: deep navy + electric blue (matches logo)
   ============================================================ */

:root {
  --navy-950: #081527;
  --navy-900: #0b1f3a;
  --navy-800: #12294a;
  --navy-700: #1b3a63;
  --blue-500: #2f7ff2;
  --blue-400: #4d95f7;
  --blue-300: #7ab3fa;
  --ink: #16233b;
  --ink-soft: #45536b;
  --paper: #f4f6fa;
  --paper-card: #ffffff;
  --line: #dfe6f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --max: 1100px;
}

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

html { scroll-padding-top: 70px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand-logo { height: 52px; width: auto; }

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

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

.site-nav .nav-cta {
  background: var(--navy-900);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover { background: var(--blue-500); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(47, 127, 242, 0.25), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(47, 127, 242, 0.15), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo.jpeg") center 52% / 88% auto no-repeat;
  opacity: 0.07;
  filter: saturate(0.6) blur(0.3px);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero::before { background-size: 130% auto; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 21, 39, 0.28));
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-inner { padding: 5.5rem 1.25rem 4.5rem; max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

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

.lede {
  font-size: 1.15rem;
  color: #c6d3e6;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  list-style: none;
  color: #9db2d0;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-points li::before { content: "✓ "; color: var(--blue-400); }

.hero-strip {
  display: flex; justify-content: center; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1rem 1.4rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-strip i { color: var(--blue-400); font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-400); }

.btn-ghost { border-color: var(--blue-300); color: var(--blue-300); background: transparent; }
.btn-ghost:hover { background: rgba(122, 179, 250, 0.12); }

.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.section-lede { color: var(--ink-soft); max-width: 640px; margin-bottom: 2.4rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }

.card p { color: var(--ink-soft); font-size: 0.97rem; }

.card-feature { position: relative; overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.card-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,31,58,0.16); border-color: rgba(47,127,242,0.28); }

.feature-art {
  width: 100%; height: 120px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background:
    radial-gradient(220px 140px at 50% 0%, rgba(47,127,242,0.16), transparent 70%),
    linear-gradient(180deg, #eef2f8, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1.1rem;
  padding: 10px;
}

.feature-art svg { width: 92px; height: 92px; filter: drop-shadow(0 8px 18px rgba(11,31,58,0.14)); }

.art-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.85) 50%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0; pointer-events: none;
}
.card-feature:hover .art-shimmer { animation: shimmer 0.75s ease forwards; }

.art-float { animation: artFloat 3s ease-in-out infinite; }
.art-tick { animation: artPop 0.5s ease 0.4s both; transform-origin: 52px 52px; }
.art-check { stroke-dasharray: 18; stroke-dashoffset: 18; animation: drawCheck 0.45s ease 0.9s forwards; }
.art-dot { animation: artPulse 2.2s ease-in-out infinite; transform-origin: 40px 14px; }
.art-pound { animation: artPop 0.5s ease 0.5s both; transform-origin: 58px 54px; }
.art-arrow { animation: artNudge 1.6s ease-in-out infinite; }
.art-col--left, .art-col--right { animation: artDrift 3s ease-in-out infinite alternate; }
.art-col--left { animation-delay: 0.15s; }
.art-col--right { animation-delay: 0.35s; }

@keyframes shimmer { to { transform: translateX(120%); opacity: 1; } }
@keyframes artFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes artPop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes artPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.9; } }
@keyframes artNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes artDrift { from { transform: translateY(0); } to { transform: translateY(-2px); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .art-float, .art-tick, .art-check, .art-dot, .art-pound, .art-arrow, .art-col--left, .art-col--right, .art-shimmer { animation: none !important; }
  .art-check { stroke-dashoffset: 0; }
}

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex; flex-direction: row; align-items: center; gap: 0.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(47,127,242,0.22); }
.mini-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #edf2ff; border: 1px solid var(--line); }
.mini-icon svg { width: 20px; height: 20px; }
.mini strong { font-size: 0.95rem; }
.mini span { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute; top: -16px; left: 1.4rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--blue-500);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(47, 127, 242, 0.4);
}

.step-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #edf2ff; border: 1px solid var(--line); margin: -0.2rem 0 0.6rem; }
.step-icon svg { width: 28px; height: 28px; }
.reveal .step-icon { transition: transform 0.35s ease 0.2s; }
.reveal.in .step-icon { transform: rotate(-2deg) scale(1.02); }
.steps h3 { margin: 0.4rem 0 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.plan { display: flex; flex-direction: column; }

.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--navy-900); margin: 0.4rem 0 1rem; }
.plan .price span { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }

.plan ul { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }

.plan li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; color: var(--ink-soft); font-size: 0.95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-500); font-weight: 700; }

.plan-featured { border-color: var(--blue-500); box-shadow: 0 14px 40px rgba(47, 127, 242, 0.18); position: relative; }

.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
}

.pricing-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.6rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact h2 { margin-bottom: 0.5rem; }
.contact p { color: var(--ink-soft); }

.contact-mail { margin-top: 0.8rem; }
.contact-mail a { color: var(--blue-500); font-weight: 600; }

.signup { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.signup input {
  flex: 1 1 220px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 1rem;
  background: #fff;
}

.signup input:focus { outline: none; border-color: var(--blue-500); }

.form-msg { width: 100%; font-size: 0.9rem; font-weight: 600; color: #1c8a4a; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9db2d0; padding: 2.4rem 0; }

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

.footer-logo { height: 40px; width: auto; }

.site-footer nav { display: flex; gap: 1.3rem; }

.site-footer a { color: #c6d3e6; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }

.site-footer p { font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

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

  .site-nav a { padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); }
  .site-nav .nav-cta { border-radius: 0; text-align: center; }

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

@media (max-width: 560px) {
  .brand-logo { height: 42px; }
  .hero-inner { padding: 4rem 1.25rem 3.5rem; }
  .grid-4 { grid-template-columns: 1fr; }
}
