:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-2: #08111f;
  --surface: rgba(12, 22, 38, .72);
  --surface-strong: rgba(18, 31, 52, .86);
  --line: rgba(162, 183, 255, .16);
  --line-strong: rgba(130, 164, 255, .28);
  --text: #edf4ff;
  --muted: #9fb0cc;
  --muted-2: #70819d;
  --blue: #4c63ff;
  --blue-2: #2f80ff;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #42e5a2;
  --shadow: 0 24px 90px rgba(0, 0, 0, .45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
  --pointer-x: 50vw;
  --pointer-y: 20vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(76, 99, 255, .18), transparent 24rem),
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, .12), transparent 24rem),
    linear-gradient(180deg, #04070f 0%, #07111f 55%, #050914 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(76, 99, 255, .45); color: white; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: .8rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.cursor-glow {
  position: fixed;
  inset: auto;
  left: var(--pointer-x);
  top: var(--pointer-y);
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), rgba(76, 99, 255, .08) 38%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.site-shell { position: relative; z-index: 1; }
.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(calc(100% - 28px), var(--max));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .72rem .65rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 10, 20, .68);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 60px rgba(0,0,0,.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.12rem;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(76, 99, 255, .28));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.main-nav a,
.command-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: .75rem .88rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.command-button:hover,
.command-button:focus-visible {
  color: white;
  background: rgba(255,255,255,.07);
  outline: none;
}
.command-button {
  border: 1px solid var(--line);
  margin-left: .35rem;
  color: #d8e5ff;
  background: rgba(255,255,255,.04);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: white;
}

.hero {
  width: min(calc(100% - 28px), var(--max));
  min-height: 720px;
  margin: 28px auto 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #050914;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5,9,20,.96) 0%, rgba(5,9,20,.72) 38%, rgba(5,9,20,.18) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/hero-cayri-ai-lab.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  filter: saturate(1.1) contrast(1.06);
}
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5.2rem);
}
.hero-copy { max-width: 650px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: #bcd4ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow span {
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px rgba(34,211,238,.55);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: .92;
  letter-spacing: -.085em;
  max-width: 850px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: 1rem;
}
h3 { letter-spacing: -.035em; }
.lead {
  max-width: 660px;
  color: #c5d2e8;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: white;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  border-color: rgba(76, 99, 255, .65);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 42px rgba(76,99,255,.34);
}
.button.ghost { background: rgba(255,255,255,.05); }

.hero-panel {
  position: relative;
  align-self: end;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(10, 18, 34, .80), rgba(16, 28, 48, .48));
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.panel-orbit {
  position: absolute;
  inset: -80px -60px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px dashed rgba(34,211,238,.35);
  animation: spin 28s linear infinite;
}
.panel-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 22px rgba(76, 99, 255, .45));
}
.panel-label {
  margin-bottom: .25rem;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-panel strong { display: block; margin-bottom: .3rem; font-size: 1.2rem; }
.hero-panel span { color: var(--muted); line-height: 1.45; }

.section {
  width: min(calc(100% - 28px), var(--max));
  margin: 18px auto 0;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(8, 16, 29, .78), rgba(7, 14, 26, .52));
  box-shadow: 0 18px 70px rgba(0,0,0,.26);
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(5, 9, 20, .38);
}
.feature-card,
.project-card,
.member-card,
.contact-form,
.mini-note,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  min-height: 230px;
}
.feature-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: auto -35% -45% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(76,99,255,.16);
  filter: blur(26px);
}
.feature-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 1.4rem;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h2 { font-size: 1.25rem; letter-spacing: -.035em; margin-bottom: .7rem; }
.feature-card p, .section-copy p, .section-heading p, .project-card span, .member-card p, .contact-copy p, .legal-card p, .legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.section-copy p { font-size: 1rem; }
.image-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #08111f;
}
.image-card img, .team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #d9e6ff;
  background: rgba(5, 9, 20, .68);
  backdrop-filter: blur(16px);
}
.section-heading {
  max-width: 780px;
  margin-bottom: 1.4rem;
}
.project-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scroll-snap-type: x proximity;
}
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 1.3rem;
  scroll-snap-align: start;
}
.project-card p {
  display: inline-flex;
  margin-bottom: 1.4rem;
  padding: .35rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .07);
  font-size: .78rem;
  font-weight: 800;
}
.project-card h3 { font-size: 1.45rem; margin-bottom: .8rem; }

.principles {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.principle-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(34,211,238,.18), transparent 35%),
    linear-gradient(135deg, rgba(76,99,255,.1), rgba(139,92,246,.12));
}
.principle-visual::before,
.principle-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(162,183,255,.2);
  border-radius: 48px;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: float 8s ease-in-out infinite;
}
.principle-visual::after {
  width: 170px;
  height: 170px;
  border-color: rgba(34,211,238,.4);
  animation-delay: -3s;
}
.node-cloud span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(18px * var(--s));
  height: calc(18px * var(--s));
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(34,211,238,.75);
}
.check-list {
  display: grid;
  gap: .8rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255,255,255,.035);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #04101c;
  background: var(--green);
  font-size: .9rem;
  font-weight: 900;
}

