/* FORMALIG — Static Site Design System */

:root, .dark {
  --bg: #050508;
  --bg-elevated: #0c0c14;
  --bg-card: #111119;
  --bg-image: #0a0a10;
  --text: #f4f4f5;
  --text-muted: #9494a3;
  --border: rgba(255,255,255,.08);
  --glass: rgba(12,12,20,.75);
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --hero-glow: rgba(59,130,246,.35);
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --nav-h: 76px;
}

.light {
  --bg: #f3f6fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-image: #e9eef7;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15,23,42,.1);
  --glass: rgba(255,255,255,.85);
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --hero-glow: rgba(37,99,235,.2);
  --shadow: 0 24px 60px rgba(15,23,42,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .35s, color .35s;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1280px, 92vw); margin: 0 auto; }

.font-display { font-family: 'Oswald', sans-serif; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  transition: all .4s cubic-bezier(.22,1,.36,1);
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1280px, 92vw); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img--footer { height: 40px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-weight: 900; font-size: .85rem; color: #fff;
  box-shadow: 0 8px 24px var(--hero-glow);
}
.logo-text { font-family: 'Oswald', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  padding: .5rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 500;
  color: var(--text-muted); transition: .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(128,128,128,.12); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; transition: .25s;
}
.theme-btn:hover { color: var(--text); border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .875rem;
  border: none; cursor: pointer; transition: .3s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 28px var(--hero-glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { background: rgba(128,128,128,.08); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: .5rem; }

.hero-modern {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--nav-h) + 1rem) clamp(2rem, 7vw, 6rem) 0.75rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
  margin-top: clamp(0.25rem, 2vh, 1.25rem);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: floatOrb 12s ease-in-out infinite;
}
.hero-orb-1 { width: 520px; height: 520px; background: #3b82f6; top: -10%; left: -5%; }
.hero-orb-2 { width: 420px; height: 420px; background: #8b5cf6; bottom: 5%; right: 20%; animation-delay: -4s; }
.hero-orb-3 { width: 280px; height: 280px; background: #ec4899; top: 40%; left: 35%; animation-delay: -8s; opacity: .25; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: .4;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  justify-self: end;
  align-self: start;
  padding-right: 0.5rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem .4rem .5rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--glass);
  backdrop-filter: blur(12px); font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1.75rem; animation: fadeUp .8s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 12px #22c55e; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1.75rem;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  margin-bottom: 0.2em;
}
.hero-title .line:last-child { margin-bottom: 0; }
.hero-title .line span { display: block; animation: slideUp .9s cubic-bezier(.22,1,.36,1) both; }
.hero-title .line:nth-child(2) span { animation-delay: .14s; }
@keyframes slideUp { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 440px; margin-bottom: 1.5rem; animation: fadeUp .8s .35s ease both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; animation: fadeUp .8s .45s ease both; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border); animation: fadeUp .8s .55s ease both;
}
.hero-stat strong { display: block; font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-stat span { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.hero-showcase {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(340px, 82vw);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  align-self: start;
  padding-left: 0.5rem;
  padding-top: 0.15rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  perspective: 1200px;
}

.hero-flip-shadow {
  position: absolute;
  inset: 6% -8% -6% 10%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid var(--border);
  transform: rotate(4deg);
  z-index: 0;
  pointer-events: none;
}

.hero-flip {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.hero-flip-inner.is-flipped {
  transform: rotateY(180deg);
}

.hero-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.hero-flip-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-flip-face--back {
  transform: rotateY(180deg);
}

.hero-spotlight {
  position: absolute; width: 140%; height: 140%; top: -20%; left: -20%;
  background: radial-gradient(circle at 50% 45%, var(--hero-glow), transparent 55%);
  pointer-events: none; z-index: 0;
}
.hero-dots {
  position: relative;
  margin-top: 1.25rem;
  display: flex;
  gap: .5rem;
  justify-content: center;
  z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: none;
  background: var(--text-muted); opacity: .4; cursor: pointer; transition: .3s;
}
.hero-dots button.active { width: 28px; opacity: 1; background: var(--accent); }
.scroll-hint {
  position: relative;
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

.section { padding: 6rem 0; }
.hero-modern + .section {
  padding-top: 2rem;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.hero-modern + .section .section-header { margin-bottom: 2.5rem; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-title { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.category-card {
  padding: 2rem; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-card); transition: .35s;
}
.category-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.3); box-shadow: var(--shadow); }
.category-card .emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.category-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.5rem; margin-bottom: .25rem; }
.category-card p { color: var(--text-muted); font-size: .875rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-grid--featured {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .product-grid--featured { grid-template-columns: repeat(5, 1fr); }
}
.product-card { border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); overflow: hidden; transition: .35s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(59,130,246,.25); }
.product-card-img { aspect-ratio: 3/4; background: var(--bg-image); padding: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card-img img { max-height: 100%; object-fit: contain; transition: transform .5s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1.25rem; }
.product-card-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.product-card-title { font-weight: 600; margin-top: .35rem; font-size: .95rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.product-tags span { font-size: .65rem; padding: .2rem .5rem; border-radius: 999px; background: rgba(128,128,128,.1); color: var(--text-muted); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card { padding: 2rem; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); transition: .3s; }
.feature-card:hover { border-color: rgba(59,130,246,.25); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(139,92,246,.15)); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1.25rem; }
.feature-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.25rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .875rem; }

.cta-banner { border-radius: 28px; border: 1px solid var(--border); padding: 4rem 2rem; text-align: center; background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08)); }
.cta-banner h2 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.cta-banner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.page-hero { padding: calc(var(--nav-h) + 4rem) 0 3rem; text-align: center; }
.page-hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); }

