/* Qurtech AI Assistant — landing (Nexus-inspired layout, Qurtech brand tokens) */
:root {
  --charcoal: #1c2224;
  --ink: #0d1112;
  --graphite: #2a3236;
  --graphite-alt: #242b2e;
  --slate: #3a4245;
  --muted: #8a9599;
  --line: #e7e9e8;
  --canvas: #fcfcfb;
  --canvas-alt: #f3f4f2;
  --orange: #f06018;
  --orange-soft: #fce7da;
  --tech-blue: #1b4965;
  --ok: #2f8f6b;
  --alarm: #d64545;
  --radius: 4px;
  --max: 1160px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --font-brand: "Fredoka", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Sticky header (glass, Nexus-like) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 17, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand__name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand__name span {
  color: var(--orange);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--orange);
}

.lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

.lang__btn.is-active {
  background: var(--orange);
  color: var(--charcoal);
  font-weight: 700;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.08);
  animation: photo-ken 22s ease-in-out infinite alternate;
}

.hero__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 17, 18, 0.94) 0%, rgba(13, 17, 18, 0.78) 38%, rgba(13, 17, 18, 0.22) 68%, rgba(13, 17, 18, 0.4) 100%),
    linear-gradient(to top, rgba(13, 17, 18, 0.75) 0%, transparent 42%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: auto -10% 5% 35%;
  height: 60%;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(240, 96, 24, 0.28), transparent 62%);
  pointer-events: none;
  filter: blur(10px);
  animation: pulse-glow 7s ease-in-out infinite;
}

.hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
  flex: 1;
}

@media (min-width: 960px) {
  .hero__grid {
    padding: 4.5rem 0 3rem;
    max-width: 54%;
    margin-right: auto;
  }
}

.hero__copy {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1.1rem;
}

.hero__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.2vw, 4.85rem);
  line-height: 0.98;
  margin: 0 0 1.1rem;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero__brand span {
  color: var(--orange);
  display: inline;
}

.hero__lead {
  max-width: 32rem;
  margin: 0 0 1.85rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: rgba(252, 252, 251, 0.72);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.orb {
  position: relative;
  width: min(72vw, 380px);
  aspect-ratio: 1;
}

.orb--hero {
  position: absolute;
  z-index: 2;
  width: min(70vw, 520px);
  right: -4%;
  top: 12%;
  pointer-events: none;
  filter: drop-shadow(0 20px 50px rgba(240, 96, 24, 0.4));
  animation: rise 1.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: screen;
  opacity: 0.92;
}

@media (max-width: 959px) {
  .orb--hero {
    width: min(62vw, 280px);
    right: -8%;
    top: auto;
    bottom: 18%;
    opacity: 0.75;
  }
}

.orb__core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff6 0 8%, transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(27, 73, 101, 0.85), transparent 55%),
    radial-gradient(circle at 40% 55%, var(--orange), #8a2e0a 70%);
  box-shadow:
    0 0 60px rgba(240, 96, 24, 0.35),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
  animation: orb-float 6.5s ease-in-out infinite;
}

.orb__ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: ring-spin 18s linear infinite;
}

.orb__ring--delay {
  inset: 0;
  border-color: rgba(240, 96, 24, 0.28);
  animation-duration: 26s;
  animation-direction: reverse;
}

/* Sector strip — marquee */
.strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  width: 100%;
}

.strip__track {
  display: flex;
  width: max-content;
  overflow: visible;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  animation: marquee 32s linear infinite;
}

.strip__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5rem;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.strip__inner span {
  white-space: nowrap;
}

.strip__inner span::after {
  content: "·";
  margin-left: 2.5rem;
  opacity: 0.35;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--light {
  background: #fff;
  color: var(--charcoal);
}

.btn--light:hover {
  background: var(--orange-soft);
}

.btn--primary {
  background: var(--orange);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: #ff6f28;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--nav {
  min-height: 40px;
  padding: 0 0.95rem;
  background: #fff;
  color: var(--charcoal);
  font-size: 0.85rem;
}

.btn--nav:hover {
  background: var(--orange);
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
  background: var(--canvas);
}

.section--alt {
  background: var(--canvas-alt);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.section__label--on-dark {
  color: rgba(255, 255, 255, 0.4);
}

.section__title {
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__title--on-dark {
  color: #fff;
}

.section__sub {
  margin: 0 0 2.75rem;
  max-width: 36rem;
  color: var(--slate);
  font-size: 1.05rem;
}

.section__sub--on-dark {
  color: rgba(255, 255, 255, 0.62);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.flow__step {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.flow__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.flow__step h3 {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  color: #fff;
}

.flow__step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.role {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--charcoal);
}

.role h3 {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.role p {
  margin: 0;
  color: var(--slate);
}

.role__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.65rem;
}

.tiers {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}

@media (min-width: 860px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier {
  padding: 1.7rem 1.45rem 1.85rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .tier {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .tier:last-child {
    border-right: none;
  }
}

.tier--featured {
  background: linear-gradient(180deg, var(--orange-soft) 0%, #fff 48%);
}

.tier__name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}

.tier__headline {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.tier ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 2px;
  background: var(--orange);
}

/* Demo */
.demo {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  .demo {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.demo__panel h2 {
  margin-bottom: 0.75rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form option {
  color: var(--charcoal);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(240, 96, 24, 0.2);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.form__note--on-dark {
  color: rgba(255, 255, 255, 0.4);
}

.form__status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.25rem;
}

.form__status--ok {
  color: var(--ok);
}

.form__status--err {
  color: var(--alarm);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  background: var(--ink);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer a:hover {
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes photo-ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 0.12s);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .brand__name {
    font-size: 0.9rem;
    max-width: 8.5rem;
  }
  .hero__brand {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy,
  .orb--hero,
  .orb__core,
  .orb__ring,
  .hero__glow,
  .hero__media-img,
  .strip__track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
