/* ============================================
   MINICLOUDS — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --navy:       #05070F;
  --deep:       #080C1A;
  --surface:    #0D1228;
  --card:       #111830;
  --border:     rgba(75, 200, 232, 0.12);
  --sky:        #4BC8E8;
  --purple:     #7B4FBF;
  --purple-lt:  #9D6FE0;
  --green:      #5DBE4A;
  --orange:     #F5A623;
  --white:      #F0F4FF;
  --muted:      #8A94B8;
  --radius:     16px;
  --radius-lg:  24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Age Gate ──────────────────────────────── */
#age-gate {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.age-gate-inner {
  max-width: 480px; width: 100%;
  text-align: center;
  animation: fadeInUp 0.6s ease both;
}
.age-gate-logo { margin: 0 auto 2rem; }
.age-gate-logo .logo-cloud {
  width: 80px; height: 80px; margin: 0 auto 1rem;
}
.age-gate h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--sky);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.age-gate p {
  color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem;
}
.age-gate-subtitle {
  font-size: 0.85rem !important;
  color: rgba(138,148,184,0.6) !important;
  margin-top: 1.5rem !important;
  line-height: 1.5;
}
.age-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-yes, .btn-no {
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition);
}
.btn-yes {
  background: linear-gradient(135deg, var(--sky), var(--purple));
  color: #fff;
  box-shadow: 0 4px 24px rgba(75,200,232,0.35);
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(75,200,232,0.5); }
.btn-no {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-no:hover { background: rgba(255,255,255,0.1); }
#age-gate.hidden { display: none; }
#age-denied {
  display: none;
  flex-direction: column; align-items: center; gap: 1rem;
}
#age-denied p { color: var(--muted); font-size: 0.95rem; }

/* ── Cosmic Background ─────────────────────── */
.cosmic-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.cosmic-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(123,79,191,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(75,200,232,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(93,190,74,0.06) 0%, transparent 60%);
}
.cosmic-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 80% at 10% 90%, rgba(123,79,191,0.15) 0%, transparent 50%);
}

/* Star canvas */
#star-canvas {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5, 7, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem; font-weight: 800;
  color: var(--sky);
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(75,200,232,0.1);
}
.nav-links a.active { color: var(--sky); }
.nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--purple)) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  font-weight: 700 !important;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(75,200,232,0.4); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(8, 12, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 99;
  flex-direction: column; gap: 0.25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active {
  background: rgba(75,200,232,0.08);
  color: var(--sky);
}

/* ── Shared Layout ─────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-wrapper {
  padding-top: 72px;
}
section { padding: 6rem 0; }
section:first-of-type { padding-top: 5rem; }

/* ── Typography ────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--sky) 0%, var(--purple-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header { max-width: 640px; margin-bottom: 4rem; }
.section-header.centered { margin: 0 auto 4rem; text-align: center; }
.section-header p {
  color: var(--muted); font-size: 1.1rem; margin-top: 1rem;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--purple));
  color: #fff;
  box-shadow: 0 4px 24px rgba(75,200,232,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(75,200,232,0.5); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.btn-outline:hover {
  background: rgba(75,200,232,0.1);
  border-color: rgba(75,200,232,0.4);
}
.btn-ghost { color: var(--sky); padding: 0.5rem 0; }
.btn-ghost:hover { gap: 0.8rem; }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(75,200,232,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(75,200,232,0.1);
}
.card-glow {
  position: relative; overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(123,79,191,0.12), transparent 60%);
  pointer-events: none;
}

/* ── Divider ───────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Tag / Badge ───────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.03em;
}
.tag-sky { background: rgba(75,200,232,0.12); color: var(--sky); }
.tag-purple { background: rgba(123,79,191,0.15); color: var(--purple-lt); }
.tag-green { background: rgba(93,190,74,0.12); color: var(--green); }
.tag-orange { background: rgba(245,166,35,0.12); color: var(--orange); }

/* ── Logo SVG Component ────────────────────── */
.logo-svg { display: block; }

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; font-size: 1.5rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  color: rgba(240,244,255,0.6);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.78rem; color: rgba(138,148,184,0.5);
  line-height: 1.7; max-width: 700px;
}
.footer-legal strong { color: rgba(138,148,184,0.8); }
.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }
.footer-badges .tag { font-size: 0.7rem; }

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow  { animation: glow-pulse 3s ease-in-out infinite; }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ── Grid Layouts ──────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; }
  .container { padding: 0 1.25rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}

/* ── Page-specific additions loaded per-page ── */

/* Home hero */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}
.hero-content { max-width: 700px; }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.2rem; color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-logo-wrap {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(48%, 560px);
  pointer-events: none;
  opacity: 0.92;
}
.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem; font-weight: 900;
  color: var(--sky);
}
.hero-stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* Promise strip */
.promise-strip {
  padding: 3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promise-items {
  display: flex; gap: 0; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.promise-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  flex: 1; min-width: 160px;
}
.promise-item:not(:last-child) {
  border-right: 1px solid var(--border);
}
.promise-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(75,200,232,0.1);
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.promise-item span {
  font-size: 0.88rem; font-weight: 600; color: var(--white);
}

/* Mission section */
.mission-text {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  color: rgba(240,244,255,0.85);
  font-weight: 400;
}
.mission-text strong {
  color: var(--sky);
  font-weight: 700;
}

/* Product card */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: rgba(75,200,232,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(123,79,191,0.15);
}
.product-card-visual {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-body { padding: 2rem; }
.product-card-body h3 { margin-bottom: 0.5rem; }
.product-card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.product-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* Process steps */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.process-step:hover {
  border-color: rgba(75,200,232,0.25);
}
.process-num {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, rgba(75,200,232,0.15), rgba(123,79,191,0.15));
  border: 1px solid rgba(75,200,232,0.2);
  color: var(--sky);
  flex-shrink: 0;
}
.process-step h3 { margin-bottom: 0.75rem; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* Story timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--sky), var(--purple), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -2.65rem; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 12px var(--sky);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item h4 { margin-bottom: 0.5rem; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* Value pillars */
.pillar {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.pillar:hover { border-color: rgba(75,200,232,0.25); transform: translateY(-3px); }
.pillar-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.pillar h4 { margin-bottom: 0.5rem; }
.pillar p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* Compliance */
.compliance-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}
.compliance-block h3 {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}
.compliance-block h3 .icon {
  width: 40px; height: 40px;
  background: rgba(75,200,232,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.compliance-list { list-style: none; }
.compliance-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.93rem; color: rgba(240,244,255,0.8);
  border-bottom: 1px solid rgba(75,200,232,0.06);
}
.compliance-list li:last-child { border-bottom: none; }
.compliance-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-group label {
  font-size: 0.83rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(75,200,232,0.5);
  background: rgba(75,200,232,0.05);
  box-shadow: 0 0 0 3px rgba(75,200,232,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(138,148,184,0.5); }
.form-group select option { background: var(--deep); }
.form-group textarea { resize: vertical; min-height: 130px; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-logo-wrap { display: none; }
  .hero-stats { gap: 1.5rem; }
  .promise-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step { grid-template-columns: 1fr; }
}
