/* ============================================================
   HashifyAI.com — premium domain showcase
   ============================================================ */

:root {
  --obsidian: #05070a;
  --graphite: #0a0e13;
  --panel:    #0e131a;
  --panel-2:  #11171f;
  --line:     rgba(255, 255, 255, 0.08);
  --line-2:   rgba(255, 255, 255, 0.14);

  --text:     #e9f0f4;
  --muted:    #93a1ad;
  --muted-2:  #6c7a86;

  --cyan:     #3ff0d2;
  --teal:     #19c3a6;
  --emerald:  #2bd97a;
  --gold:     #e8c47a;

  --glow-cyan: rgba(63, 240, 210, 0.35);

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--obsidian);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

::selection { background: var(--cyan); color: #04110d; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04110d; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- buttons ---------- */
.btn {
  --b-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; position: relative; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
}
.btn-primary {
  color: #04110d;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  box-shadow: 0 8px 30px -10px var(--glow-cyan), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 14px 44px -10px var(--glow-cyan), inset 0 0 0 1px rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.wordmark { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.wordmark-mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(63,240,210,0.25)); }
.wordmark-text { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.wordmark-ai {
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark-tld { color: var(--muted-2); font-weight: 500; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500; position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--emerald)); transition: width 0.3s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.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); }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(7,10,14,0.96); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 22px;
}
.mobile-nav a { padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }
.mobile-cta { color: var(--cyan) !important; font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #0c1620 0%, var(--obsidian) 55%),
    var(--obsidian);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 42%, transparent 40%, rgba(5,7,10,0.55) 100%),
    linear-gradient(to bottom, transparent 55%, var(--obsidian) 98%);
}
.hero-inner { position: relative; z-index: 3; max-width: 860px; text-align: center; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(255,255,255,0.03); backdrop-filter: blur(8px); margin-bottom: 30px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 var(--glow-cyan); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow-cyan); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-title { font-size: clamp(2.7rem, 8vw, 5.5rem); font-weight: 700; margin-bottom: 24px; }
.hero-title-line { display: block; color: var(--text); }
.hero-title-emph {
  display: block;
  background: linear-gradient(110deg, var(--cyan) 10%, var(--emerald) 55%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 30px rgba(63,240,210,0.18));
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 640px; margin: 0 auto 38px; }
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trustline {
  display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap;
  list-style: none; padding: 0; color: var(--muted-2);
  font-family: var(--font-head); font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-trustline li:not([aria-hidden]) { color: var(--text); }

.hero-contact { font-size: 0.95rem; color: var(--muted); }
.hero-contact a { color: var(--cyan); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.hero-contact a:hover { border-bottom-color: var(--cyan); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--graphite); overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.marquee-track .dot { color: var(--teal); font-size: 0.7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: clamp(70px, 11vw, 130px) 0; position: relative; }
.section-alt { background: linear-gradient(to bottom, var(--obsidian), var(--graphite) 50%, var(--obsidian)); }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 20px; }
.section-lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); }
.section-lead strong, .section-head strong { color: var(--text); font-weight: 600; }

