/* ============================================================
   EUROPAK d.o.o. — Midnight Glass design system
   Hand-built. No framework. Teal signature on deep midnight.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --bg:            #05090e;
  --bg-2:          #080d14;
  --bg-3:          #0b121b;
  --surface:       rgba(255, 255, 255, 0.038);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --surface-3:     rgba(255, 255, 255, 0.09);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);

  --text:          #e9f1f6;
  --text-dim:      #9aabb8;
  --text-faint:    #5d6d7a;

  --accent:        #27dccb;
  --accent-bright: #63f2e6;
  --accent-deep:   #0c8f86;
  --accent-blue:   #3a9bff;
  --accent-glow:   rgba(39, 220, 203, 0.45);
  --grad:          linear-gradient(115deg, #74f4e8 0%, #27dccb 42%, #3a9bff 100%);
  --grad-soft:     linear-gradient(115deg, rgba(116,244,232,.16), rgba(58,155,255,.10));

  /* type */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --fs-hero:  clamp(2.7rem, 7.4vw, 6.6rem);
  --fs-h2:    clamp(2rem, 4.6vw, 3.7rem);
  --fs-h3:    clamp(1.3rem, 2.3vw, 1.95rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body:  1.02rem;
  --fs-sm:    0.86rem;

  /* space + shape */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --pad:  clamp(1.2rem, 5vw, 2rem);
  --section: clamp(5rem, 12vh, 9rem);
  --maxw: 1220px;

  --shadow:    0 24px 60px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
  --glow:      0 0 70px -12px var(--accent-glow);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Custom cursor is opt-in: the native cursor is hidden ONLY once JS turns it on,
   so a script failure can never leave the page with no cursor. */
html.cursor-on, html.cursor-on * { cursor: none; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select { cursor: auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #04120f; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2732; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #26343f; }

/* ---------- Ambient background layers ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(39,220,203,0.10), transparent 60%),
    radial-gradient(50vw 50vw at 8% 12%, rgba(58,155,255,0.09), transparent 60%),
    var(--bg);
}
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform; display: none;
}
html.cursor-on .cursor-dot, html.cursor-on .cursor-ring { display: block; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent-bright); }
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.35);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor-ring.hover { width: 66px; height: 66px; background: rgba(39,220,203,0.10); border-color: var(--accent); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: .7; }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); margin: 1rem 0 .9rem; }
.section-head p { color: var(--text-dim); font-size: var(--fs-lead); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* glass surface */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: 1.02em 1.7em; border-radius: 100px; font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; color: #04120f; background: var(--grad);
  overflow: hidden; will-change: transform;
  box-shadow: 0 14px 40px -14px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,.2);
  transition: box-shadow .35s var(--ease), transform .2s var(--ease);
}
.btn:hover { box-shadow: 0 20px 55px -12px var(--accent-glow), inset 0 0 0 1px rgba(255,255,255,.35); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost {
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-strong); }
.btn-lg { padding: 1.15em 2em; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600;
  color: var(--accent); font-size: .95rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 1.1rem var(--pad);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: .7rem;
  background: rgba(6,10,15,0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo img { height: 48px; width: auto; filter: brightness(1.08); transition: height .4s var(--ease); }
.nav.scrolled .nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links > li > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .6em 1.2em; border-radius: 100px; font-size: .92rem; font-weight: 500;
  color: var(--text-dim); transition: color .25s, background .25s;
}
.nav-links > li > a:hover, .nav-drop > button:hover, .nav-drop:hover > button { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > button svg { width: 13px; height: 13px; opacity: .7; transition: transform .3s; }
.nav-drop:hover > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; padding: .5rem; opacity: 0; visibility: hidden;
  background: rgba(10,16,23,0.9); border: 1px solid var(--border);
  border-radius: var(--r); backdrop-filter: blur(24px); box-shadow: var(--shadow-lg);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px;
  color: var(--text-dim); font-size: .92rem; transition: background .2s, color .2s;
}
.nav-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-menu .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: .6rem; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column;
  justify-content: center; gap: .4rem; padding: 6rem var(--pad) 2rem;
  background: rgba(5,9,14,0.96); backdrop-filter: blur(20px);
  transform: translateY(-100%); transition: transform .5s var(--ease); pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 700; padding: .35rem 0; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .sub { font-size: 1rem; color: var(--text-dim); font-family: var(--font-body); font-weight: 500; padding-left: 1rem; border: none; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 4.5rem; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1.3s ease; }
#hero-canvas.ready { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(95deg, rgba(5,9,14,.92) 0%, rgba(5,9,14,.58) 42%, rgba(5,9,14,.14) 72%, rgba(5,9,14,0) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(5,9,14,0) 26%); }
.hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 680px; }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; }
.hero-sub { margin-top: 1.7rem; max-width: 48ch; font-size: var(--fs-lead); color: var(--text-dim); }
.hero-actions { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-mini { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--text-dim); font-size: .9rem; }
.hero-mini li { display: flex; align-items: center; gap: .55rem; }
.hero-mini .d { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--accent-glow); }

