@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@500;600;700;800&display=swap");

/* Heliocode — static site (Firebase / Google static hosting ready) */
:root {
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent2: #38bdf8;
  --amber: #fbbf24;
  --card: rgba(15, 23, 42, 0.55);
  --stroke: rgba(148, 163, 184, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background-color: #111827;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(45, 212, 191, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(56, 189, 248, 0.09), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(251, 191, 36, 0.05), transparent 50%),
    linear-gradient(165deg, #111827 0%, #1e293b 42%, #111827 100%);
  background-attachment: fixed;
  position: relative;
}

/* subtle animated mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.045) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 45%);
  animation: mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

/* fine grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: var(--accent);
}

.wrap {
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-link img {
  height: clamp(4.5rem, 14vw, 7.5rem);
  width: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 24px rgba(45, 212, 191, 0.15));
}

@media (min-width: 768px) {
  .logo-link img {
    height: clamp(5.5rem, 10vw, 8.5rem);
    max-width: 480px;
  }
}

nav {
  display: none;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-outline {
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
}

.btn-outline:hover {
  background: rgba(45, 212, 191, 0.2);
}

.btn-wa {
  background: #25d366;
  color: #fff;
}

.btn-wa:hover {
  filter: brightness(1.05);
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #22d3ee);
  color: #020617;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.25);
}

/* ——— Sections ——— */
section {
  padding: 3rem 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.hero-enhanced {
  position: relative;
}

.hero-enhanced::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(100%, 72rem);
  height: 100%;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.07) 0%, transparent 45%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.kicker {
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0.75rem 0 0;
  font-weight: 800;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 38rem;
}

.badge {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.06));
  color: #fde68a;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15), transparent 65%);
  filter: blur(2px);
}

.hero-visual img {
  position: relative;
  width: min(100%, 400px);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.4));
}

.band {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.35);
}

h2 {
  font-family: "Outfit", "DM Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.grid-products {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--stroke);
  border-radius: 1.1rem;
  padding: 1.35rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  font-family: "Outfit", sans-serif;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: #fde68a;
  letter-spacing: -0.01em;
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mission-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mission,
.vision {
  border-radius: 1.1rem;
  padding: 1.35rem;
}

.mission {
  border: 1px solid rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.07);
}

.vision {
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.07);
}

.why-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.4);
}

.cta-box {
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(45, 212, 191, 0.28);
  padding: 2.25rem 1.5rem;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(15, 23, 42, 0.6));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

footer {
  border-top: 1px solid var(--stroke);
  padding: 2.5rem 1rem 2rem;
  background: rgba(2, 6, 23, 0.65);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo img {
  height: clamp(3.5rem, 8vw, 5rem);
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.75rem;
  color: #64748b;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.1rem;
  border: 1px solid var(--stroke);
  background: #0f172a;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.modal input,
.modal textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stroke);
  background: #020617;
  color: var(--text);
  font: inherit;
}

.modal textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.modal-msg {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.modal-msg.ok {
  color: var(--accent);
}

.modal-msg.err {
  color: #f87171;
}

.float-wa {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 50;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 9999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.float-wa svg {
  width: 2rem;
  height: 2rem;
  fill: #fff;
}

/* ——— Legal pages (Privacy / Terms) ——— */
.page-legal .kicker {
  font-family: "Outfit", sans-serif;
}

.legal-hero {
  position: relative;
  padding: 2.5rem 1rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12) 0%, rgba(30, 41, 59, 0.85) 45%, rgba(99, 102, 241, 0.1) 100%);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(45, 212, 191, 0.15), transparent 55%);
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #a5f3fc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: #e2e8f0;
}

.legal-hero-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.25), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.legal-hero-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: #5eead4;
  fill: none;
  stroke-width: 1.75;
}

.legal-hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 0%, #a5f3fc 50%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.legal-hero-lead {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.legal-meta-pill {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.5);
}

.legal-container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.legal-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.45) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 1.35rem 2.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
  .legal-card {
    padding: 2.5rem 2.25rem 2.75rem;
  }
}

.legal-section {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section h2 {
  font-family: "Outfit", sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.08rem;
  margin: 0 0 0.65rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}

.legal-num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #2dd4bf, #22d3ee);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.legal-section p,
.legal-section li {
  font-size: 0.94rem;
  color: #b8c5d4;
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
}

.legal-section li {
  margin: 0.35rem 0 0;
}

.legal-section a {
  color: #5eead4;
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-section strong {
  color: #f1f5f9;
  font-weight: 600;
}

.legal-highlight {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.06);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.88rem;
}

.footer-legal-links a {
  color: #5eead4;
  text-decoration: none;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-legal-links .sep {
  color: #475569;
  user-select: none;
}
