/* ==========================================================
   CRYPTOMART — DESIGN TOKENS
   ========================================================== */
:root {
  /* Color */
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #232323;
  --border-soft: #1c1c1c;

  --gold: #c9a227;
  --gold-bright: #e8c34a;
  --gold-dim: #8c6b2f;

  --text: #f5f5f0;
  --text-secondary: #9a9a94;
  --text-muted: #5c5c58;

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --container-w: 1160px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; }

input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold-bright); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-1px); }

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

.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; }
.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  padding-top: env(safe-area-inset-top, 0px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}
.logo__img {
  display: block;
  max-height: 70px;
  width: auto;
  transition: filter 0.2s var(--ease);
}
.logo:hover .logo__img {
  filter: brightness(1.3);
}

.nav {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}
.nav__link:hover { color: var(--gold-bright); }

.header__cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border-soft);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 90%);
  opacity: 0.7;
}

.hero__scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 20px 1px var(--gold);
  animation: scan 2.6s var(--ease) 0.2s 1 both;
}

@keyframes scan {
  0%   { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 640px; opacity: 0; }
}

.hero__inner {
  position: relative;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================
   SECTION SHARED
   ========================================================== */
.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section__head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ==========================================================
   PRODUCT GRID  (signature: "block" cards linked like a chain)
   ========================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  position: relative;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

/* connective "chain" dot + line between block cards on wide screens */
.product-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 10px);
  z-index: 1;
}
.product-card:last-child::after { display: none; }

@media (max-width: 900px) {
  .product-card::after { display: none; }
}

.product-card__media {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 24px;
}

.product-card__block {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.product-card__name {
  font-size: 20px;
  margin-bottom: 4px;
}

.product-card__tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.product-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.product-card__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.price-option__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.price-option__price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.price-option--install .price-option__price { color: var(--gold-bright); }

.product-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__unavailable {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 0;
}

/* ==========================================================
   SERVICES COMPARISON
   ========================================================== */
.service-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.service-card--highlight {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(201,162,39,0.06), transparent 40%);
}

.service-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.service-card__label--gold { color: var(--gold-bright); }

.service-card__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.service-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.service-cta {
  margin-top: 40px;
  text-align: center;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

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

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease);
}
.contact-option:hover { border-color: var(--gold-dim); }

.contact-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-bright);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-option strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.contact-option small {
  color: var(--text-secondary);
  font-size: 13px;
}
#emailText {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
}

.form-hint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo--footer .logo__img { max-height: 50px; }

.footer__nav {
  display: flex;
  gap: 22px;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer__nav a:hover { color: var(--gold-bright); }

.footer__copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================
   RESPONSIVE — MOBILE NAV
   ========================================================== */
@media (max-width: 760px) {
  .header__inner {
    height: 70px;
  }

  .logo__img {
    height: 50px;
    width: auto;
  }

  .nav {
    position: fixed;
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 24px;
    gap: 18px;
    display: none;
    z-index: 99;
  }
  .nav.is-open { display: flex; }

  .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 90px 0 70px; }
  .section { padding: 72px 0; }
}
