/* ============================================================
   SGENYX — Design System v2
   Cinematic Dark SaaS
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:            #060608;
  --bg-2:          #0c0c14;
  --bg-3:          #111118;
  --surface:       rgba(255,255,255,0.03);
  --surface-2:     rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.07);
  --border-hi:     rgba(255,255,255,0.16);
  --text:          #f2f2f6;
  --text-2:        #b8b8d0;
  --text-3:        #686880;
  --accent:        #3b5bdb;
  --accent-lt:     #748ffc;
  --accent-glow:   rgba(59,91,219,0.28);
  --r-sm:          8px;
  --r:             16px;
  --r-lg:          24px;
  --ease:          cubic-bezier(0.25,0.46,0.45,0.94);
  --dur:           0.4s;
  --font-h:        'Space Grotesk', sans-serif;
  --font-b:        'Inter', sans-serif;
}

[data-theme="light"] {
  --bg:          #f8f8fb;
  --bg-2:        #f0f0f5;
  --bg-3:        #e8e8f0;
  --surface:     rgba(0,0,0,0.03);
  --surface-2:   rgba(0,0,0,0.055);
  --border:      rgba(0,0,0,0.07);
  --border-hi:   rgba(0,0,0,0.16);
  --text:        #0c0c18;
  --text-2:      #38384e;
  --text-3:      #8080a0;
  --accent-lt:   #2a48c8;
  --accent-glow: rgba(59,91,219,0.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul[role="list"] { list-style: none; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section       { padding: 100px 0; position: relative; overflow: hidden; }
.sec-tinted    { background: var(--bg-2); }
.sec-hdr       { margin-bottom: 60px; }
.mt-cards      { margin-top: 56px; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 16px;
}

/* ── SECTION H2 ── */
.sec-h2 {
  font-family: var(--font-h);
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ── CUSTOM CURSOR (desktop only) ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent-lt);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.15s, height 0.15s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
@media (hover: none), (max-width: 1024px) {
  .cursor, .cursor-ring { display: none; }
}

/* ── HEADER ── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(6,6,8,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
}
[data-theme="light"] .header.scrolled {
  background: rgba(248,248,251,0.88);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .header-inner { padding: 0 40px; } }

.logo-link { display: flex; align-items: center; }
.logo-img  { height: 44px; width: auto; transition: opacity var(--dur); }
.logo-img:hover { opacity: 0.8; }

[data-theme="light"] .logo-img,
[data-theme="light"] #footerLogo { filter: invert(1) brightness(0); }

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 768px) { .nav { display: flex; } }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 100px;
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.ctrl-btn:hover { color: var(--text); border-color: var(--border-hi); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--dur);
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}
.menu-toggle.open span:first-child { transform: rotate(45deg) translate(4.5px, 4.5px); }
.menu-toggle.open span:last-child  { transform: rotate(-45deg) translate(4.5px,-4.5px); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  background: var(--bg-2);
  border-bottom: 1px solid transparent;
}
.mobile-nav.open {
  max-height: 280px;
  padding-top: 8px;
  border-color: var(--border);
}
.mobile-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--text); }
@media (min-width: 768px) { .mobile-nav { display: none; } }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05050a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.7;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,6,8,0.25) 0%,
    rgba(6,6,8,0.05) 35%,
    rgba(6,6,8,0.55) 75%,
    rgba(6,6,8,1.00) 100%
  );
}
/* Film grain effect */
.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.55;
  pointer-events: none;
  animation: grainMove 8s steps(10) infinite;
}
@keyframes grainMove {
  0%,100% { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  20%  { transform: translate(3%,1%); }
  30%  { transform: translate(-1%,4%); }
  40%  { transform: translate(4%,-2%); }
  50%  { transform: translate(-3%,3%); }
  60%  { transform: translate(2%,-4%); }
  70%  { transform: translate(-4%,2%); }
  80%  { transform: translate(1%,-1%); }
  90%  { transform: translate(3%,4%); }
}
[data-theme="light"] .hero-grain { opacity: 0.2; }
[data-theme="light"] .hero-video { opacity: 0.45; }
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(248,248,251,0.4) 0%,
    rgba(248,248,251,0.1) 35%,
    rgba(248,248,251,0.75) 75%,
    rgba(248,248,251,1.00) 100%
  );
}
[data-theme="light"] .hero-title { color: #0c0c18; }
[data-theme="light"] .hero-sub   { color: #38384e; }
[data-theme="light"] .hero-eyebrow { color: var(--accent); }
[data-theme="light"] .hero-meta-pill { color: #38384e; }

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 120px;
}
.hero-content { max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
  padding: 6px 14px;
  border: 1px solid rgba(116,143,252,0.28);
  border-radius: 100px;
  background: rgba(59,91,219,0.08);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--accent-lt);
  border-radius: 50%;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(42px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 100%;
  overflow: hidden;
}
.hero-line { display: block; max-width: 100%; }
.hero-line-grad {
  background: linear-gradient(110deg, var(--accent-lt) 0%, #c4d4ff 45%, var(--accent-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: grad-shift 5s ease infinite;
}
@keyframes grad-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.hero-meta-pill {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-meta-sep { opacity: 0.5; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.scroll-hint:hover { opacity: 0.75; }
.scroll-line {
  display: block;
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.75); }
  50%      { opacity: 1;   transform: scaleY(1); }
}
.scroll-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--dur), box-shadow var(--dur), opacity var(--dur);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--accent-glow);
}
.btn-primary:hover::after { background: rgba(255,255,255,0.08); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface-2);
}

