:root {
  /* Ocean blue primary */
  --ocean-deep: #062441;
  --ocean: #0A4F7A;
  --ocean-mid: #0E7490;
  --ocean-light: #38BDF8;
  --ocean-pale: #DBF1FB;

  /* Accents */
  --orange: #F97316;
  --orange-soft: #FB923C;
  --gold: #D4A24C;
  --gold-bright: #F2C94C;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #F8FAFC;
  --paper-warm: #FFFBF2;
  --ink: #0F172A;
  --ink-soft: #334155;
  --slate: #64748B;
  --hairline: #E2E8F0;
  --cloud: #CBD5E1;       /* form input border, visible on white */
  --cloud-soft: #E2E8F0;

  /* Type */
  --display: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(6, 36, 65, 0.06);
  --shadow: 0 8px 24px rgba(6, 36, 65, 0.08);
  --shadow-lg: 0 20px 60px rgba(6, 36, 65, 0.18);
}

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

/* Form inputs: visible grey border on every page, even where inline styles miss */
input[type="text"], input[type="email"], input[type="number"], input[type="tel"],
input[type="url"], input[type="password"], input[type="search"], input[type="date"],
input[type="file"], textarea, select {
  border: 1px solid var(--cloud);
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1rem;
  font-family: var(--body);
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(10, 79, 122, 0.15);
}
input::placeholder, textarea::placeholder { color: #94A3B8; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean-mid); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-weight: 600; }

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .mark {
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(6,36,65,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .mark { transform: rotate(-6deg) scale(1.05); box-shadow: 0 4px 14px rgba(6,36,65,0.28), inset 0 0 0 1px rgba(255,255,255,0.18); }
.brand .mark::after {
  content: '';
  position: absolute;
  inset: 6px 4px 4px 6px;
  border-right: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  border-radius: 0 0 60% 0;
  transform: rotate(-15deg);
}
/* When the three.js renderer mounts, hide the static glyph and let the canvas show through */
.brand .mark.mark-3d { background: radial-gradient(circle at 30% 30%, #0b3358, #062441 70%); }
.brand .mark.mark-3d::after { display: none; }
.brand .mark canvas { display: block; width: 100%; height: 100%; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ocean); }
.nav .btn {
  margin-left: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  border-radius: 8px;
  white-space: nowrap;       /* keep "Sign In" / "Sell on Fast Aquatics" on one line */
  letter-spacing: 0.01em;
  box-shadow: none;          /* drop heavy shadow in nav context */
}
.nav .btn:hover { box-shadow: 0 4px 12px rgba(6, 36, 65, 0.12); }
.nav .btn svg { width: 14px; height: 14px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.32);
}
.btn-primary:hover {
  background: #EA580C;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.4);
}
.btn-ocean {
  background: var(--ocean);
  color: var(--white);
}
.btn-ocean:hover { background: var(--ocean-deep); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ocean);
  border: 1.5px solid var(--ocean);
}
.btn-ghost:hover { background: var(--ocean); color: var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ocean-deep);
}
.btn-gold:hover { color: var(--ocean-deep); transform: translateY(-1px); }
.btn-green {
  background: #16A34A;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.30);
}
.btn-green:hover {
  background: #15803D;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.40);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  color: var(--white);
  overflow: hidden;
  background-color: var(--ocean-deep);
  background-image:
    linear-gradient(180deg, rgba(6, 36, 65, 0.78) 0%, rgba(6, 36, 65, 0.55) 40%, rgba(6, 36, 65, 0.85) 100%),
    url('https://images.pexels.com/photos/37218222/pexels-photo-37218222.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 25%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(700px 400px at 85% 75%, rgba(247, 164, 46, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--orange-soft); }
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2rem;
}
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats .stat .num {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  line-height: 1;
}
.hero-stats .stat .label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
}

/* ============ Sections ============ */
.section { padding: 5rem 0; }
.section-tight { padding: 2.6rem 0 3rem; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header .eyebrow { color: var(--orange); }
.section-header p {
  font-size: 1.1rem;
  color: var(--slate);
  margin-top: 0.8rem;
}
/* Inline header row variant: title left, "see all" link right. Tighter. */
.section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  max-width: none;
  margin: 0 0 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(6,36,65,0.08);
}
.section-header-row h2 {
  margin: 0.15rem 0 0;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
}
.section-header-row .eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; }
.section-header-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}
.section-header-link:hover { text-decoration: underline; }