/* ---------- WHY grid ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.why-card {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--panel), var(--graphite));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.why-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(63,240,210,0.10), transparent 70%);
  transition: opacity 0.5s;
}
.why-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.why-card:hover::before { opacity: 1; }
.why-card-wide { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.why-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 0.98rem; }
.why-icon { display: inline-block; font-size: 1.6rem; color: var(--cyan); margin-bottom: 14px; }

.why-tokens { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.token {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-2);
}
.token-hash { color: var(--gold); border-color: rgba(232,196,122,0.3); }
.token-ai { color: var(--cyan); border-color: rgba(63,240,210,0.3); }
.token-brand {
  color: #04110d; border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  font-size: 1.15rem;
}
.token-plus, .token-eq { color: var(--muted-2); font-family: var(--font-head); font-size: 1.3rem; }

/* ---------- POTENTIAL grid ---------- */
.potential-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.potential-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  position: relative; overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.3s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.potential-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--emerald)); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.potential-card:hover { border-color: var(--line-2); box-shadow: 0 26px 60px -34px rgba(0,0,0,0.9); }
.potential-card:hover::after { transform: scaleX(1); }
.potential-tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(25,195,166,0.3); border-radius: 100px; padding: 4px 12px; margin-bottom: 18px;
}
.potential-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.potential-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- NAMING ---------- */
.naming-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.naming-copy { position: sticky; top: 110px; }
.naming-copy .eyebrow, .naming-copy .section-title { text-align: left; }
.naming-copy .section-head { text-align: left; }
.naming-copy .section-title { margin-bottom: 18px; }
.naming-copy .section-lead { margin-bottom: 28px; }
.naming-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.naming-list li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: transform 0.45s var(--ease), border-color 0.4s;
}
.naming-list li:hover { transform: translateX(6px); border-color: var(--line-2); }
.naming-num {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  font-family: var(--font-head); font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(63,240,210,0.25); background: rgba(63,240,210,0.05);
}
.naming-list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.naming-list p { color: var(--muted); font-size: 0.96rem; }
.naming-list em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- STAT BAND ---------- */
.stat-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--graphite); padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px;
}
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- URGENCY ---------- */
.urgency-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.urgency-card {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--graphite));
  transition: transform 0.45s var(--ease), border-color 0.4s;
}
.urgency-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.urgency-card h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--text); }
.urgency-card p { color: var(--muted); font-size: 0.97rem; }
.urgency-card em { color: var(--cyan); font-style: normal; }
.urgency-note {
  text-align: center; margin-top: 40px; font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--text); letter-spacing: -0.01em;
}

/* ---------- INQUIRY ---------- */
.section-inquiry {
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(25,195,166,0.07), transparent 60%),
    var(--obsidian);
}
.inquiry-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.inquiry-intro .eyebrow, .inquiry-intro .section-title { text-align: left; }
.inquiry-intro .section-title { margin-bottom: 18px; }
.inquiry-points { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.inquiry-points li { position: relative; padding-left: 28px; color: var(--muted); }
.inquiry-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald); font-weight: 700;
}
.inquiry-email { color: var(--muted); font-size: 0.96rem; }
.inquiry-email a { color: var(--cyan); font-weight: 600; }

.inquiry-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--graphite));
  border: 1px solid var(--line); border-radius: 22px; padding: 34px;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.9);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: span 2; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--muted); font-family: var(--font-head); letter-spacing: 0.01em; }
.field label span { color: var(--cyan); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63,240,210,0.12); background: rgba(0,0,0,0.4);
}
.field input:invalid:not(:placeholder-shown):not(:focus) { border-color: rgba(255,120,120,0.5); }
.inquiry-form .btn-block { grid-column: span 2; margin-top: 4px; }
.form-note { grid-column: span 2; font-size: 0.85rem; color: var(--muted-2); text-align: center; }
.form-note.error { color: #ff9b9b; }
.form-note.success { color: var(--emerald); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--graphite); padding: 60px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-wordmark { font-size: 1.4rem; display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 340px; font-size: 0.95rem; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-label { font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.footer-email { font-family: var(--font-head); font-size: 1.15rem; color: var(--cyan); font-weight: 600; }
.footer-email:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; color: var(--muted-2); font-size: 0.85rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .naming-layout { grid-template-columns: 1fr; gap: 36px; }
  .naming-copy { position: static; }
  .inquiry-layout { grid-template-columns: 1fr; gap: 36px; }
  .why-card { grid-column: span 3; }
  .why-card-wide { grid-column: span 6; }
  .potential-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card, .why-card-wide { grid-column: span 1; }
  .potential-grid { grid-template-columns: 1fr; }
  .urgency-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .inquiry-form { grid-template-columns: 1fr; padding: 24px; }
  .field-full, .inquiry-form .btn-block, .form-note { grid-column: span 1; }
  .hero { padding-top: 100px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-cue span { animation: none; }
}
