/* ============================================================
   NOOXEN — design system (dark, modern)
   ============================================================ */
:root {
  --bg: #070b11;
  --bg-2: #0b1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef6;
  --muted: #9aa7b8;
  --teal: #2dd4bf;
  --cyan: #22d3ee;
  --gold: #f5b544;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #22d3ee 50%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #f5b544 0%, #fb7185 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- animated background ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(900px 700px at 110% 100%, rgba(34, 211, 238, 0.12), transparent 55%),
    var(--bg);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}
.orb.a { width: 420px; height: 420px; background: #14b8a6; top: -120px; right: -80px; }
.orb.b { width: 360px; height: 360px; background: #8b5cf6; bottom: -100px; left: -60px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section.block { padding: 84px 0; position: relative; }

/* ---- header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 17, 0.55);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad);
  color: #05100e; font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.35);
}
.brand .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 1px; color: #fff; }
.brand .name small { display: block; font-weight: 400; font-size: 10.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

nav.site { display: flex; align-items: center; gap: 8px; }
nav.site a.navlink {
  color: var(--muted); font-weight: 500; font-size: 14.5px;
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
nav.site a.navlink:hover { color: #fff; background: var(--surface-2); }
nav.site a.navlink.active { color: #fff; background: var(--surface-2); }

/* language selector */
.lang { position: relative; margin-left: 6px; }
.lang button {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-family: inherit;
}
.lang button:hover { border-color: var(--border-strong); }
.lang .menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #0d1520; border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; min-width: 150px; display: none;
  box-shadow: var(--shadow);
}
.lang.open .menu { display: block; }
.lang .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px;
  background: transparent; border: 0; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); cursor: pointer; text-align: left; font-size: 14px;
}
.lang .menu button:hover { background: var(--surface-2); color: #fff; }
.lang .menu button.active { color: #fff; background: var(--surface-2); }

/* ---- hero ---- */
.hero { padding: 130px 0 110px; text-align: center; position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(45, 212, 191, 0.1); color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  margin: 26px auto 20px;
  max-width: 900px;
  background: linear-gradient(180deg, #fff 30%, #b8c6d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 13px; font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer; border: 0;
}
.btn.primary { background: var(--grad); color: #04120f; box-shadow: 0 10px 30px rgba(45, 212, 191, 0.28); }
.btn.primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); }

/* ---- section heading ---- */
.sec-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ---- cards grid ---- */
.grid { display: grid; gap: 24px; }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.card .shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1019;
  margin-bottom: 20px;
}
.card .shot img { width: 100%; transition: transform .4s ease; }
.card:hover .shot img { transform: scale(1.04); }
.card .tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.card .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card .link { margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }

/* ---- phases ---- */
.phases { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.phases span {
  font-size: 11.5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.phases span.done { background: rgba(45,212,191,0.12); border-color: rgba(45,212,191,0.35); color: var(--teal); }
.phases span.current { background: rgba(245,181,68,0.14); border-color: rgba(245,181,68,0.45); color: var(--gold); font-weight: 600; }

/* ---- note ---- */
.note {
  margin-top: 40px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-left: 3px solid var(--violet);
  padding: 18px 20px; border-radius: 14px;
  color: #c7d0dd; font-size: 14.5px;
}

/* ---- app detail pages ---- */
.app-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.app-hero .copy .tag { margin-bottom: 16px; }
.app-hero .copy h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.app-hero .copy .tagline { font-size: 20px; color: var(--teal); margin-bottom: 18px; font-weight: 500; }
.app-hero .copy .desc { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 30px; }
.features li { position: relative; padding-left: 26px; color: #c8d2df; font-size: 14.5px; }
.features li::before {
  content: "✦"; position: absolute; left: 0; top: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.phone {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--border-strong);
  background: #0a1019;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.phone img { border-radius: 20px; width: 100%; }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.15);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.gallery .g-shot {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: #0a1019; transition: transform .3s ease, border-color .3s ease;
}
.gallery .g-shot:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.gallery .g-shot img { width: 100%; }

.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 30px; transition: color .2s; }
.backlink:hover { color: #fff; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .grid.cols3 { grid-template-columns: 1fr; }
  .app-hero { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr; }
  nav.site a.navlink { display: none; }
  .features { grid-template-columns: 1fr; }
}
