:root {
  --bg: #111111;
  --bg-soft: #1a1a1a;
  --bg-card: #1e1e1e;
  --fg: #f5f5f5;
  --muted: #999999;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --accent-green: #4ade80;
  --maxw: 640px;
  --maxw-wide: 800px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.nav__logo svg {
  color: var(--accent);
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--fg);
  background: rgba(148, 163, 184, 0.1);
}

.nav__link[aria-current="page"] {
  color: var(--accent);
}

/* ================================================================
   HERO / HOME
   ================================================================ */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background glow orb */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1;   }
}

.hero__inner {
  max-width: var(--maxw);
  position: relative;
  z-index: 1;
}

/* Logo mark — bars build up + gentle float */
.hero__mark {
  width: 72px;
  height: 72px;
  color: var(--accent);
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Individual bars — staggered slide-in from left + fade */
.hero__mark .bar {
  fill: var(--accent);
  opacity: 0;
  animation: barIn 0.5s ease-out forwards;
}

.bar--1 { animation-delay: 0.2s; }
.bar--2 { animation-delay: 0.4s; }
.bar--3 { animation-delay: 0.6s; }
.bar--4 { animation-delay: 0.8s; }

@keyframes barIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0);    }
}

/* Title — slide up + fade */
.hero__title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: slideUp 0.7s ease-out 1s forwards;
}

/* Tagline — fade in */
.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--muted);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.3s forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
  .hero__mark { animation: none; }
  .hero__mark .bar { opacity: 1; animation: none; }
  .hero__title { opacity: 1; animation: none; }
  .hero__tagline { opacity: 1; animation: none; }
}

/* ---------- CTA button ---------- */
.hero__cta {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.hero__cta:hover,
.hero__cta:focus {
  border-color: var(--fg);
  transform: translateY(-1px);
}

/* ---------- Four Pillars ---------- */
.pillars {
  margin-top: 3rem;
  width: 100%;
}

.pillars__heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.5rem;
  text-align: center;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.pillar__icon {
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.pillar__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--fg);
}

.pillar__desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

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

/* ---------- About section ---------- */
.about {
  margin-top: 3rem;
  text-align: left;
}

.about__heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.about__body {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1rem;
}

.about__body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about__body a:hover,
.about__body a:focus {
  border-bottom-color: var(--accent);
}

/* ================================================================
   PRODUCTS PAGE
   ================================================================ */
.products {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background glow */
.products__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.products__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Card — slide up + fade in */
.card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  opacity: 0;
  animation: slideUp 0.6s ease-out 0.15s forwards;
}

/* Image — fade in from left */
.card__image {
  width: 140px;
  min-width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.5s forwards;
}

/* Info — fade in from right */
.card__info {
  flex: 1;
  min-width: 0;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.6s forwards;
}

/* Tagline — subtle fade */
.card__tagline {
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.15rem 0 0.75rem;
}

/* Features — staggered fade in */
.card__feature {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.card__feature:nth-child(1) { animation-delay: 0.8s; }
.card__feature:nth-child(2) { animation-delay: 0.95s; }
.card__feature:nth-child(3) { animation-delay: 1.1s; }
.card__feature:nth-child(4) { animation-delay: 1.25s; }

/* CTA — fade in last */
.card__cta {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--muted);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.15s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.4s forwards;
}

/* CTA hover */
.card__cta:hover,
.card__cta:focus {
  border-color: var(--fg);
  transform: translateY(-1px);
}

/* Card layout + header + badge + features (non-animated base) */
.card__layout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}

.card__name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.card__badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
}

.card__badge--pending {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.card__features {
  color: var(--muted);
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
}

.card__features li {
  margin-bottom: 0.25rem;
}

.card__features li::marker {
  color: var(--accent);
}

/* Stack on small screens */
@media (max-width: 500px) {
  .card__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .card__image {
    width: 100%;
    max-width: 220px;
    min-width: 0;
  }
}

/* Reduced motion for products */
@media (prefers-reduced-motion: reduce) {
  .products__glow { animation: none; }
  .card { opacity: 1; animation: none; }
  .card__image { opacity: 1; animation: none; }
  .card__info { opacity: 1; animation: none; }
  .card__feature { opacity: 1; animation: none; }
  .card__cta { opacity: 1; animation: none; }
}

.card--center {
  text-align: center;
}

.card--center .card__header {
  justify-content: center;
}

/* ================================================================
   CONTACT ICON (inline in card header)
   ================================================================ */
.contact-icon {
  color: var(--muted);
}

/* ================================================================
   STATUS BADGE (retained for potential reuse)
   ================================================================ */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.6);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(34, 211, 238, 0);    }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* ================================================================
   CONTACT (retained for potential reuse)
   ================================================================ */
.hero__contact {
  color: var(--muted);
  margin: 0;
}

.hero__contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hero__contact a:hover,
.hero__contact a:focus {
  border-bottom-color: var(--accent);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  flex-shrink: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer p { margin: 0; }
