/* ============================================================
   LOCKEDIN STUDIO — high-tech, dark, crimson, AI-native branding
   ============================================================ */

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg:          #0c0c0f;
  --panel:       rgba(26, 24, 28, 0.55);
  --text:        #f4f3f1;
  --muted:       #a3a0a6;
  --line:        rgba(255, 255, 255, 0.08);
  --line-hover:  rgba(204, 23, 51, 0.55);
  --accent:      #cc1733;
  --accent-2:    #8c0f22;
  --radius:      20px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:      0 30px 70px -28px rgba(0, 0, 0, 0.85);
  --glow:        0 22px 60px -22px rgba(204, 23, 51, 0.5);
  --maxw:        1120px;
  --font:        'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display:     'Sora', var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* headings use the display face */
.brand__name, .hero__title, .tile__title, .zone__title, .node__title {
  font-family: var(--display);
}

/* ---------- animated background ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(130px); }
.glow--a {
  width: 640px; height: 640px; top: -240px; left: 50%; transform: translateX(-55%);
  background: radial-gradient(circle, rgba(190, 18, 46, 0.32), transparent 70%);
  animation: float 18s var(--ease) infinite alternate;
}
.glow--b {
  width: 520px; height: 520px; bottom: -220px; right: -120px;
  background: radial-gradient(circle, rgba(120, 10, 30, 0.22), transparent 70%);
  animation: float 22s var(--ease) infinite alternate-reverse;
}
@keyframes float { to { transform: translate(50px, 40px) scale(1.12); } }
/* scanning beam */
.scan {
  position: absolute; left: 0; right: 0; height: 200px; top: -200px;
  background: linear-gradient(180deg, transparent, rgba(204,23,51,0.06), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: translateY(160vh); } }