/* ── MARQUEE ── */
.marquee-wrap {
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.m-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 22px;
  white-space: nowrap;
}
.m-sep { color: var(--accent); font-size: 12px; padding: 0 2px; }

/* ── BENTO GRID ── */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .b-large { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 310px 310px;
  }
  .b-large {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

.b-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 260px;
  cursor: default;
  transition:
    border-color 0.35s,
    transform    0.35s var(--ease),
    box-shadow   0.35s;
}
.b-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.45);
}

.b-bg {
  position: absolute;
  inset: 0;
}
.b-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.5s, transform 0.5s;
}
.b-card:hover .b-video { opacity: 0.75; transform: scale(1.04); }
.b-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.b-video { position: relative; z-index: 1; }
.b-ov    { position: absolute; inset: 0; z-index: 2; }
.b-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,1) 0%, rgba(6,6,8,0.82) 40%, rgba(6,6,8,0.3) 70%, rgba(6,6,8,0.05) 100%);
}
.b-ov-accent {
  background: linear-gradient(to top, rgba(30,48,180,0.98) 0%, rgba(59,91,219,0.65) 40%, rgba(59,91,219,0.15) 70%, rgba(6,6,8,0.05) 100%);
}
/* light mode — karte zadrzavaju tamni overlay, tekst ostaje bijel */
[data-theme="light"] .b-ov {
  background: linear-gradient(to top, rgba(6,6,8,1) 0%, rgba(6,6,8,0.82) 40%, rgba(6,6,8,0.3) 70%, rgba(6,6,8,0.05) 100%);
}

.b-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 3;
}
.b-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  margin-bottom: 10px;
}
.b-h3 {
  font-family: var(--font-h);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
  color: #fff;
}
.b-p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  max-width: 360px;
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.why-list { margin-top: 40px; }
.why-item {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.why-item:last-child { border-bottom: none; }
.why-item:hover { border-color: var(--border-hi); }
.why-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-lt);
  min-width: 26px;
  padding-top: 3px;
  flex-shrink: 0;
}
.why-h3 {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  color: var(--text);
}
.why-p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.why-right { position: relative; }
.why-frames { position: relative; height: 400px; }
.wf {
  position: absolute;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.wf-1 {
  width: 78%; height: 250px;
  top: 0; left: 0;
  box-shadow: 20px 20px 56px rgba(0,0,0,0.5);
}
.wf-2 {
  width: 62%; height: 200px;
  bottom: 0; right: 0;
  box-shadow: -10px 10px 40px rgba(0,0,0,0.4);
}
@media (max-width: 640px) {
  .why-frames { height: 260px; }
  .wf-1 { height: 165px; }
  .wf-2 { height: 130px; }
}

/* ── PROCESS ── */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; grid-template-rows: auto; }
  .step-divider { display: none; }
}