/* aurora background */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.aurora.a1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(39,220,203,.5), transparent 60%); top: -12%; right: -4%; animation: drift1 22s ease-in-out infinite; }
.aurora.a2 { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(58,155,255,.42), transparent 60%); bottom: -18%; left: -8%; animation: drift2 26s ease-in-out infinite; }
.aurora.a3 { width: 28vw; height: 28vw; background: radial-gradient(circle, rgba(116,244,232,.32), transparent 60%); top: 32%; left: 42%; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-6%, 6%); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(8%, -5%); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, -4%) scale(1.15); } }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 66px 66px; -webkit-mask-image: radial-gradient(72% 62% at 62% 42%, #000, transparent 76%); mask-image: radial-gradient(72% 62% at 62% 42%, #000, transparent 76%); opacity: .3; }

/* hero visual (parallax glass) */
.hero-visual { position: relative; z-index: 3; min-height: 480px; display: flex; align-items: center; justify-content: center; perspective: 1100px; }
.halo { position: absolute; width: 116%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(39,220,203,0), rgba(39,220,203,.38), rgba(58,155,255,.30), rgba(39,220,203,0)); filter: blur(40px); opacity: .55; animation: spin 26s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card { position: relative; width: min(430px, 80%); aspect-ratio: 3 / 3.5; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 90px -30px var(--accent-glow); will-change: transform; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .sweep { position: absolute; top: -30%; left: -60%; width: 45%; height: 160%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0%,100% { left: -60%; opacity: 0; } 42% { opacity: 1; } 58% { opacity: 1; } 92% { left: 150%; opacity: 0; } }
.hero-chip { position: absolute; z-index: 4; display: flex; align-items: center; padding: .62rem .98rem; font-size: .82rem; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); will-change: transform; }
.hero-chip b { color: var(--accent-bright); font-weight: 700; }
.hero-chip.chip-1 { top: 6%; right: 0%; }
.hero-chip.chip-2 { bottom: 12%; left: -2%; }
.hero-chip.chip-3 { top: 46%; left: -9%; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-cue .mouse { width: 24px; height: 38px; border: 1.5px solid var(--border-strong); border-radius: 20px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: var(--accent); border-radius: 3px; transform: translateX(-50%); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; padding: 1.4rem 0; border-block: 1px solid var(--border); overflow: hidden; background: rgba(255,255,255,0.012); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .8rem; color: var(--text-dim); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { padding: 2rem 1.6rem; border-radius: var(--r-lg); text-align: left; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.stat .num .suffix { -webkit-text-fill-color: var(--accent); }
.stat .label { margin-top: .7rem; color: var(--text-dim); font-size: .92rem; }

/* ---------- Split / story ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story-media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,9,14,0.55)); }
.story-media .float-card {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: 1rem;
}
.story-media .float-card .big { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.story-text h2 { font-size: var(--fs-h2); margin: 1rem 0 1.3rem; }
.story-text p { color: var(--text-dim); margin-bottom: 1.1rem; }
.tick-list { display: grid; gap: .9rem; margin: 1.6rem 0 2rem; }
.tick-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text); }
.tick-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.tick-list .tick svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- Products showcase ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-height: 340px;
  padding: 1.6rem; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  transform-style: preserve-3d; will-change: transform;
}
.pcard:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pcard .pcard-media { position: absolute; inset: 0; z-index: 0; opacity: .32; transition: opacity .5s, transform .8s var(--ease); }
.pcard .pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,9,14,0.35) 0%, rgba(5,9,14,0.86) 78%); }
.pcard:hover .pcard-media { opacity: .5; transform: scale(1.06); }
.pcard > * { position: relative; z-index: 2; }
.pcard .pc-index { font-family: var(--font-display); font-size: .82rem; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.pcard h3 { margin-top: auto; font-size: 1.4rem; }
.pcard p { margin-top: .6rem; color: var(--text-dim); font-size: .92rem; }
.pcard .pc-go { margin-top: 1.2rem; }
.pcard.feature { grid-column: span 2; }
@media (max-width: 900px) { .pcard.feature { grid-column: span 1; } }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.value { padding: 2rem; border-radius: var(--r-lg); }
.value .v-ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 1.4rem; }
.value .v-ico svg { width: 26px; height: 26px; color: var(--accent); }
.value h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.value p { color: var(--text-dim); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.6rem, 6vw, 5rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 50% 0%, rgba(39,220,203,0.16), transparent 70%), var(--bg-3); }
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--text-dim); font-size: var(--fs-lead); margin: 1.1rem auto 2rem; max-width: 52ch; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: clamp(3rem, 7vw, 5rem) 2rem; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer-brand img { height: 60px; margin-bottom: 1.3rem; }
.footer-brand p { color: var(--text-dim); font-size: .92rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: .75rem; }
.footer li a, .footer .fc { color: var(--text-dim); font-size: .93rem; transition: color .2s; }
.footer li a:hover { color: var(--accent); }
.footer .fc { display: flex; gap: .6rem; align-items: flex-start; }
.footer .fc svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-faint); font-size: .84rem; }
.footer-bottom .info { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Reveal animation base ---------- */
/* Visible by default. JS adds .reveal-hidden only to below-the-fold items,
   then .in-view to animate them in. Content is never hidden without JS. */
[data-reveal].reveal-hidden { opacity: 0; transform: translateY(24px); }
[data-reveal].in-view { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; padding: clamp(8rem, 16vh, 12rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50vw 40vw at 78% 0%, rgba(39,220,203,0.12), transparent 65%), radial-gradient(40vw 40vw at 5% 30%, rgba(58,155,255,0.08), transparent 60%); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.035em; margin: 1.1rem 0 .8rem; }
.page-hero p { color: var(--text-dim); font-size: var(--fs-lead); max-width: 56ch; }
.crumbs { display: flex; gap: .5rem; align-items: center; color: var(--text-faint); font-size: .85rem; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Product page ---------- */
.prod-gallery { position: relative; }
.prod-main { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/4.4; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.prod-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod-main:hover img { transform: scale(1.04); }
.prod-main .halo-badge { position: absolute; top: 1rem; left: 1rem; padding: .5rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #04120f; background: var(--grad); box-shadow: var(--glow); }
.thumbs { display: flex; gap: .7rem; margin-top: .9rem; }
.thumbs button { flex: 1; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); opacity: .55; transition: opacity .3s, border-color .3s, transform .3s; }
.thumbs button.active, .thumbs button:hover { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.prod-intro h2 { font-size: var(--fs-h3); margin-bottom: 1.1rem; }
.prod-intro p { color: var(--text-dim); margin-bottom: 1.2rem; }
.prod-highlights { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); font-size: .84rem; color: var(--text); }
.chip svg { width: 14px; height: 14px; color: var(--accent); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.spec-grid.single { grid-template-columns: 1fr; max-width: 680px; }
.spec-card { padding: 1.8rem; border-radius: var(--r-lg); }
.spec-card h3 { font-size: 1.2rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.spec-card h3 .badge-n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .8rem; font-family: var(--font-body); color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border); }
.spec-list { display: grid; gap: .75rem; }
.spec-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-dim); font-size: .93rem; }
.spec-list .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); margin-top: 2px; }
.spec-list .tick svg { width: 11px; height: 11px; color: var(--accent); }

.applications { display: flex; gap: 1.4rem; align-items: flex-start; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r-lg); }
.applications .a-ico { flex: none; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.applications .a-ico svg { width: 26px; height: 26px; color: var(--accent); }
.applications h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.applications p { color: var(--text-dim); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.form-card { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--r-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--text-dim); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.05rem; font: inherit; font-size: .95rem; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 13px;
  transition: border-color .25s, background .25s, box-shadow .25s; cursor: auto;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(39,220,203,0.05); box-shadow: 0 0 0 3px rgba(39,220,203,0.12); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aabb8' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: .3rem; }
.form-status { display: none; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-radius: 13px; margin-bottom: 1.2rem; font-size: .92rem; }
.form-status.show { display: flex; }
.form-status.ok { background: rgba(39,220,203,0.1); border: 1px solid rgba(39,220,203,0.35); color: var(--accent-bright); }
.form-status.err { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.35); color: #ff9d9d; }

.info-stack { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-radius: var(--r); }
.info-card .i-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }
.info-card .i-ico svg { width: 22px; height: 22px; color: var(--accent); }
.info-card h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .35rem; }
.info-card p, .info-card a { color: var(--text); font-size: .96rem; line-height: 1.5; }
.info-card a:hover { color: var(--accent); }
.map-frame { margin-top: 1rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); height: 300px; filter: grayscale(0.3) contrast(1.05); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* about extras */
.about-figure { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --section: clamp(3.6rem, 9vh, 6rem); }
  .hero { min-height: auto; padding-block: 7.5rem 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { min-height: 400px; }
  .scroll-cue { display: none; }
  .split { grid-template-columns: 1fr; }
  .story-text { order: 2; }
  .story-media { aspect-ratio: 16/12; max-height: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard { min-height: 300px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-logo img { height: 42px; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .prod-main { aspect-ratio: 4/3.6; }
  .page-hero { padding-top: clamp(7rem, 14vh, 9rem); }
}
@media (max-width: 620px) {
  .stats, .products-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .6rem; }
  .hero-chip { display: none; }
  .hero-card { width: min(340px, 88%); }
  .hero-mini { gap: 1rem .9rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .halo { width: 130%; }
  .form-row { grid-template-columns: 1fr; }
  .applications { flex-direction: column; }
  body { cursor: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}