/* Live-now product feed (home + browse) */
.livegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
}
.livegrid-loading,
.livegrid-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--slate);
  font-size: 0.92rem;
  background: rgba(255,255,255,0.5);
  border: 1px dashed rgba(6,36,65,0.15);
  border-radius: 8px;
}
.livegrid-empty a { color: var(--orange); font-weight: 600; }
.livegrid-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(6,36,65,0.06);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.livegrid-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6,36,65,0.10);
  border-color: rgba(6,36,65,0.14);
}
.livegrid-photo {
  aspect-ratio: 1.15;
  background: #E6EEF5 center/cover no-repeat;
  position: relative;
}
.livegrid-trust {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(6,36,65,0.85);
  color: #F2C94C;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.livegrid-body {
  padding: 0.6rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
}
.livegrid-title {
  font-family: var(--display);
  color: var(--ocean-deep);
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.livegrid-meta {
  font-size: 0.72rem;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.livegrid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.35rem;
}
.livegrid-price {
  font-family: var(--display);
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
}
.livegrid-stock {
  font-size: 0.7rem;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-weight: 600;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.dot-live { background: #16A34A; box-shadow: 0 0 0 2px rgba(22,163,74,0.18); }
.dot-out  { background: #B8473F; }

/* Q&A tile grid (home + Q&A index) */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem;
}
.qa-tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--ocean);
  transition: border-color 0.12s, transform 0.12s;
}
.qa-tile:hover { border-left-color: var(--orange); transform: translateX(2px); }
.qa-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ocean-deep);
  line-height: 1.25;
}
.qa-a {
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.42;
}

.section-alt { background: var(--white); }
.section-ocean { background: var(--ocean-deep); color: var(--white); }
.section-ocean h2 { color: var(--white); }
.section-ocean .section-header p { color: rgba(255, 255, 255, 0.75); }