.team-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  align-items: stretch;
}
.team-image {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.team-cards { display: grid; gap: 1rem; }
.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
}
.member-avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(162,183,255,.22);
  box-shadow: 0 14px 34px rgba(6, 12, 28, .42);
  background: linear-gradient(135deg, rgba(76,99,255,.95), rgba(34,211,238,.84));
}
.member-card h3 { margin-bottom: .2rem; }
.member-card p { margin-bottom: 0; }

.contact {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.mini-note {
  padding: 1rem;
  margin-top: 1.3rem;
  color: #cddbf3;
  background: rgba(34,211,238,.055);
}
.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}
.contact-form label { display: grid; gap: .45rem; color: #dce7fa; font-weight: 750; }
.contact-form input,
.contact-form textarea,
.contact-form select,
.command-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: white;
  background: rgba(4, 8, 16, .65);
  padding: .9rem 1rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.command-box input:focus {
  border-color: rgba(34,211,238,.62);
  box-shadow: 0 0 0 4px rgba(34,211,238,.08);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5rem; margin: 0; color: var(--cyan); }

.site-footer {
  width: min(calc(100% - 28px), var(--max));
  margin: 18px auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(5, 9, 20, .64);
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span, .site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a:hover { color: white; }

.command-dialog {
  width: min(560px, calc(100% - 28px));
  border: 0;
  padding: 0;
  color: white;
  background: transparent;
}
.command-dialog::backdrop { background: rgba(1, 4, 10, .72); backdrop-filter: blur(10px); }
.command-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(7, 14, 26, .94);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.command-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.05);
  font-size: 1.4rem;
}
.command-box input { border-radius: 0; border-width: 0 0 1px; }
.command-list { display: grid; gap: .35rem; padding: .7rem; max-height: 360px; overflow: auto; }
.command-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}
.command-item:hover, .command-item:focus-visible { border-color: var(--line); color: white; background: rgba(255,255,255,.05); outline: none; }

.legal-page {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 1rem;
  width: min(calc(100% - 28px), 920px);
  margin: 24px auto;
}
.legal-brand { width: max-content; }
.legal-card { padding: clamp(1.4rem, 4vw, 2.4rem); }
.legal-card h1 { font-size: clamp(2.6rem, 8vw, 4.5rem); }
.legal-card h2 { font-size: 1.45rem; margin-top: 1.6rem; }
.legal-card code { color: var(--cyan); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.tilt-card { transform-style: preserve-3d; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg) translateY(-8px); }
  50% { transform: translate(-50%, -50%) rotate(45deg) translateY(8px); }
}

@media (max-width: 1020px) {
  .hero-grid, .split, .principles, .team-wrap, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(5,9,20,.96) 0%, rgba(5,9,20,.78) 55%, rgba(5,9,20,.46) 100%); }
  .hero-panel { max-width: 420px; align-self: start; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .project-board { grid-template-columns: repeat(4, minmax(265px, 1fr)); margin-inline: calc(clamp(2rem, 5vw, 4.5rem) * -1); padding-inline: clamp(2rem, 5vw, 4.5rem); }
}

@media (max-width: 760px) {
  :root { --radius-xl: 24px; }
  .topbar { top: 10px; width: min(calc(100% - 20px), var(--max)); }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 10, 20, .95);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .topbar.is-open .main-nav { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .main-nav a, .command-button { width: 100%; text-align: left; }
  .brand span { font-size: 1rem; }
  .hero, .section, .site-footer { width: calc(100% - 20px); }
  .hero-grid, .section { padding: 1.3rem; }
  .hero-grid { padding-top: 4.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 5.1rem); }
  .lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .image-card, .principle-visual, .team-image { min-height: 320px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cursor-glow { display: none; }
}


.brand-logo { display: inline-flex; align-items: center; }
.logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(2, 8, 23, .22);
  border: 1px solid rgba(10, 20, 40, .08);
}
.logo-card img { display: block; height: auto; }
.logo-card--nav { padding: .28rem .55rem; }
.logo-card--nav img { width: 132px; }
.logo-card--hero { padding: .8rem 1rem; margin-bottom: .8rem; }
.logo-card--hero img { width: min(260px, 100%); }
.logo-card--footer { padding: .35rem .65rem; }
.logo-card--footer img { width: 118px; }
.hero-panel { align-items: center; }
.panel-logo { width: min(260px, 100%); height: auto; margin: 0; }
.footer-brand { align-items: center; }
.team-image img { object-position: center top; }
@media (max-width: 780px) {
  .logo-card--nav img { width: 112px; }
  .logo-card--hero img { width: min(220px, 100%); }
}
