/* =============================================
   NemoBox — style.css
   ============================================= */

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

:root {
  --clr-bg: #0c0e13;
  --clr-surface: #13161e;
  --clr-surface-2: #1c2030;
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-text: #e8eaf0;
  --clr-text-muted: #8892a4;
  --clr-text-faint: #4e5668;

  --clr-tooltool: #4ade80;
  --clr-tooltool-glow: rgba(74, 222, 128, 0.18);

  --clr-photoedit: #a78bfa;
  --clr-photoedit-glow: rgba(167, 139, 250, 0.18);

  --clr-accent: #60a5fa;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 40px rgba(0, 0, 0, 0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--clr-accent); color: #fff; }
.btn-primary:hover { background: #93c5fd; transform: translateY(-2px); }

.btn-ghost { border: 1.5px solid var(--clr-border); color: var(--clr-text-muted); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--clr-text); }

.btn-tooltool { background: var(--clr-tooltool); color: #061c0d; font-weight: 700; }
.btn-tooltool:hover { background: #86efac; transform: translateY(-2px); box-shadow: 0 8px 24px var(--clr-tooltool-glow); }

.btn-photoedit { background: var(--clr-photoedit); color: #1a103d; font-weight: 700; }
.btn-photoedit:hover { background: #c4b5fd; transform: translateY(-2px); box-shadow: 0 8px 24px var(--clr-photoedit-glow); }

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--clr-text-faint);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 0.8rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 560px;
}
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-header .section-desc { margin: 0 auto; }

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(12, 14, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-mark { color: var(--clr-accent); font-size: 1.5rem; line-height: 1; }
.logo-text { color: var(--clr-text); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { font-size: 0.9rem; font-weight: 500; color: var(--clr-text-muted); transition: color var(--transition); }
.site-nav a:hover { color: var(--clr-text); }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--space-2xl) + 4rem) 0 var(--space-2xl);
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  background: var(--clr-surface);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: var(--clr-text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-photoedit) 50%, var(--clr-tooltool) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 2.2rem;
}
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.28; }
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--clr-accent), transparent 70%);
  top: -200px; left: 50%; transform: translateX(-60%);
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--clr-photoedit), transparent 70%);
  bottom: -100px; right: 5%;
}

/* ═══════════════════════════════
   SERVICES
═══════════════════════════════ */
.services { padding: var(--space-2xl) 0; }

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}
.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-tooltool::before { background: radial-gradient(ellipse at top left, var(--clr-tooltool-glow), transparent 60%); }
.product-photoedit::before { background: radial-gradient(ellipse at top right, var(--clr-photoedit-glow), transparent 60%); }
.product-card:hover { border-color: rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-card); }
.product-card:hover::before { opacity: 1; }

.product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.product-icon-wrap {
  position: relative;
  z-index: 2;
  width: 120px; height: 120px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tooltool-icon-wrap {
  background: #0f1c14;
  box-shadow: 0 0 40px var(--clr-tooltool-glow);
  width: 140px;
  height: 140px;
}
.photoedit-icon-wrap {
  background: #120c20;
  box-shadow: 0 0 40px var(--clr-photoedit-glow);
  width: 140px;
  height: 140px;
}
.product-icon { width: 64px; height: 64px; }
.product-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
}
.product-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 1;
}
.tooltool-glow { background: var(--clr-tooltool); }
.photoedit-glow { background: var(--clr-photoedit); }

.product-content { position: relative; z-index: 2; }
.product-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
}
.product-live {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.12);
  color: var(--clr-tooltool);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.product-name {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.product-tooltool .product-name { color: var(--clr-tooltool); }
.product-photoedit .product-name { color: var(--clr-photoedit); }
.product-slogan { font-size: 1rem; font-weight: 600; color: var(--clr-text-muted); margin-bottom: 1rem; }
.product-desc { font-size: 0.95rem; color: var(--clr-text-muted); line-height: 1.75; margin-bottom: 1.4rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--clr-text-muted); }
.feature-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.product-tooltool .feature-icon { color: var(--clr-tooltool); }
.product-photoedit .feature-icon { color: var(--clr-photoedit); }

.product-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.6rem; }
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

/* ═══════════════════════════════
   VALUES
═══════════════════════════════ */
.values { padding: var(--space-xl) 0 var(--space-2xl); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.value-item {
  padding: var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition);
}
.value-item.visible { opacity: 1; transform: translateY(0); }
.value-item:hover { border-color: rgba(255, 255, 255, 0.14); }
.value-icon { width: 36px; height: 36px; margin-bottom: 0.9rem; color: var(--clr-accent); }
.value-icon svg { width: 100%; height: 100%; }
.value-item h4 { font-size: 1rem; font-weight: 700; color: var(--clr-text); margin-bottom: 0.4rem; }
.value-item p { font-size: 0.88rem; color: var(--clr-text-muted); line-height: 1.65; }

/* ═══════════════════════════════
   ABOUT
═══════════════════════════════ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.about-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: center; }
.about-text p { color: var(--clr-text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 0.8rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--clr-text); font-weight: 700; }
.about-text .section-title { margin-bottom: 1.2rem; }
.about-stats { display: flex; flex-direction: column; gap: var(--space-md); min-width: 220px; }
.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--clr-accent); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--clr-text-muted); letter-spacing: 0.05em; }

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
.contact { padding: var(--space-2xl) 0; text-align: center; }
.contact-inner .section-desc { margin: 0 auto 1.8rem; }
.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-accent);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
  padding-bottom: 2px;
}
.contact-email:hover { border-color: var(--clr-accent); }

/* Anchor targets are offset for fixed header */
.hero,
.services,
.values,
.about,
.contact {
  scroll-margin-top: 92px;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.site-footer { background: var(--clr-surface); border-top: 1px solid var(--clr-border); }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.footer-tagline { font-size: 0.85rem; color: var(--clr-text-faint); margin-top: 0.6rem; }
.footer-links { display: flex; gap: var(--space-xl); }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--clr-text-faint); margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { font-size: 0.9rem; color: var(--clr-text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--clr-text); }
.footer-bottom { border-top: 1px solid var(--clr-border); padding: 1.2rem 0; }
.footer-bottom p { font-size: 0.82rem; color: var(--clr-text-faint); text-align: center; }

/* ═══════════════════════════════
   SCROLL TO TOP BUTTON
═══════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.scroll-to-top:hover {
  background: #93c5fd;
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; min-width: unset; }
  .stat-item { flex: 1; }
}

@media (max-width: 768px) {
  :root { --space-xl: 2.5rem; --space-2xl: 4rem; }
  html,
  body {
    height: 100%;
  }

  body {
    scroll-snap-type: y proximity;
  }

  .hero,
  .services,
  .values,
  .about,
  .contact {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 80px;
  }

  .hero,
  .values,
  .about,
  .contact {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }

  .services {
    min-height: 100svh;
  }

  .product-card { grid-template-columns: 1fr; padding: var(--space-md); gap: var(--space-md); }
  .product-photoedit .product-visual { order: -1; }
  .product-visual { min-height: 200px; }
  .hero { padding-top: calc(var(--space-2xl) + 2rem); }
  .footer-inner { flex-direction: column; gap: var(--space-md); }
}

@media (max-width: 580px) {
  .site-nav a:not(:last-child) { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
  .scroll-to-top { bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
  .scroll-to-top svg { width: 20px; height: 20px; }
}
