/*
 * Landing Page — Inspyr Media (inspyr.nl)
 * Aesthetic: Modern tech — dark sophistication meets focused energy
 * Palette: Dark slate + Inspyr Blue (#4DABD4)
 * Typography: Funnel Display (display) + Outfit (body)
 */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
.page {
  --primary: #1B2D3A;
  --primary-dark: #0F1C26;
  --primary-light: #2A4457;
  --primary-pale: #F0F5F8;
  --primary-wash: rgba(27, 45, 58, 0.05);

  --accent: #4DABD4;
  --accent-hover: #6BBDE0;
  --accent-dark: #2D8AB5;
  --accent-muted: #1E6B8E;
  --accent-pale: #EBF7FC;
  --accent-wash: rgba(77, 171, 212, 0.10);

  /* Product accent colors */
  --amber: #FBBF24;
  --amber-dark: #D97706;
  --amber-muted: #92400E;
  --amber-wash: rgba(251, 191, 36, 0.10);
  --amber-bg: #FFFBEB;

  --teal: #2DD4BF;
  --teal-dark: #0D9488;
  --teal-muted: #115E59;
  --teal-wash: rgba(45, 212, 191, 0.10);
  --teal-bg: #F0FDFA;

  --coral: #FB7185;
  --coral-dark: #E11D48;
  --coral-muted: #9F1239;
  --coral-wash: rgba(251, 113, 133, 0.10);
  --coral-bg: #FFF1F2;

  --ink: #1B2D3A;
  --ink-muted: #4A6274;
  --ink-faint: #8BA3B5;

  --surface: #ffffff;
  --background: #FAFBFC;
  --background-alt: #F0F4F7;

  --font-display: 'Funnel Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(27, 45, 58, 0.06);
  --shadow-card-hover:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(27, 45, 58, 0.1);
}

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

/* ─── Page Shell ─── */
.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise texture overlay */
.page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Floating Geometric Shapes (Hero) ─── */
.floatingShapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floatingShape {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(2rem, 5vw, 3.5rem);
  height: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  opacity: 0;
  animation:
    floatShapeIn 1s var(--ease-out-expo) forwards,
    floatShape 6s ease-in-out infinite;
  animation-delay:
    var(--delay),
    calc(var(--delay) + 1s);
}

.floatingShape svg {
  width: 100%;
  height: 100%;
}

@keyframes floatShapeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 0.08;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

/* ─── Floating Decorative Elements (Page-level) ─── */
.floatingElements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floatingEl {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(1.8rem, 4vw, 3rem);
  height: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  opacity: 0;
  animation:
    floatElIn 1.2s var(--ease-out-expo) forwards,
    floatElDrift 8s ease-in-out infinite;
  animation-delay:
    var(--delay),
    calc(var(--delay) + 1.2s);
}

.floatingEl svg {
  width: 100%;
  height: 100%;
}

@keyframes floatElIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.7);
  }
  to {
    opacity: 0.06;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatElDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 2rem 8rem;
  background: var(--primary);
  overflow: hidden;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, rgba(77, 171, 212, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 30%, rgba(77, 171, 212, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 35% 45% at 85% 60%, rgba(77, 171, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.heroInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
}

.logoWrap {
  margin-bottom: 2.5rem;
  animation: slideDown 1.2s var(--ease-out-expo) forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
  width: clamp(280px, 50vw, 440px);
  height: auto;
  /* Invert to white for dark background */
  filter: brightness(0) invert(1);
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.8vw, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.25rem 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.45s forwards;
  opacity: 0;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 2.5rem 0;
  max-width: 520px;
  animation: fadeUp 1s var(--ease-out-expo) 0.55s forwards;
  opacity: 0;
}

.heroCta {
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
  opacity: 0;
}

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

/* ─── Primary CTA Button ─── */
.ctaPrimary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--accent);
  padding: 0.9375rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.15),
    0 6px 20px rgba(77, 171, 212, 0.25);
  transition: all 0.25s var(--ease-out-expo);
}

.ctaPrimary:hover {
  background: var(--accent-hover);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(77, 171, 212, 0.35);
  transform: translateY(-2px);
}

.ctaPrimary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 3px 8px rgba(77, 171, 212, 0.15);
}

.ctaPrimary svg {
  transition: transform 0.25s var(--ease-out-expo);
}

.ctaPrimary:hover svg {
  transform: translateY(3px);
}

/* ═══════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.sectionAlt {
  background: var(--background-alt);
}

.sectionAlt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 40% at 10% 80%,
    rgba(27, 45, 58, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.sectionInner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.sectionEyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin: 0 0 0.75rem 0;
}

.sectionTitle {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 3.5rem 0;
}

.sectionProse {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 620px;
  margin: -1.5rem auto 0;
  text-align: center;
}

.sectionProse + .sectionProseFollow {
  margin-top: 1.25rem;
}

/* ─── History block (inset within About) ─── */
.historyBlock {
  max-width: 620px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 1.75rem;
  background: var(--background-alt);
  border: 1px solid rgba(27, 45, 58, 0.06);
  border-radius: var(--radius-md);
  text-align: center;
}

.historyTitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin: 0 0 1rem 0;
}

.historyText {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: 0;
}

.historyText + .historyText {
  margin-top: 1rem;
}

/* ═══════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════ */
.productRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.productRow--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

.productCard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease-out-expo);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

/* Gradient top bar — slides in on hover */
.productCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.productCard:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.productCard:hover::before {
  transform: scaleX(1);
}

/* Lift content above the overlay */
.productIcon,
.productBody {
  position: relative;
  z-index: 1;
}

/* ─── Default (hero-dark) state per product ─── */

/* Amber — PriceGuard */
.productCard--amber {
  background:
    #27272A
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(251, 191, 36, 0.12) 0%, transparent 60%);
}
.productCard--amber::before { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.productCard--amber .productName { color: #ffffff; }
.productCard--amber .productTagline { color: #FBBF24; }
.productCard--amber .productDesc { color: rgba(255, 255, 255, 0.55); }
.productCard--amber .productLink { color: #FBBF24; }
.productCard--amber .productIcon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }

/* Teal — Polyknot */
.productCard--teal {
  background:
    #173a3b
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(149, 245, 0, 0.10) 0%, transparent 60%);
}
.productCard--teal::before { background: linear-gradient(90deg, #4a7d00, #95f500); }
.productCard--teal .productName { color: #ffffff; }
.productCard--teal .productTagline { color: #95f500; }
.productCard--teal .productDesc { color: rgba(255, 255, 255, 0.55); }
.productCard--teal .productBadge { color: #95f500; background: rgba(149, 245, 0, 0.1); border-color: rgba(149, 245, 0, 0.2); }
.productCard--teal .productIcon { background: rgba(149, 245, 0, 0.10); border-color: rgba(149, 245, 0, 0.25); }
.productCard--teal .productIcon img { filter: brightness(0) invert(1); transition: filter 0.4s var(--ease-out-expo); }

/* Coral — Vigor Timer */
.productCard--coral {
  background:
    #1C1C1E
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(251, 146, 60, 0.12) 0%, transparent 60%);
}
.productCard--coral::before { background: linear-gradient(90deg, #0055FF, #3B82F6); }
.productCard--coral .productName { color: #ffffff; }
.productCard--coral .productTagline { color: #FB923C; }
.productCard--coral .productDesc { color: rgba(255, 255, 255, 0.55); }
.productCard--coral .productBadge { color: #FB923C; background: rgba(251, 146, 60, 0.1); border-color: rgba(251, 146, 60, 0.2); }


.productIcon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  transition: all 0.35s var(--ease-out-expo);
}

.productIcon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* iOS app icon shape */
.productIcon--appIcon {
  padding: 0;
  border: none;
  background: none !important;
  border-radius: 13.5px; /* iOS squircle approximation */
  overflow: hidden;
}

.productIcon--appIcon img {
  width: 60px;
  height: 60px;
  border-radius: 13.5px;
}

.productBody {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.productName {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.25rem 0;
  transition: color 0.4s var(--ease-out-expo);
}

.productTagline {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  transition: color 0.4s var(--ease-out-expo);
}

.productDesc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 1.5rem 0;
  flex: 1;
  transition: color 0.4s var(--ease-out-expo);
}

.productLink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: auto;
  transition: gap 0.25s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}

.productCard:hover .productLink {
  gap: 0.625rem;
}

.productBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding: 0.375rem 0.875rem;
  background: var(--primary-wash);
  border: 1px solid rgba(27, 45, 58, 0.08);
  border-radius: 100px;
  margin-top: auto;
  transition: all 0.4s var(--ease-out-expo);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  padding: 1.25rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-faint);
  background: var(--background);
  border-top: 1px solid rgba(27, 45, 58, 0.06);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.footerLogo {
  margin-right: 6px;
}

.footerDot {
  margin: 0 0.5rem;
  color: var(--ink-faint);
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
  .productRow {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 1.5rem 6rem;
    min-height: auto;
    padding-top: max(3rem, 12vh);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .section {
    padding: 4rem 1.25rem;
  }

  .logo {
    width: clamp(200px, 70vw, 300px);
  }

  .productCard {
    padding: 2rem 1.5rem 1.75rem;
  }

  .floatingShape {
    display: none;
  }

  .floatingEl {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .footerDot {
    display: none;
  }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .floatingShape,
  .floatingEl,
  .logoWrap,
  .tagline,
  .subtitle,
  .heroCta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .productCard:hover,
  .ctaPrimary:hover {
    transform: none;
  }

  .ctaPrimary:hover svg {
    transform: none;
  }
}