/* ============ Cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ocean-light);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: var(--display);
}
.card.accent .icon {
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--slate); }

/* ============ Categories grid ============ */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--ocean-mid), var(--ocean-deep));
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
a.cat-tile { color: var(--white); }
a.cat-tile:hover, a.cat-tile:focus, a.cat-tile:visited { color: var(--white); text-decoration: none; }
.cat-tile:hover { transform: translateY(-3px); color: var(--white); }
.cat-tile.coral { background: linear-gradient(180deg, #1E40AF, var(--ocean-deep)); }
.cat-tile.fw { background: linear-gradient(180deg, #0E7490, var(--ocean)); }
.cat-tile.invert { background: linear-gradient(180deg, #C2410C, #7C2D12); }
.cat-tile.plants { background: linear-gradient(180deg, #15803D, #052e16); }
.cat-tile.shrimp { background: linear-gradient(180deg, var(--gold), #92400E); }
.cat-tile.drygoods { background: linear-gradient(180deg, #475569, #1E293B); }
.cat-tile.food { background: linear-gradient(180deg, #DC2626, #7F1D1D); }
.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
  border-radius: var(--radius);
}
.cat-tile > div { position: relative; z-index: 1; }
.cat-tile h3 {
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.cat-tile .count {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.4rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.cat-tile::after {
  content: '\2192';
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.cat-tile:hover::after { background: var(--orange); }

/* ============ Vendor tiers ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.tier {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--orange);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.18);
  position: relative;
}
.tier.featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.tier .name {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--ocean);
}
.tier.featured .name { color: var(--orange); }
.tier .price {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--ink);
  margin: 0.6rem 0 0.2rem;
}
.tier .price .unit { font-size: 1rem; color: var(--slate); font-family: var(--body); font-weight: 500; }
.tier ul { list-style: none; margin: 1.4rem 0; flex: 1; }
.tier li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tier li::before {
  content: '\2713';
  color: var(--ocean-mid);
  font-weight: 700;
  flex-shrink: 0;
}
.tier.featured li::before { color: var(--orange); }
.tier .btn { width: 100%; }

/* ============ Header nav icons ============ */
.nav .nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ocean);
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  text-decoration: none;
}
.nav .nav-icon:hover { background: var(--orange); color: var(--white); }

/* Icon + label nav links (Sign in, Cart) */
.nav .nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav .nav-link-with-icon:hover {
  background: var(--paper);
  color: var(--ocean);
}
.nav .nav-link-with-icon svg { flex-shrink: 0; }

/* ============ Footer (markcmo.com pattern) ============ */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ocean-light), var(--gold-bright), var(--orange));
}

/* CTA / newsletter card (legacy single-block; kept for any pages still using .footer-cta) */
.footer-cta {
  background: linear-gradient(135deg, rgba(56,189,248,0.06), rgba(212,162,76,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.footer-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.4rem;
}
.footer-cta p {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* Two-block CTA grid: aquarist + vendor side-by-side */
.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3.2rem;
}
.footer-cta-block {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
}
.footer-cta-buyer {
  background: linear-gradient(135deg, rgba(56,189,248,0.10), rgba(56,189,248,0.02));
  border-color: rgba(56,189,248,0.18);
}
.footer-cta-vendor {
  background: linear-gradient(135deg, rgba(212,162,76,0.12), rgba(247,164,46,0.04));
  border-color: rgba(247,164,46,0.22);
}
.footer-cta-block h3 {
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0.35rem;
}
.footer-cta-block p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.45;
  margin: 0 0 0.85rem;
}
.footer-vendor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-items: center;
  margin-top: 0.4rem;
}
.footer-vendor-link {
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-vendor-link:hover { color: var(--gold-bright); }
@media (max-width: 760px) {
  .footer-cta-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .footer-cta-block { padding: 1.2rem 1.3rem; }
}
.footer-eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 700;
}
.footer-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}
.footer-form input[type=email] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
}
.footer-form input[type=email]::placeholder { color: rgba(255,255,255,0.45); }

/* Multi-column nav */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2.5rem 1.5rem;
  margin-bottom: 4rem;
}
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.32rem 0; }
.footer-col a {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  transition: color 0.15s ease;
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-bright); }

/* Brand line + social */
.footer-bottom {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}
.footer-brand-line .brand {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  display: inline-flex;
}
.footer-brand-line p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.55;
}
.footer-social {
  text-align: right;
}
.social-row {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, color 0.15s;
  border: 1px solid rgba(255,255,255,0.12);
}
.social-icon:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* Tech stack pills row */
.footer-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-stack .stack-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-right: 0.5rem;
}
.pay-pill {
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Copyright */
.site-footer .copyright {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 0.5rem;
}
.site-footer .copyright a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.site-footer .copyright a:hover { color: var(--gold-bright); }

/* Legacy footer-grid (still used by some pages until rebuilt) */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .footer-cta { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-social { text-align: left; }
  .footer-form { flex-wrap: wrap; }
}
.site-footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-family: var(--body);
  font-weight: 700;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.35rem 0; }
.site-footer a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 1rem; }
  .nav a:not(.btn) { display: none; }
}

/* ============ Page banner ============ */
.banner {
  background: linear-gradient(180deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  padding: 4rem 0 3rem;
}
.banner h1 { color: var(--white); }
.banner p { color: rgba(255, 255, 255, 0.8); margin-top: 0.6rem; max-width: 600px; }

/* ============ Prose (long-form pages) ============ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--ocean-deep); }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.6rem; color: var(--ocean); }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0.6rem 0 1.2rem 1.4rem; }
.prose li { margin-bottom: 0.4rem; color: var(--ink-soft); }
.prose .callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.4rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.prose .callout strong { color: var(--ocean-deep); }

/* ============================================================
   MOTION: scroll reveal, hover lift, cultivar marquee, hero overlay
   Aquarium buyers respond to motion + color. Used sparingly + perf-cheap.
   Honors prefers-reduced-motion.
   ============================================================ */

/* Sticky-header tweak so the 3D logo + nav read as one premium row */
.site-header { box-shadow: 0 1px 0 rgba(6,36,65,0.04); }

/* Hero polish: layered gradient + floating ::before glow + 3D canvas behind */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 70% 20%, rgba(247,164,46,0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(31,150,201,0.30), transparent 65%),
    linear-gradient(135deg, #04162B 0%, #062441 50%, #0b3a66 100%);
  isolation: isolate;
}
.hero h1 {
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #F7A42E, #FFD175, #18C7C7);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: hero-shimmer 8s linear infinite;
}
@keyframes hero-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero p { text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero3d-canvas + .container,
.hero > .container { position: relative; z-index: 2; }

/* Scroll reveal: opt-in via [data-reveal]. JS toggles .is-revealed when in view. */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"].is-revealed { transition-delay: 80ms; }
[data-reveal-delay="2"].is-revealed { transition-delay: 160ms; }
[data-reveal-delay="3"].is-revealed { transition-delay: 240ms; }

/* Category tile - more pop on hover, gentle gradient pulse */
.cat-tile {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,164,46,0), rgba(247,164,46,0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(6,36,65,0.18);
}
.cat-tile:hover::after { opacity: 1; }

/* Cultivar marquee - scrolling ticker of named hobby cultivars on home */
.cultivar-ticker {
  background: linear-gradient(90deg, #04162B 0%, #062441 50%, #04162B 100%);
  color: #FFD175;
  border-top: 1px solid rgba(247,164,46,0.25);
  border-bottom: 1px solid rgba(247,164,46,0.25);
  overflow: hidden;
  position: relative;
  padding: 0.55rem 0;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cultivar-ticker::before,
.cultivar-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 80px;
  z-index: 2;
  pointer-events: none;
}
.cultivar-ticker::before { left: 0;  background: linear-gradient(to right, #04162B, transparent); }
.cultivar-ticker::after  { right: 0; background: linear-gradient(to left,  #04162B, transparent); }
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  gap: 2.6rem;
  padding-left: 2.6rem;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ticker-item::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}
.ticker-item .vendor {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-left: 0.3rem;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cultivar-ticker:hover .ticker-track { animation-play-state: paused; }

/* Live products grid: photo zoom + price flash on hover */
.livegrid-card .livegrid-photo {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background-size: cover;
}
.livegrid-card:hover .livegrid-photo { transform: scale(1.05); }
.livegrid-card { will-change: transform; }

/* Footer 3D logo bigger + glow */
.site-footer .brand .mark { width: 36px; height: 36px; box-shadow: 0 2px 12px rgba(247,164,46,0.25); }

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .ticker-track { animation: none; }
  .hero h1 .accent { animation: none; }
  .cat-tile, .cat-tile:hover { transform: none; }
}
