/* ==========================================================================
   CrypTaxSuite — Atlantic palette
   Lightweight, dependency-free stylesheet
   ========================================================================== */

:root {
  /* Atlantic palette */
  --ink: #102a43;       /* headers, dark sections, primary text */
  --primary: #1f4564;   /* links, primary buttons */
  --accent: #b68a4e;    /* CTA highlights — used sparingly */
  --muted: #5c6b7a;     /* captions, helper text */
  --mid: #7e9f94;       /* dividers, secondary, illustrations */
  --surface: #ffffff;   /* cards, inputs, elevated areas */
  --bg: #f4efe6;        /* warm cream page background */

  /* Derived tints */
  --ink-90: rgba(16, 42, 67, 0.9);
  --ink-70: rgba(16, 42, 67, 0.7);
  --primary-12: rgba(31, 69, 100, 0.12);
  --accent-14: rgba(182, 138, 78, 0.14);
  --line: rgba(16, 42, 67, 0.1);
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.1);
  --shadow-lg: 0 20px 48px rgba(16, 42, 67, 0.16);

  /* Type & layout */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --space: clamp(3rem, 7vw, 6rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

/* Utilities -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space) 0;
}

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

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--ink);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: #1a1206;
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  background: #a37b42;
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  color: var(--ink-90);
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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);
}

@media (max-width: 860px) {
  .nav__toggle {
    display: flex;
    order: 3;
  }

  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 24px 1.5rem;
    display: none;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links li {
    border-bottom: 1px solid var(--line);
  }

  .nav__links a {
    display: block;
    padding: 0.9rem 0;
  }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
  }

  .nav__actions .btn {
    width: 100%;
  }
}

@media (min-width: 861px) {
  .nav__menu {
    display: flex !important;
    align-items: center;
    gap: 1.75rem;
  }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 var(--space);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 60% at 80% 0%,
      var(--accent-14),
      transparent 70%
    ),
    radial-gradient(50% 50% at 0% 20%, var(--primary-12), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* Card-style mock dashboard for hero */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}

.mock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.mock__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.mock__row:last-child {
  border-bottom: 0;
}

.mock__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.mock__dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-12);
}

.mock__coin {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}

.mock__gain {
  font-weight: 700;
  color: var(--primary);
}

/* Trust strip ------------------------------------------------------------ */
.trust {
  background: var(--ink);
  color: #fff;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2.5rem 0;
}

.trust__num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}

.trust__label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Feature grid ----------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

@media (max-width: 860px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-12);
  color: var(--primary);
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

/* Steps ------------------------------------------------------------------ */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Section header --------------------------------------------------------- */
.section__head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__head p {
  color: var(--muted);
  margin: 0;
}

/* Pricing ---------------------------------------------------------------- */
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-card__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1206;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.price-card__name {
  font-weight: 700;
  font-size: 1.25rem;
}

.price-card__price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
}

.price-card__price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card__desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-90);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b68a4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.price-card .btn {
  margin-top: auto;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  max-width: 48rem;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.25rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
}

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.2s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
}

.faq__icon::before {
  top: 10px;
  left: 0;
  width: 22px;
  height: 2px;
}

.faq__icon::after {
  top: 0;
  left: 10px;
  width: 2px;
  height: 22px;
  transition: transform 0.2s ease;
}

.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: scaleY(0);
}

.faq__a {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
}

.faq__a p {
  margin: 0;
}

.faq__q[aria-expanded="true"] + .faq__a {
  display: block;
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
}

/* Legal / prose ---------------------------------------------------------- */
.prose {
  max-width: 46rem;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
  color: var(--ink-90);
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-head .breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.page-head .breadcrumbs a {
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact form ----------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.contact-list a {
  font-weight: 600;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer__brand img {
  height: 30px;
  margin-bottom: 1rem;
}

.footer__brand p {
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Disclaimer note -------------------------------------------------------- */
.note {
  background: var(--accent-14);
  border: 1px solid rgba(182, 138, 78, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--ink-90);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
