/* =========================================================
   Hasuna — design system
   ========================================================= */
:root {
  /* brand */
  --primary: #800020;
  --primary-dark: #5c0017;
  --primary-deep: #2a0710;
  --accent: #c0394b;
  --gold: #b08d57;
  --gold-light: #e2cc9c;
  --gold-soft: rgba(176, 141, 87, .14);

  /* warm neutrals */
  --text: #1c1917;
  --muted: #6b625c;
  --bg: #fdfcfa;
  --bg-alt: #f6f2ec;
  --surface: #ffffff;
  --border: #ebe4da;

  /* shape & depth */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05), 0 4px 12px rgba(28, 25, 23, .04);
  --shadow: 0 18px 40px -18px rgba(60, 10, 20, .22);
  --shadow-lg: 0 40px 80px -30px rgba(60, 10, 20, .35);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 10px 24px -8px rgba(128, 0, 32, .55);
}
/* sheen sweeping across on hover */
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after, .btn-gold:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(128, 0, 32, .6); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-gold {
  background: linear-gradient(135deg, #c9a66b, var(--gold) 55%, #8f6d3c);
  color: #fff; box-shadow: 0 10px 24px -10px rgba(176, 141, 87, .7);
}
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.header.scrolled {
  --header-h: 66px; height: 66px;
  background: rgba(253, 252, 250, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(60, 10, 20, .25);
}
.scroll-progress {
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(226, 204, 156, .45), 0 6px 14px -6px rgba(128, 0, 32, .6);
}
.nav-panel { display: flex; align-items: center; gap: 36px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 30px; }
.nav-link { display: block; padding: 6px 0; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .25s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-indicator {
  position: absolute; bottom: -4px; left: 0; height: 2px; width: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
  opacity: 0;
}
.nav-indicator.show { opacity: 1; }

.menu-toggle { display: none; position: relative; z-index: 120; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-overlay { display: none; }

/* ===== Hero ===== */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(640px circle at 85% 18%, rgba(192, 57, 75, .14), transparent 62%),
    radial-gradient(520px circle at 70% 85%, rgba(176, 141, 87, .14), transparent 60%),
    radial-gradient(700px circle at 5% 90%, rgba(128, 0, 32, .08), transparent 60%);
}
.hero-bg::after { /* faint grid for a technical feel */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(128, 0, 32, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 0, 32, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; margin-bottom: 26px;
  border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--primary);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.badge .icon { color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.gradient-text {
  background: linear-gradient(120deg, var(--primary) 10%, var(--accent) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 26px 0 36px; font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border); }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.trust .icon { color: var(--gold); width: 1.25em; height: 1.25em; }

.hero-visual { position: relative; }
.hero-3d, .hero-3d-hint { display: none; }
.hero-visual.has-3d .hero-3d { display: block; height: 500px; cursor: grab; touch-action: pan-y; }
.hero-visual.has-3d .hero-3d:active { cursor: grabbing; }
.hero-visual.has-3d .hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-visual.has-3d .hero-3d-hint { display: block; text-align: center; font-size: .8rem; color: var(--muted); margin-top: -8px; letter-spacing: .04em; }
.hero-visual.has-3d .code-fallback { display: none; }

.code-card { background: #1c1210; color: #ede4dc; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-2deg); }
.code-card-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #2a1c19; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #22c55e; }
.file-name { margin-left: 12px; font-size: .85rem; color: #a8998f; }
.code-card pre { padding: 24px; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; overflow-x: auto; }
.kw { color: #f0a8b4; } .fn { color: var(--gold-light); } .str { color: #9fd8a4; } .cm { color: #7c6d66; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.mouse { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; opacity: .7; }
.mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--primary); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* ===== Marquee ===== */
.marquee-strip { padding: 34px 0; border-block: 1px solid var(--border); background: var(--surface); text-align: center; }
.marquee-label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: #b3a69c; white-space: nowrap; transition: color .3s; }
.marquee-track li:hover { color: var(--primary); }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ===== Sections ===== */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; margin: 14px 0 16px; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== 3D motion: reveal, tilt, spotlight ===== */
.reveal {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 46px, -60px) rotateX(16deg);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* cards lean slightly toward the cursor once revealed (values set by script.js) */
.tilt.visible {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  /* --tdur/--i keep the staggered reveal; script.js shortens them once the card has appeared */
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform var(--tdur, 1s) var(--ease) calc(var(--i, 0) * 90ms),
              box-shadow .45s var(--ease), border-color .45s;
}
.tilt { position: relative; }
.tilt::after { /* soft light following the cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 204, 156, .22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tilt:hover::after { opacity: 1; }

/* hero intro: elements rise in on load, headline words flip up one by one */
.intro { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
body.loaded .intro { opacity: 1; transform: none; }
.hero-visual.intro { transform: perspective(1200px) translateY(30px) rotateY(-14deg) scale(.96); }
body.loaded .hero-visual.intro { transform: none; }
.w { display: inline-block; perspective: 700px; }
.w-in {
  display: inline-block; opacity: 0; transform-origin: 50% 100%;
  transform: translateY(.45em) rotateX(-85deg);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--wi) * 70ms + 250ms);
}
body.loaded .w-in { opacity: 1; transform: none; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }
.service-card {
  padding: 22px 22px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.service-card:hover { --lift: -6px; box-shadow: var(--shadow); border-color: rgba(176, 141, 87, .45); }
.service-3d {
  position: relative; height: 196px; margin-bottom: 24px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(192, 57, 75, .15), transparent 65%),
    linear-gradient(140deg, #fbf3ef, #f3ebe2);
}
.service-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.service-fallback { width: 56px; height: 56px; fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-3d.ready .service-fallback { display: none; }
.service-card h3 { font-size: 1.18rem; line-height: 1.35; margin: 0 10px 12px; letter-spacing: -.01em; }
.service-list { display: grid; gap: 14px; margin: 0 10px; }
.service-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: .94rem; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg);
}
.service-list strong { display: block; color: var(--text); font-weight: 650; }

/* ===== Products ===== */
.tabs {
  position: relative; display: flex; width: fit-content; max-width: 100%; margin: 0 auto 44px; padding: 6px; gap: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none;
}
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .35s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; }
.tab-count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--bg-alt); color: var(--muted); transition: background .35s, color .35s;
}
.tab.active .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }
.tab-indicator {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px -8px rgba(128, 0, 32, .6);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; padding: 30px 28px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.product-card:hover { --lift: -6px; box-shadow: var(--shadow); border-color: rgba(176, 141, 87, .5); }
.product-card::before { /* thin gold line on top */
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7;
}
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.product-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(226, 204, 156, .35), 0 12px 22px -12px rgba(128, 0, 32, .7);
  transition: transform .6s var(--ease);
}
.product-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.product-card:hover .product-icon { transform: perspective(300px) rotateY(180deg); }
.product-card:hover .product-icon .icon { transform: scaleX(-1); }
.product-card[data-category="logistik"] .product-icon { background: linear-gradient(140deg, #7a5a2c, var(--gold)); }
.product-card[data-category="umum"] .product-icon { background: linear-gradient(140deg, #3d2b2b, #7a4a52); }
.product-cat {
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold-soft); color: #7a5a2c;
}
.product-card h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 10px; }
.product-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.product-features { display: grid; gap: 9px; margin-bottom: 24px; flex: 1; }
.product-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.product-features .icon { color: var(--gold); margin-top: 3px; stroke-width: 2.4; }
.product-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  font-weight: 700; color: var(--primary); cursor: pointer;
}
.product-cta .icon { transition: transform .35s var(--ease); }
.product-cta:hover .icon { transform: translateX(5px); }

/* filter transition: cards swing out / in around the Y axis */
.product-card.is-hidden { display: none; }
.product-card.reveal.flip-out {
  opacity: 0; transform: perspective(1000px) rotateY(-75deg) scale(.9);
  transition: opacity .32s ease, transform .38s var(--ease); transition-delay: 0s;
}
.product-card.reveal.flip-start {
  opacity: 0; transform: perspective(1000px) rotateY(75deg) scale(.9); transition: none;
}

/* ===== About + Why ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 30px; }
.why .eyebrow { margin-bottom: 18px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card { background: var(--surface); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.why-card:hover { --lift: -4px; box-shadow: var(--shadow); }
.why-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(140deg, rgba(128, 0, 32, .08), var(--gold-soft));
}
.why-icon .icon { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.04rem; margin: 16px 0 8px; }
.why-card p { color: var(--muted); font-size: .92rem; }

/* ===== Tech stack ===== */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.stack-card {
  padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: box-shadow .4s var(--ease), border-color .4s,
              opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform 1s var(--ease) calc(var(--i, 0) * 90ms);
}
.stack-card:hover { box-shadow: var(--shadow); border-color: rgba(176, 141, 87, .45); }
.stack-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin-bottom: 16px; }
.stack-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--primary); background: rgba(128, 0, 32, .07); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--bg-alt); color: #4a403a; border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--surface); border-color: var(--gold); color: var(--primary); transform: translateY(-2px); }

/* ===== Engagement models (dark section) ===== */
.section-dark {
  color: #f5ede6;
  background:
    radial-gradient(800px circle at 12% 0%, rgba(192, 57, 75, .32), transparent 60%),
    radial-gradient(700px circle at 95% 100%, rgba(176, 141, 87, .22), transparent 60%),
    linear-gradient(160deg, #3b0a17, var(--primary-deep) 70%);
  overflow: hidden;
}
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .section-head p { color: rgba(245, 237, 230, .72); }
.models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.model-card {
  display: flex; flex-direction: column; gap: 12px; padding: 36px 32px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}
.model-card:hover { --lift: -6px; border-color: rgba(226, 204, 156, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.model-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-light); background: rgba(226, 204, 156, .1); border: 1px solid rgba(226, 204, 156, .25); }
.model-icon .icon { width: 24px; height: 24px; }
.model-sub { margin-top: 8px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-light); }
.model-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.model-card p { color: rgba(245, 237, 230, .72); }
.model-points { display: grid; gap: 10px; margin: 8px 0 18px; flex: 1; }
.model-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: rgba(245, 237, 230, .9); }
.model-points .icon { color: var(--gold-light); margin-top: 3px; stroke-width: 2.4; }
.model-card .btn { align-self: flex-start; }
.model-card.featured {
  background: linear-gradient(165deg, rgba(192, 57, 75, .38), rgba(128, 0, 32, .25) 60%, rgba(176, 141, 87, .18));
  border-color: rgba(226, 204, 156, .55);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.model-badge {
  position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3b2a12;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* ===== Workflow ===== */
.flow-3d {
  height: 380px; margin: -12px 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 60%, rgba(192, 57, 75, .1), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-alt));
}
.flow-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.steps-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.steps-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps-track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.steps-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%;
  transform: scaleX(calc((var(--step, 0) + 1) / 6));
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold));
  transition: transform .9s var(--ease);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  counter-increment: step; position: relative; padding: 30px 28px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform var(--tdur, 1s) var(--ease) calc(var(--i, 0) * 90ms),
              box-shadow .45s var(--ease), border-color .45s;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 13px; font-weight: 800; color: #fff; font-size: .95rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: box-shadow .45s var(--ease), transform .6s var(--ease);
}
.step:hover { border-color: var(--gold); }
.step:focus-visible { outline: 3px solid rgba(176, 141, 87, .45); outline-offset: 2px; }
.step.visible.active { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.step.active::before { box-shadow: 0 0 0 6px var(--gold-soft); transform: perspective(200px) rotateY(360deg); }
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ===== CTA band ===== */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 52px 56px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px circle at 90% 10%, rgba(176, 141, 87, .45), transparent 60%),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent));
  box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: rgba(255, 255, 255, .82); max-width: 560px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
