/* ============================================
   LUMIQ ART — style.css
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --c-bg:       #F8F7FF;
  --c-surface:  #FFFFFF;
  --c-primary:  #4F46E5;
  --c-primary-h:#5B52EF;
  --c-pink:     #EC4899;
  --c-cyan:     #06B6D4;
  --c-amber:    #F59E0B;
  --c-green:    #10B981;

  /* Text */
  --c-ink:    #111827;
  --c-ink-2:  #374151;
  --c-muted:  #6B7280;
  --c-faint:  #9CA3AF;
  --c-white:  #FFFFFF;

  /* Borders */
  --c-border:  rgba(17,24,39,0.08);
  --c-border-s:rgba(17,24,39,0.14);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Font sizes */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.25rem;
  --t-2xl:  1.5rem;
  --t-3xl:  2rem;
  --t-4xl:  2.75rem;
  --t-5xl:  3.75rem;
  --t-6xl:  5rem;

  /* Spacing */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;   --sp-3:  0.75rem;
  --sp-4:  1rem;     --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;   --sp-12: 3rem;
  --sp-16: 4rem;     --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm:   6px;   --r-md:   12px;
  --r-lg:   18px;  --r-xl:   24px;
  --r-2xl:  32px;  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0,0,0,0.07),  0 1px 2px rgba(0,0,0,0.05);
  --sh-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --sh-lg: 0 12px 40px rgba(0,0,0,0.10),0 4px 12px rgba(0,0,0,0.05);
  --sh-xl: 0 24px 64px rgba(0,0,0,0.12),0 8px 20px rgba(0,0,0,0.07);
  --sh-primary: 0 8px 28px rgba(79,70,229,0.28);

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 150ms var(--ease);
  --t-base: 260ms var(--ease);
  --t-slow: 420ms var(--ease);

  /* Layout */
  --max-w:    1140px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 66px;
  --section-py: clamp(5rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
}

img, svg  { display: block; max-width: 100%; }
a         { color: inherit; text-decoration: none; }
ul, ol    { list-style: none; }
button    { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Section atoms ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(79,70,229,0.08);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}

.section-eyebrow.light {
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.1);
}

.section-title {
  font-size: clamp(var(--t-3xl), 5vw, var(--t-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--c-ink);
}

.section-title.light { color: var(--c-white); }

.section-subtitle {
  font-size: var(--t-lg);
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-top: var(--sp-4);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--sp-12), 5vw, var(--sp-20));
}

.section-header .section-subtitle { margin-inline: auto; }

.body-text {
  font-size: var(--t-lg);
  color: var(--c-muted);
  line-height: 1.8;
}

.body-text + .body-text { margin-top: var(--sp-4); }

.body-text em {
  color: var(--c-primary);
  font-style: normal;
  font-weight: 500;
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-primary), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.75rem;
  border-radius: var(--r-full);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    background var(--t-base),
    color var(--t-fast),
    border-color var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: var(--sh-primary);
}

.btn-primary:hover {
  background: var(--c-primary-h);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(79,70,229,0.38);
}

.btn-primary:active { transform: translateY(0); box-shadow: var(--sh-primary); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink-2);
  border: 1.5px solid var(--c-border-s);
}

.btn-ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(79,70,229,0.04);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.9rem 2.25rem; font-size: var(--t-lg); }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-up    { transform: translateY(52px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-slow), box-shadow var(--t-slow);
}

.header.is-scrolled {
  background: rgba(248,247,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  flex-shrink: 0;
}

.logo-mark {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  margin-left: var(--sp-10);
}

.nav-link {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-muted);
  position: relative;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--c-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-fast);
  transform-origin: center;
}

.nav-link:hover     { color: var(--c-ink); }
.nav-link.is-active { color: var(--c-ink); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-link-cta { color: var(--c-primary); font-weight: 600; }
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { color: var(--c-primary-h); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.nav-toggle:hover { background: rgba(0,0,0,0.05); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-base);
}

.nav-overlay.is-open { opacity: 1; }


/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--sp-16)) var(--sp-20);
  position: relative;
  overflow: hidden;
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(79,70,229,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 75%);
}