.step {
  padding: 36px 32px;
  background: var(--surface);
  transition: background 0.3s;
}
.step:hover { background: var(--surface-2); }
@media (min-width: 768px) {
  .step:first-of-type { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .step:last-of-type  { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
}

.step-divider {
  width: 1px;
  background: var(--border);
  margin: 20px 0;
}
@media (max-width: 767px) {
  .step-divider { width: auto; height: 1px; margin: 0 20px; }
}

.step-n {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.step-h3 {
  font-family: var(--font-h);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.step-p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* Frame showcase */
.frame-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 500px) { .frame-showcase { grid-template-columns: 1fr; } }
.frame-cell {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}
.frame-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.frame-cell:hover .frame-img { transform: scale(1.04); }

/* ── CONTACT ── */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cbg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.06;
}
.cbg-ov {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  opacity: 0.88;
}
#contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

.contact-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.68;
  margin: 20px 0 32px;
  max-width: 380px;
}
.cinfo-list { display: flex; flex-direction: column; gap: 12px; }
.cinfo-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}
.cinfo-row:hover { border-color: var(--border-hi); background: var(--surface-2); }
.cinfo-ico {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  color: var(--accent-lt);
  flex-shrink: 0;
}
.cinfo-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.cinfo-val { font-size: 14px; font-weight: 500; color: var(--text); }

/* Form */
.cform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
[data-theme="light"] .cform { background: #fff; }
.fg { margin-bottom: 20px; }
.fg-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.fg-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}
[data-theme="light"] .fg-input { background: var(--bg-3); }
.fg-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.fg-input::placeholder { color: var(--text-3); }
.fg-ta { min-height: 120px; }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--dur), box-shadow var(--dur), opacity var(--dur);
  margin-top: 4px;
}
.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
}
.btn-submit:active { transform: translateY(0); }
.fg-input.error { border-color: #e03131; box-shadow: 0 0 0 3px rgba(224,49,49,0.18); }

/* ── PORTFOLIO / WORK ── */
.work-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
@media (min-width: 900px) {
  .work-card { grid-template-columns: 1.15fr 1fr; }
}

.work-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080c14;
}
@media (min-width: 900px) {
  .work-img-wrap { aspect-ratio: unset; min-height: 420px; }
}
.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-img { transform: scale(1.03); }
.work-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 60%,
    var(--bg) 100%
  );
  pointer-events: none;
}
@media (max-width: 899px) {
  .work-img-overlay {
    background: linear-gradient(to bottom, transparent 60%, var(--bg-2) 100%);
  }
}
[data-theme="light"] .work-img-overlay {
  background: linear-gradient(to right, transparent 60%, var(--bg) 100%);
}

.work-meta {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: var(--bg);
}
[data-theme="light"] .work-meta { background: var(--bg); }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-lt);
  padding: 4px 10px;
  border: 1px solid rgba(116,143,252,0.25);
  border-radius: 100px;
  background: rgba(59,91,219,0.07);
}

.work-h3 {
  font-family: var(--font-h);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.work-p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 420px;
}

.work-feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.work-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.work-feat-ico {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--accent-lt);
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-logo img { opacity: 0.65; transition: opacity 0.3s; }
.footer-logo:hover img { opacity: 1; }
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.soc-link img {
  width: 32px; height: 32px;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}
.soc-link:hover img { opacity: 1; filter: none; }

/* ── FLOATING DOCK ── */
.float-dock {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 800;
}
.float-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color var(--dur), border-color var(--dur), transform var(--dur);
}
.float-btn:hover {
  color: var(--text);
  border-color: var(--border-hi);
  transform: scale(1.06);
}

/* ── SCROLL REVEAL SYSTEM ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.05s; }
.rd2 { transition-delay: 0.12s; }
.rd3 { transition-delay: 0.19s; }
.rd4 { transition-delay: 0.26s; }
.rd5 { transition-delay: 0.33s; }
.rd6 { transition-delay: 0.40s; }

/* ── MOBILE TWEAKS ── */
@media (max-width: 640px) {
  .section      { padding: 64px 0; }
  .sec-hdr      { margin-bottom: 36px; }
  .mt-cards     { margin-top: 36px; }
  .hero .container { padding-top: 110px; padding-bottom: 90px; }
  .hero-cta     { flex-direction: column; align-items: flex-start; }
  .b-card       { min-height: 220px; }
  .bento        { gap: 12px; }
  .step         { padding: 28px 24px; }
  .cform        { padding: 24px; }
  .why-frames   { height: 260px; }
  .wf-1         { height: 165px; }
  .wf-2         { height: 130px; }
  .scroll-hint  { display: none; }
  .float-dock   { bottom: 16px; right: 16px; }
}
