/* ============================================
   Florida Mesh — Site Stylesheet
   Pure CSS3 — no preprocessor, no framework
   ============================================ */

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #111820;
  --bg-card: #151d28;
  --bg-card-hover: #1a2433;
  --border-subtle: #1e2a3a;
  --border-accent: #2a3a4e;

  --text-primary: #e0e6ed;
  --text-secondary: #8899aa;
  --text-muted: #556677;

  --accent-green: #00e676;
  --accent-green-dim: #00c853;
  --accent-green-glow: rgba(0, 230, 118, 0.15);
  --accent-amber: #ffc107;
  --accent-amber-dim: #ff9800;
  --accent-blue: #29b6f6;

  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --max-width: 1200px;
  --nav-height: 64px;
}

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

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

body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-green-dim);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

.nav-brand span {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.nav-cta {
  background: var(--accent-green);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  margin-left: 0.5rem;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-green-dim);
  color: var(--bg-primary);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 50% 70%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 10% 80%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 90% 60%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 35% 50%, var(--accent-green) 1px, transparent 1px),
    radial-gradient(circle at 65% 40%, var(--accent-green) 1px, transparent 1px);
  background-size: 100% 100%;
  animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -1%); }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-green-glow);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.6s ease-out both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  animation: fade-in-up 0.6s ease-out 0.1s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-green);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 2rem;
  animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-green-dim);
  color: var(--bg-primary);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   SECTIONS — SHARED LAYOUT
   ============================================ */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ============================================
   EXPLAINER CARDS (3-up)
   ============================================ */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.explainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}

.explainer-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.explainer-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.explainer-icon.green { background: var(--accent-green-glow); }
.explainer-icon.amber { background: rgba(255, 193, 7, 0.12); }
.explainer-icon.blue { background: rgba(41, 182, 246, 0.12); }

.explainer-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.explainer-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================
   GET STARTED STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  position: relative;
  counter-increment: step-counter;
  padding-top: 0.5rem;
}

.step::before {
  content: counter(step-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--border-accent);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.step a {
  font-weight: 600;
}

/* ============================================
   COMMUNITY BUILDS / GALLERY
   ============================================ */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.build-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}

.build-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.build-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.build-image .placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.build-image .placeholder-inner {
  text-align: center;
}

.build-image-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.build-info {
  padding: 1.25rem;
}

.build-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.build-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.build-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.build-tag {
  padding: 0.15rem 0.5rem;
  background: var(--accent-green-glow);
  color: var(--accent-green);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}

.builds-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   NETWORK TOOLS (Map + Telemetry)
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.tool-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.tool-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-link::after {
  content: '→';
  transition: transform 0.2s;
}

.tool-card:hover .tool-link::after {
  transform: translateX(4px);
}

/* ============================================
   RESOURCES GRID
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.resource-item:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.resource-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
}

.resource-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.resource-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-green-glow), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-banner .hero-actions {
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-left a {
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--accent-green);
}

/* ============================================
   PAGE CONTENT — for blog/docs subpages
   ============================================ */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 5rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.page-content .page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.page-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.page-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.page-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.page-content blockquote {
  border-left: 3px solid var(--accent-green);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
  .explainer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
  }

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

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav-links a.nav-cta {
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 3rem) 1.25rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .page-content {
    padding: calc(var(--nav-height) + 2rem) 1.25rem 3rem;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .tool-card {
    padding: 1.75rem 1.25rem;
  }
}