/* Radial colour washes */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 80% 40%, rgba(79,70,229,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 15% 75%, rgba(6,182,212,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 55% 0%, rgba(236,72,153,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-12), 6vw, var(--sp-20));
  align-items: center;
  position: relative;
  z-index: 1;
}

/* -- Hero copy -- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-5);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(var(--t-4xl), 5.5vw, var(--t-6xl));
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-6);
}

.title-gradient {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-pink) 55%, var(--c-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--t-base), 1.8vw, var(--t-xl));
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: var(--sp-10);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* -- Hero visual / phone -- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(440px, 50vw, 560px);
}

.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: relative;
  z-index: 2;
  width: 228px;
  height: 464px;
  background: #1C1B2E;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    var(--sh-xl),
    0 0 80px rgba(79,70,229,0.18),
    0 0 150px rgba(79,70,229,0.07);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 28px;
  background: #1C1B2E;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #14112B 0%, #1E1648 100%);
  border-radius: 32px;
  overflow: hidden;
}

.phone-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  z-index: 3;
}

/* App UI inside phone */
.app-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 46px 14px 14px;
}

.app-ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.app-ui-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.05em;
}

.app-ui-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c-pink), var(--c-primary));
}

.app-ui-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.stroke {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  opacity: 0.76;
}

.s1 { width:55%; top:19%; left:5%;  background:linear-gradient(90deg,#FF6B9D,transparent); transform:rotate(-6deg); }
.s2 { width:70%; top:35%; left:8%;  background:linear-gradient(90deg,#4F46E5,transparent); transform:rotate(4deg);  }
.s3 { width:45%; top:52%; left:14%; background:linear-gradient(90deg,#06B6D4,transparent); transform:rotate(-4deg); }
.s4 { width:62%; top:68%; left:5%;  background:linear-gradient(90deg,#F59E0B,transparent); transform:rotate(7deg);  }

.stroke-ring {
  position: absolute;
  border-radius: 50%;
}

.sr1 { width:52px; height:52px; top:22%; right:10%; border:1.5px solid rgba(245,158,11,0.42); }
.sr2 { width:28px; height:28px; top:55%; right:22%; border:1.5px solid rgba(6,182,212,0.35); }

.app-ui-palette {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.sw-active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.28), 0 2px 8px rgba(0,0,0,0.35);
}

/* Floating shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fs-1 {
  width:180px; height:180px;
  background: radial-gradient(circle, rgba(79,70,229,0.14) 0%, transparent 70%);
  top:-20px; right:-30px;
  animation: floatA 9s ease-in-out infinite;
}
.fs-2 {
  width:130px; height:130px;
  background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 70%);
  bottom:30px; left:-20px;
  animation: floatB 11s ease-in-out infinite;
}
.fs-3 {
  width:62px; height:62px;
  background: rgba(6,182,212,0.12);
  top:76px; left:22px;
  border-radius: var(--r-xl);
  animation: floatA 7s ease-in-out infinite reverse;
}
.fs-4 {
  width:42px; height:42px;
  background: rgba(245,158,11,0.14);
  bottom:96px; right:22px;
  border-radius: var(--r-lg);
  animation: floatB 8.5s ease-in-out infinite;
}

@keyframes floatA {
  0%,100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0)   rotate(0deg); }
  50%      { transform: translateY(14px) rotate(-8deg); }
}

/* Floating badges */
.float-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--r-full);
  padding: 6px 12px 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink);
  box-shadow: var(--sh-md);
  white-space: nowrap;
}

.fb-1 { top:18%;  left:-36px;  animation: floatA 10s ease-in-out infinite; }
.fb-2 { bottom:22%; right:-28px; animation: floatB 12s ease-in-out infinite; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-cue-line {
  width: 1.5px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--c-muted));
  animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity:0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity:1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity:1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity:0; }
}


/* ============================================
   ABOUT
   ============================================ */

.about {
  padding-block: var(--section-py);
  background: var(--c-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--sp-12), 6vw, var(--sp-20));
  align-items: center;
}

.about-copy .section-title { margin-bottom: var(--sp-6); }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.stat-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.stat-num {
  font-size: var(--t-4xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat-label {
  font-size: var(--t-sm);
  color: var(--c-muted);
  font-weight: 500;
}


/* ============================================
   APPS
   ============================================ */

.apps { padding-block: var(--section-py); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  max-width: 980px;
  margin-inline: auto;
}

.app-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.app-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: rgba(79,70,229,0.15);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.app-icon {
  width: 66px;
  height: 66px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-meta { flex: 1; }

.app-category {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-bottom: 4px;
}

.app-name {
  font-size: var(--t-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-tagline {
  font-size: var(--t-sm);
  color: var(--c-muted);
  margin-top: 2px;
}

.app-desc {
  font-size: var(--t-base);
  color: var(--c-muted);
  line-height: 1.75;
  flex: 1;
}

.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pill {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  align-self: center;
}

.btn-store:hover {
  background: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-primary);
}


/* ============================================
   WHY
   ============================================ */

.why {
  padding-block: var(--section-py);
  background: var(--c-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: var(--sp-4);
}

.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(79,70,229,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  margin-bottom: var(--sp-5);
  transition: background var(--t-base), transform var(--t-base);
}

.feature-card:hover .feature-icon {
  background: rgba(79,70,229,0.14);
  transform: scale(1.06);
}

.feature-card h3 {
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.feature-card p {
  font-size: var(--t-base);
  color: var(--c-muted);
  line-height: 1.75;
}


/* ============================================
   SHOWCASE
   ============================================ */

.showcase {
  position: relative;
  padding-block: var(--section-py);
  overflow: hidden;
  background: #0F0E25;
}

.showcase-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
}

.go-1 { width:580px; height:580px; background:rgba(79,70,229,0.2);  top:-180px;   left:-80px; }
.go-2 { width:480px; height:480px; background:rgba(236,72,153,0.13); bottom:-130px; right:-60px; }
.go-3 { width:320px; height:320px; background:rgba(6,182,212,0.08);  top:50%; left:50%; transform:translate(-50%,-50%); }

.showcase-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.showcase-inner .section-eyebrow { margin-bottom: var(--sp-4); }
.showcase-inner .section-title   { margin-bottom: var(--sp-5); }

.showcase-body {
  font-size: var(--t-lg);
  color: rgba(255,255,255,0.48);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.8;
  margin-bottom: clamp(var(--sp-12), 5vw, var(--sp-20));
}

/* Device cards */
.showcase-devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(var(--sp-4), 3vw, var(--sp-8));
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.device-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.05em;
}

.device-screen {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: transform var(--t-slow);
  width: 180px;
  height: 290px;
  box-shadow: 0 20px 52px rgba(0,0,0,0.5);
}

.device-card:hover .device-screen { transform: translateY(-10px) scale(1.02); }

.device-featured .device-screen {
  width: 220px;
  height: 370px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.07);
}

.linea-screen     { background:linear-gradient(160deg,#1A0E3A 0%,#291560 100%); }
.litepix-screen   { background:linear-gradient(160deg,#091A38 0%,#102248 100%); }
.quizplant-screen { background:linear-gradient(160deg,#052A1A 0%,#0A3828 100%); }

/* Shared device internals */
.ds-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.ds-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ds-header span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}

.ds-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.ds-footer {
  padding: 9px 14px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* Linea device content */
.ds-stroke {
  position: absolute;
  height: 2px;
  border-radius: 2px;
}

.dss1 { width:55%; top:18%; left:8%; background:linear-gradient(90deg,rgba(255,107,157,.8),transparent); transform:rotate(-5deg); }
.dss2 { width:68%; top:40%; left:9%; background:linear-gradient(90deg,rgba(79,70,229,.8),transparent);  transform:rotate(4deg);  }
.dss3 { width:44%; top:62%; left:13%;background:linear-gradient(90deg,rgba(6,182,212,.8),transparent);  transform:rotate(-4deg); }

.ds-ring {
  position: absolute;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,158,11,0.42);
  top: 22%; right: 12%;
}

.ds-swatches {
  display: flex;
  gap: 7px;
}

.ds-swatches span {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* LitePix device content */
.px-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  width: 100%;
  max-width: 120px;
}

.px-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,var(--op));
  border-radius: var(--r-md);
  transform: scale(var(--sc));
}

.ds-bar-lbl {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.ds-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.ds-bar-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-primary));
  border-radius: 2px;
}

/* QuizPlant device content */
.qp-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.qp-progress {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.qp-prog-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 2px;
}

.qp-question {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  margin-bottom: 10px;
}

.qp-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qp-opt {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 6px 8px;
}

.qp-correct {
  background: rgba(16,185,129,0.18);
  color: rgba(52,211,153,0.95);
  border: 1px solid rgba(16,185,129,0.28);
}


/* ============================================
   CONTACT
   ============================================ */

.contact { padding-block: var(--section-py); }

.contact-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.contact-inner .section-title { margin: var(--sp-4) 0 var(--sp-6); }

.contact-body {
  font-size: var(--t-lg);
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-10);
}

.social-row {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-8);
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: all var(--t-base);
}

.social-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: rgba(79,70,229,0.06);
  transform: translateY(-2px);
}


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

.footer {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-base);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}

.footer-logo .logo-mark { height:28px; width:auto; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--t-sm);
  color: var(--c-muted);
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: var(--c-ink); }

