/* ============================================
   FIOK Brand Site — Minimal One-Page
   Inter Tight + GSAP powered
   ============================================ */

:root {
  --brand: #01e9a0;
  --brand-dark: #00c78a;
  --brand-darker: #00a070;

  --bg: #0a0a0a;
  --bg-elevated: #0e0e0e;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.7);
  --ink-muted: rgba(255, 255, 255, 0.5);
  --ink-dim: rgba(255, 255, 255, 0.25);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--brand); color: var(--bg); }

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }

/* ============= CUSTOM CURSOR ============= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor.hover {
  width: 60px; height: 60px;
  border-color: var(--ink);
  background: rgba(1, 233, 160, 0.1);
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ============= BACKGROUND ============= */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(1, 233, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 233, 160, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
}
.bg-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.35;
}
.bg-glow-a {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--brand) 0%, transparent 70%);
}
.bg-glow-b {
  bottom: -200px;
  right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, var(--brand-dark) 0%, transparent 70%);
  opacity: 0.2;
}

/* ============= TOPBAR ============= */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  filter: brightness(0) invert(1);
}
.brand-name {
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.lang-switcher { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 4px;
  display: none;
  z-index: 100;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: left;
  transition: all 0.15s;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.lang-option.active { background: rgba(1, 233, 160, 0.12); color: var(--brand); }

/* ============= HERO ============= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(1, 233, 160, 0.08);
  border: 1px solid rgba(1, 233, 160, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 40px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line-2 {
  color: var(--brand);
  font-style: italic;
  font-weight: 700;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.5;
}

.hero-nav {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: none;
  font-family: inherit;
  transition: all 0.3s;
}
.nav-pill:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.nav-pill .nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
}
.nav-pill .nav-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-hint svg {
  animation: scroll-bob 2s infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============= 3D HERO PRODUCT (mouse-tracked) ============= */
.hero-product {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.6s ease;
  perspective: 1500px;
}
.hero-product.visible { opacity: 1; }
.hero-product img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(1, 233, 160, 0.2));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

/* ============= PANEL ============= */
.panel {
  position: relative;
  padding: 140px 40px;
  border-top: 1px solid var(--line);
}
.panel-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.panel-inner.narrow {
  max-width: 760px;
}
.panel-header {
  margin-bottom: 64px;
}
.panel-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 16px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

/* ============= PRODUCTS TRACK ============= */
.products-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.products-track::-webkit-scrollbar { display: none; }
.products-track.grabbing { cursor: grabbing; }
.product-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.product-img {
  height: 260px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}
.product-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.product-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-tagline {
  color: var(--ink-soft);
  font-size: 14px;
}
.product-link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.product-link:hover { gap: 12px; }

.products-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.products-indicators .dot {
  width: 24px; height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  transition: all 0.3s;
}
.products-indicators .dot.active {
  background: var(--brand);
  width: 36px;
}

/* ============= ENGINEERING ============= */
.eng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.eng-card {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all 0.3s;
}
.eng-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.eng-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 20px;
}
.eng-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.eng-p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ============= STORY ============= */
.story-quote {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}
.story-body {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 32px;
}
.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 4px;
  transition: gap 0.2s;
}
.story-cta:hover { gap: 12px; }

/* ============= SUPPORT ============= */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.support-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s;
}
.support-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.support-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.support-num .support-unit {
  font-size: 18px;
  color: var(--ink-muted);
}
.support-label {
  font-size: 13px;
  color: var(--ink-soft);
}
.support-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--brand);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.support-email:hover {
  background: var(--brand-dark);
  color: var(--bg);
}
.support-email-addr {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ============= FOOTER ============= */
.footer {
  padding: 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .topbar { padding: 20px 24px; }
  .hero { padding: 0 24px; }
  .hero-nav { gap: 8px; }
  .nav-pill { padding: 10px 16px; }
  .nav-pill .nav-num { display: none; }
  .panel { padding: 80px 24px; }
  .product-card { flex: 0 0 320px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  a, button { cursor: pointer; }
  .hero-product {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px; height: 320px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 56px; }
  .panel-title { font-size: 36px; }
}