/* ---------- animated logo ---------- */
.logo { width: 34px; height: 34px; overflow: visible; }
.logo__ring { transform-origin: 20px 20px; }
.logo .r1 { animation: spin 6s linear infinite; }
.logo .r2 { animation: spin 4s linear infinite reverse; }
.logo__core { transform-origin: 20px 20px; animation: pulse 2.4s ease-in-out infinite; }
.brand:hover .logo .r1 { animation-duration: 1.6s; }
.brand:hover .logo .r2 { animation-duration: 1.1s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.7); } }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding: 18px 24px; transition: padding 0.4s var(--ease); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(16, 15, 18, 0.5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav--scrolled .nav__inner {
  border-color: rgba(255, 255, 255, 0.14); background: rgba(16, 15, 18, 0.8); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.brand__name-in {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(204, 23, 51, 0.55);
}
.brand__name-accent {
  color: var(--muted); font-weight: 600; font-size: 0.82em;
  letter-spacing: 0.22em; margin-left: 0.55em;
  border-left: 1px solid var(--line); padding-left: 0.55em;
}

/* centered section buttons */
.nav__menu { display: flex; gap: 8px; justify-self: center; }
.nav__link {
  font-size: 0.92rem; font-weight: 600; color: #d8d3d6;
  padding: 9px 18px; border-radius: 11px;
  background: rgba(204, 23, 51, 0.08);
  border: 1px solid rgba(204, 23, 51, 0.18);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__link:hover {
  color: #fff; background: rgba(204, 23, 51, 0.18);
  border-color: rgba(204, 23, 51, 0.4); box-shadow: 0 0 18px -4px rgba(204, 23, 51, 0.5);
}
.nav__link.is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px rgba(204, 23, 51, 0.7);
}

/* contact button (right) */
.nav__contact {
  justify-self: end;
  font-size: 0.92rem; font-weight: 700; color: #f3eaec;
  padding: 10px 22px; border-radius: 11px;
  background: linear-gradient(135deg, #8c0f22, #5e0a17);
  border: 1px solid rgba(204, 23, 51, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__contact:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #a01228, #6e0c1b);
  border-color: rgba(204, 23, 51, 0.5);
}

/* ---------- shared widths ---------- */
main { position: relative; z-index: 1; }
.hero, .tiles, .zone, .footer__inner, .footer__copy {
  max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px;
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 70px; padding-bottom: 80px; text-align: center; }
.hero > *:not(.neural) { position: relative; z-index: 1; }
.neural {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, #000 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 42%, #000 48%, transparent 100%);
}
.emblem { width: 130px; height: 130px; margin: 0 auto 30px; filter: drop-shadow(0 0 24px rgba(204,23,51,0.4)); }
.emblem svg { width: 100%; height: 100%; overflow: visible; }
.em-ring { transform-origin: 60px 60px; }
.em-ring.e1 { animation: spin 14s linear infinite; }
.em-ring.e2 { animation: spin 9s linear infinite reverse; }
.em-ring.e3 { animation: spin 6s linear infinite; }
.em-core { transform-origin: 60px 60px; animation: pulse 2.6s ease-in-out infinite; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
.hero__title { font-size: clamp(2.8rem, 9vw, 6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; }
.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero__subtitle { max-width: 44ch; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ---------- buttons (with shine sweep) ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1rem; font-weight: 600; padding: 14px 28px; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.45), transparent 80%);
  transform: translateX(-130%); transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateX(130%); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.07); }
.btn:active { transform: translateY(0); }

/* ============================================================
   TILES — modern interactive cards
   ============================================================ */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding-top: 20px; padding-bottom: 40px;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: 32px 32px 28px; min-height: 250px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(204,23,51,0.08), transparent 55%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), opacity 0.6s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
/* staggered reveal-on-scroll */
.js .tile { opacity: 0; transform: translateY(30px); }
.tile.in { opacity: 1; transform: translateY(0); }
.tiles .tile:nth-child(1) { transition-delay: 0.04s; }
.tiles .tile:nth-child(2) { transition-delay: 0.12s; }
.tiles .tile:nth-child(3) { transition-delay: 0.20s; }
.tiles .tile:nth-child(4) { transition-delay: 0.28s; }
/* rotating conic glow border on hover */
.tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0%, var(--accent) 18%, var(--accent-2) 30%, transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease); animation: rotate-border 4s linear infinite;
}
@keyframes rotate-border { to { --angle: 360deg; } }
/* cursor-follow spotlight */
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(204,23,51,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.tile.in:hover { transform: translateY(-8px); transition-delay: 0s; }
.tile:hover { border-color: var(--line-hover); box-shadow: var(--shadow), var(--glow); background: radial-gradient(130% 90% at 0% 0%, rgba(204,23,51,0.16), transparent 55%), rgba(26, 22, 24, 0.65); }
.tile:hover::before, .tile:hover::after { opacity: 1; }

/* gradient icon chip */
.tile__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 58px; height: 58px; color: #fff; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px -8px rgba(204,23,51,0.6), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile__icon svg { width: 28px; height: 28px; }
.tile:hover .tile__icon { transform: translateY(-3px) scale(1.06) rotate(-6deg); box-shadow: 0 18px 36px -8px rgba(204,23,51,0.8); }

.tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.tile__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.tile__text { color: var(--muted); font-size: 1rem; max-width: 36ch; }

/* footer row with circular arrow */
.tile__foot {
  position: relative; z-index: 1; margin-top: auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.tile:hover .tile__foot { border-color: rgba(204,23,51,0.28); }
.tile__cta { font-weight: 600; font-size: 0.98rem; color: var(--text); transition: color 0.25s var(--ease); }
.tile:hover .tile__cta { color: var(--accent); }
.tile__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile__arrow svg { width: 18px; height: 18px; }
.tile:hover .tile__arrow {
  color: #fff; border-color: transparent; transform: translateX(4px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -6px rgba(204,23,51,0.7);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.zone { padding-top: 110px; scroll-margin-top: 90px; }
.zone__head { text-align: center; margin-bottom: 44px; }
.zone__num { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.zone__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.zone__sub { color: var(--muted); margin-top: 10px; font-size: 1.1rem; }
.zone__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.node {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  padding: 34px; min-height: 180px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease), opacity 0.6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.js .node { opacity: 0; transform: translateY(26px); }
.node.in { opacity: 1; transform: translateY(0); }
.zone__grid .node:nth-child(2) { transition-delay: 0.1s; }
.node.in:hover { transition-delay: 0s; }
.node::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.node:hover { border-color: var(--line-hover); transform: translateY(-5px); box-shadow: var(--shadow), var(--glow); background: rgba(34, 30, 32, 0.6); }
.node:hover::after { transform: scaleX(1); }
.tag { align-self: flex-start; font-size: 0.8rem; font-weight: 600; color: var(--accent); padding: 5px 12px; border-radius: 100px; background: rgba(204, 23, 51, 0.14); border: 1px solid rgba(204, 23, 51, 0.25); }
.node__title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.node__text { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 1; margin-top: 130px; padding-bottom: 50px; }
.footer__inner { display: flex; align-items: center; justify-content: center; padding-top: 40px; border-top: 1px solid var(--line); }
.footer__sig { display: inline-flex; align-items: center; gap: 12px; }
.footer__by {
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--text);
  letter-spacing: 0.01em;
}
.footer__copy { margin-top: 16px; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { padding: 12px; }
  .nav__inner {
    grid-template-columns: auto 1fr; gap: 12px 8px; padding: 10px 12px;
  }
  .brand { grid-column: 1; }
  .nav__contact { grid-column: 2; padding: 8px 16px; font-size: 0.86rem; }
  .nav__menu { grid-column: 1 / -1; justify-self: center; flex-wrap: wrap; justify-content: center; }
  .brand__name { font-size: 0.92rem; }
  .nav__link { padding: 7px 13px; font-size: 0.86rem; }
  .hero { padding-top: 44px; padding-bottom: 56px; }
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  .zone { padding-top: 76px; }
  .zone__grid { grid-template-columns: 1fr; }
  .footer { margin-top: 84px; }
  .footer__inner { padding-top: 32px; }
}
@media (max-width: 480px) {
  .hero, .tiles, .zone, .footer__inner, .footer__copy { padding-left: 18px; padding-right: 18px; }
  .emblem { width: 104px; height: 104px; margin-bottom: 22px; }
  .hero__title { font-size: clamp(1.95rem, 9vw, 2.6rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__pill { font-size: 0.82rem; }
  /* keep the brand tight: drop the STUDIO descriptor on tiny screens */
  .brand__name-accent { display: none; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .tile { padding: 26px 24px 24px; }
  .node { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .tile { transform: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