.footer-copy {
  font-size: var(--t-xs);
  color: var(--c-faint);
}


/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */

.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity var(--t-base),
    transform var(--t-base),
    visibility var(--t-base),
    background var(--t-fast),
    box-shadow var(--t-base);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--c-primary-h);
  transform: translateY(-3px);
  box-shadow: var(--sh-primary);
}


/* ============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================ */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-16);
  }

  .hero-subtitle { margin-inline: auto; }
  .hero-actions  { justify-content: center; }

  .reveal.reveal-right { transform: translateY(30px); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-12);
    text-align: center;
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-card { flex: 1; min-width: 160px; text-align: center; }
}


/* ============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================ */

@media (max-width: 640px) {
  /* Show hamburger, hide desktop links */
  .nav-toggle  { display: flex; }
  .nav-overlay { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 101;
    width: min(300px, 80vw);
    background: var(--c-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + var(--sp-8)) var(--sp-8) var(--sp-8);
    gap: 0;
    box-shadow: -8px 0 40px rgba(0,0,0,0.14);
    transform: translateX(100%);
    transition: transform var(--t-base);
    pointer-events: none;
  }

  .nav-links.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-link {
    font-size: var(--t-xl);
    font-weight: 700;
    color: var(--c-ink);
    width: 100%;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--c-border);
  }

  .nav-link-cta { margin-top: var(--sp-4); border-bottom: none; }

  /* Hero phone sizing */
  .phone { width: 196px; height: 400px; border-radius: 40px; }

  /* Feature grid → single col */
  .features-grid { grid-template-columns: 1fr; }

  /* Showcase → stacked */
  .showcase-devices { flex-direction: column; align-items: center; }
  .device-screen { width: 200px; height: 310px; }
  .device-featured .device-screen { width: 220px; height: 350px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: var(--sp-5); }
  .footer-nav   { justify-content: center; }

  /* About stats */
  .about-stats { flex-direction: column; }
  .stat-card   { min-width: unset; text-align: left; }
}

@media (max-width: 420px) {
  .hero-title   { font-size: var(--t-4xl); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn          { justify-content: center; }
  .apps-grid    { grid-template-columns: 1fr; }
  .fb-1, .fb-2  { display: none; }
}