.contact-list li:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-list small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--primary); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.contact-card { position: relative; background: var(--surface); padding: 40px; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-card::before { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* floating labels */
.field { position: relative; margin-bottom: 20px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 16px 10px; border: 1.5px solid var(--border); border-radius: 12px;
  font: inherit; color: var(--text); background: var(--bg); resize: vertical;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b625c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field label {
  position: absolute; left: 17px; top: 17px; pointer-events: none; transform-origin: 0 0;
  color: var(--muted); font-size: .98rem; transition: transform .3s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field-select label { transform: translateY(-10px) scale(.76); font-weight: 600; }
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--primary); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(128, 0, 32, .1);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid label { color: #dc2626; }
.error { color: #dc2626; font-size: .8rem; min-height: 1em; display: block; margin-top: 5px; }
.form-status { margin-top: 14px; text-align: center; font-weight: 600; color: #16a34a; min-height: 1.4em; }
.form-status.error { color: #dc2626; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success state: form flips away, success panel flips in */
.contact-form { transition: opacity .4s ease, transform .5s var(--ease); }
.contact-card.sent .contact-form { opacity: 0; transform: perspective(1000px) rotateX(-12deg) translateY(-12px); pointer-events: none; }
.form-success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px; gap: 10px;
  opacity: 0; transform: perspective(1000px) rotateX(14deg) translateY(16px);
  transition: opacity .5s ease .15s, transform .7s var(--ease) .15s;
}
.form-success[hidden] { display: flex; visibility: hidden; }
.contact-card.sent .form-success { opacity: 1; transform: none; visibility: visible; }
.form-success h3 { font-size: 1.5rem; margin-top: 8px; }
.form-success p { color: var(--muted); max-width: 360px; margin-bottom: 12px; }
.success-check { width: 84px; height: 84px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; }
.success-check path { stroke: var(--primary); stroke-width: 3.5; stroke-dasharray: 36; stroke-dashoffset: 36; }
.contact-card.sent .success-check circle { animation: draw .8s var(--ease) .3s forwards; }
.contact-card.sent .success-check path { animation: draw .5s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== Footer ===== */
.footer {
  position: relative; color: #cbbfb6; padding: 80px 0 0;
  background: linear-gradient(180deg, #1d0a0f, #140709);
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 280px; font-size: .95rem; }
.footer h4 { color: var(--gold-light); margin-bottom: 16px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer ul { display: grid; gap: 10px; font-size: .94rem; }
.footer a { transition: color .25s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 26px 0; font-size: .88rem; text-align: center; color: #8f8078; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9); transition: .4s var(--ease);
}
.back-to-top .icon { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .intro, .w-in, .tilt.visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .mouse span { animation: none; }
  .tilt::after { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero { padding-bottom: 120px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 96px 28px 32px; background: var(--surface); box-shadow: -30px 0 60px -20px rgba(60, 10, 20, .3);
    transform: translateX(105%); transition: transform .55s var(--ease); visibility: hidden;
  }
  .nav-panel.open { transform: none; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 4px; font-size: 1.1rem; color: var(--text); border-bottom: 1px solid var(--border); }
  .nav-indicator { display: none; }
  .nav-links li, .nav-cta { opacity: 0; transform: translateX(24px); transition: opacity .4s ease, transform .5s var(--ease); }
  .nav-panel.open .nav-links li, .nav-panel.open .nav-cta { opacity: 1; transform: none; }
  .nav-panel.open .nav-links li:nth-child(1) { transition-delay: .08s; }
  .nav-panel.open .nav-links li:nth-child(2) { transition-delay: .13s; }
  .nav-panel.open .nav-links li:nth-child(3) { transition-delay: .18s; }
  .nav-panel.open .nav-links li:nth-child(4) { transition-delay: .23s; }
  .nav-panel.open .nav-links li:nth-child(5) { transition-delay: .28s; }
  .nav-panel.open .nav-cta { transition-delay: .34s; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 105; background: rgba(28, 10, 15, .35);
    backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 30px 22px; }
  .contact-card::before { left: 22px; right: 22px; }
  .services-grid, .products-grid, .stack-grid, .models-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 28px; }
  .cta-band { padding-bottom: 72px; }
  .tabs { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .flow-3d { height: 440px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-visual.has-3d .hero-3d { height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .tab { padding: 9px 14px; font-size: .9rem; }
}

@media (max-width: 520px) {
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 10px 6px; font-size: .86rem; }
  .tab-count { display: none; }
}
