/* ===========================================
   ENTROFLY — style.css
   Mobile-first · Desktop overrides at 768px
   =========================================== */

/* ── Custom Properties ─────────────────────── */
:root {
  --black:        #05070B;
  --blue:         #4D7CFF;
  --white:        #FFFFFF;
  --graphite:     #111827;
  --grey-mid:     #6B7280;
  --grey-light:   #F3F4F6;
  --grey-border:  #E5E7EB;
  --font:         'Satoshi', sans-serif;

  --nav-h:        64px;
  --pad-x:        1.25rem;
  --section-py:   5rem;
  --radius-card:  12px;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* ── Container ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Typography ─────────────────────────────── */
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

p { font-size: 1rem; line-height: 1.75; }

/* ── Label ──────────────────────────────────── */
.label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.label--light { color: rgba(77, 124, 255, 0.85); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #3d6ae8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(77, 124, 255, 0.32);
}

/* ── Fade-up (IntersectionObserver) ─────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-card.fade-up:nth-child(2) { transition-delay: 80ms; }
.service-card.fade-up:nth-child(3) { transition-delay: 160ms; }
.service-card.fade-up:nth-child(4) { transition-delay: 240ms; }

/* ── Section header (shared) ─────────────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.section-header h2   { margin-bottom: 0.75rem; }
.section-header p    { color: var(--grey-mid); font-size: 1.0625rem; }


/* ===========================================
   NAVIGATION
   =========================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.nav__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Desktop links — hidden on mobile */
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--white); }

/* Hamburger button */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 1.125rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.nav-overlay__close:hover { color: var(--white); }

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.nav-overlay__link {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.nav-overlay__link:hover { color: var(--blue); }

/* Desktop: show inline links, hide hamburger */
@media (min-width: 768px) {
  .nav__links      { display: flex; }
  .nav__hamburger  { display: none; }
}


/* ===========================================
   SECTION 1 — HERO
   =========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 5rem;
  overflow: hidden;
  text-align: center;
}

/* Aurora gradient blobs */
.hero__aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Blob 1 — electric blue, top-left */
.aurora__blob--1 {
  width: 560px;
  height: 560px;
  background: #4D7CFF;
  top: -160px;
  left: -120px;
  opacity: 0.28;
  animation: aurora-1 14s ease-in-out infinite;
}

/* Blob 2 — deep indigo, bottom-right */
.aurora__blob--2 {
  width: 480px;
  height: 480px;
  background: #3730a3;
  bottom: -140px;
  right: -100px;
  opacity: 0.22;
  animation: aurora-2 18s ease-in-out infinite;
}

/* Blob 3 — mid blue, centre */
.aurora__blob--3 {
  width: 420px;
  height: 420px;
  background: #1d4ed8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: aurora-3 11s ease-in-out infinite;
}

/* Blob 4 — accent, top-right */
.aurora__blob--4 {
  width: 320px;
  height: 320px;
  background: #6366f1;
  top: -60px;
  right: 5%;
  opacity: 0.16;
  animation: aurora-4 16s ease-in-out infinite;
}

@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0)    scale(1);    opacity: 0.28; }
  40%       { transform: translate(80px, 70px)  scale(1.12); opacity: 0.36; }
  70%       { transform: translate(30px, 120px) scale(0.95); opacity: 0.22; }
}

@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0)      scale(1);    opacity: 0.22; }
  35%       { transform: translate(-70px, -80px) scale(1.08); opacity: 0.30; }
  65%       { transform: translate(50px, -50px)  scale(1.05); opacity: 0.18; }
}

@keyframes aurora-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.18; }
  50%       { transform: translate(-50%, -50%) scale(1.25); opacity: 0.28; }
}

@keyframes aurora-4 {
  0%, 100% { transform: translate(0, 0)      scale(1);    opacity: 0.16; }
  45%       { transform: translate(-60px, 80px)  scale(1.15); opacity: 0.24; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__logo {
  height: 300px;
  width: auto;
  object-fit: contain;
}

.hero__headline {
  color: var(--white);
}

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
}

@media (min-width: 768px) {
  .hero__logo { height: 384px; }
}


/* ===========================================
   SECTION 2 — SERVICES
   =========================================== */

.services {
  background: var(--white);
  padding: var(--section-py) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.375rem;
  }
}

.service-card {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 1.125rem;
}

.service-card h3 {
  color: var(--black);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--grey-mid);
  font-size: 0.9375rem;
}


/* ===========================================
   SECTION 3 — ABOUT
   =========================================== */

.about {
  background: var(--black);
  padding: var(--section-py) 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about__text h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.about__text p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.0625rem;
}

.about__vanta {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(77, 124, 255, 0.18);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 4.5rem;
  }

  .about__text { flex: 1; }

  .about__vanta {
    flex: 1;
    height: 380px;
  }
}


/* ===========================================
   SECTION 4 — FEATURED PRODUCT
   =========================================== */

.product {
  background: var(--graphite);
  padding: var(--section-py) 0;
}

.product__card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.product__name {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.product__sub {
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.0625rem;
}

.product__body {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 480px;
}


/* ===========================================
   SECTION 5 — CONTACT
   =========================================== */

.contact {
  background: var(--white);
  padding: var(--section-py) 0;
}

.contact__form {
  max-width: 560px;
  margin: 0 auto 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-mid); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.1);
}

.contact__form .btn { align-self: flex-start; }

.contact__details {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-border);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--grey-mid);
}

.contact__detail svg { flex-shrink: 0; color: var(--blue); }

.contact__detail a {
  color: var(--grey-mid);
  transition: color 0.2s;
}

.contact__detail a:hover { color: var(--blue); }

@media (min-width: 768px) {
  .contact__details {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}


/* ===========================================
   FOOTER
   =========================================== */

.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--white); }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer__links {
    flex-direction: row;
    gap: 2rem;
  }
}