.filters-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-size: .8rem; cursor: pointer; transition: .25s; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-box { width: 100%; padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: .9rem; margin-bottom: 1.5rem; }
.search-box:focus { outline: none; border-color: var(--accent); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: calc(var(--nav-h) + 3rem) 0 4rem; }
.product-gallery-main { position: relative; aspect-ratio: 1; border-radius: 24px; border: 1px solid var(--border); background: var(--bg-image); padding: 2rem; display: flex; align-items: center; justify-content: center; cursor: zoom-in; transition: border-color .25s, box-shadow .25s; }
.product-gallery-main:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.product-gallery-main img { max-height: 100%; object-fit: contain; pointer-events: none; }
.product-gallery-zoom { position: absolute; right: 1rem; bottom: 1rem; padding: .4rem .75rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .25s; }
.product-gallery-main:hover .product-gallery-zoom { opacity: 1; }

.image-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 2rem; background: rgba(0,0,0,.88); backdrop-filter: blur(8px); cursor: zoom-out; animation: lightbox-in .2s ease; }
.image-lightbox img { max-width: min(96vw, 1200px); max-height: 92vh; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.45); cursor: default; }
.image-lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background .2s; }
.image-lightbox-close:hover { background: rgba(255,255,255,.22); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.product-info h1 { font-family: 'Oswald', sans-serif; font-size: clamp(2rem, 4vw, 3rem); margin: .5rem 0 1rem; }
.product-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
.spec-grid strong { display: block; font-size: .95rem; }
.spec-grid span { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .5rem; color: var(--text-muted); }
.form-input { width: 100%; padding: .875rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: .9rem; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.contact-card { padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 1rem; }

.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: var(--bg-elevated); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text-muted); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--text-muted); font-size: .875rem; transition: .2s; }
.footer-grid li a { color: var(--text-muted); }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .75rem; color: var(--text-muted); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 3rem 0; }
.stat-card { padding: 2rem; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); text-align: center; }
.stat-card strong { display: block; font-family: 'Oswald', sans-serif; font-size: 2.5rem; }
.stat-card span { font-size: .8rem; color: var(--text-muted); }

.process-step { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: 2rem; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 1rem; align-items: center; }
.process-num { font-family: 'Oswald', sans-serif; font-size: 3rem; color: var(--text-muted); opacity: .3; }

@media (max-width: 960px) {
  .hero-modern { padding-bottom: 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-content { max-width: none; justify-self: stretch; padding-right: 0; }
  .hero-showcase { height: auto; order: -1; justify-self: center; align-self: center; padding-left: 0; padding-top: 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 4vw; right: 4vw; padding: 1rem;
    background: var(--glass); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px;
  }
  .product-detail, .contact-grid, .form-grid { grid-template-columns: 1fr; }
}

.reveal { opacity: 0; transform: translateY(32px); transition: .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
