/* ============================================================
   CyberPass — Futuristic AI-themed landing
   Deep-dark canvas · Purple/Blue gradient · Particle aesthetic
   ============================================================ */

:root {
  --bg-0: #060617;
  --bg-1: #0b0b26;
  --bg-2: #111136;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text-0: #f4f5ff;
  --text-1: #c8ccef;
  --text-2: #8b8fb6;
  --muted:  #5f6393;

  --accent-1: #7c5cff;   /* violet */
  --accent-2: #38bdf8;   /* sky   */
  --accent-3: #f0abfc;   /* pink  */
  --accent-4: #22d3ee;   /* cyan  */

  --grad-primary: linear-gradient(135deg, #7c5cff 0%, #38bdf8 55%, #22d3ee 100%);
  --grad-warm:    linear-gradient(135deg, #f0abfc 0%, #7c5cff 100%);
  --grad-panel:   linear-gradient(180deg, rgba(124,92,255,0.08), rgba(56,189,248,0.03));

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-lg: 0 30px 80px -20px rgba(80, 60, 220, 0.45);
  --shadow-md: 0 10px 40px -10px rgba(80, 60, 220, 0.35);

  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
    'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-1);
  background: var(--bg-0);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-2); }

ul { list-style: none; }

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

button { font-family: inherit; cursor: pointer; }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%,  rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 20%,  rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(ellipse 90% 70% at 60% 100%, rgba(240, 171, 252, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-0) 100%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Subtle animated grid overlay */
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 90%);
  opacity: 0.6;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-0);
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 60%);
  pointer-events: none;
}

/* Logo variant — when brand-mark wraps an <img>, let the image take over */
.brand-mark.has-logo {
  background: #fff;
  padding: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 8px 28px -6px rgba(124, 92, 255, 0.55),
    0 2px 10px rgba(56, 189, 248, 0.25);
}

.brand-mark.has-logo::after { display: none; }

.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  position: relative;
}

.nav-links a:hover { color: var(--text-0); }

.lang-switch {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-2);
  transition: all 0.2s ease;
}

.lang-switch a.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(124, 92, 255, 0.6);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-0);
  place-items: center;
}

/* ---------- Layout ---------- */
section {
  padding: 120px 40px;
  position: relative;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-head p {
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto;
  font-size: 17px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 100px;
  position: relative;
}

.hero-inner {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 28px;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-1);
  max-width: 720px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(124, 92, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -8px rgba(124, 92, 255, 0.8);
  color: #fff;
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text-0);
}

.btn-ghost:hover {
  background: var(--panel-strong);
  transform: translateY(-2px);
  color: var(--text-0);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 80px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}

.hero-stat .num {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-panel);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(56,189,248,0.2));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.card-icon svg { width: 26px; height: 26px; }

.card p {
  color: var(--text-2);
  font-size: 15px;
}

.card ul.ticks {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul.ticks li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 14px;
}

.card ul.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-primary);
  opacity: 0.8;
}

/* ---------- Innovation / feature list ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-l);
  padding: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(124,92,255,0.4), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,0.3), transparent 60%),
    rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-visual .flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-content: center;
  height: 100%;
  min-height: 280px;
  align-items: center;
}

.flow-node {
  padding: 10px 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-0);
  backdrop-filter: blur(6px);
}

.flow-arrow {
  color: var(--accent-2);
  font-weight: 800;
  font-size: 16px;
  opacity: 0.7;
}

.feature-list { display: flex; flex-direction: column; gap: 22px; }

.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: var(--shadow-md);
}

.feature-item h4 {
  color: var(--text-0);
  margin-bottom: 4px;
  font-size: 18px;
}

.feature-item p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Case study ---------- */
.case {
  padding: 48px;
  border-radius: var(--radius-l);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(56, 189, 248, 0.08)),
    rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.case::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(240,171,252,0.25), transparent 60%);
  pointer-events: none;
}

.case-body { position: relative; z-index: 1; }

.case-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.case-body ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-body ul li {
  color: var(--text-1);
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}

.case-body ul li::before {
  content: '▸';
  color: var(--accent-2);
  position: absolute;
  left: 0;
}

.case-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  background:
    radial-gradient(circle at 50% 30%, rgba(124,92,255,0.4), transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(56,189,248,0.35), transparent 60%),
    #0b0b26;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text-0);
}

.case-visual svg {
  width: 72%;
  height: auto;
  max-height: 80%;
  opacity: 0.95;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.member:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  position: relative;
}

.avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.avatar svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

.member h3 { font-size: 20px; margin-bottom: 6px; }
.member .role { color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 14px; text-transform: uppercase; }
.member p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ---------- Roadmap ---------- */
.roadmap {
  position: relative;
  padding: 20px 0;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
  opacity: 0.5;
  transform: translateY(-50%);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.roadmap-stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px 22px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}

.roadmap-stage .year {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.roadmap-stage h4 {
  color: var(--text-0);
  font-size: 17px;
  margin-bottom: 10px;
}

.roadmap-stage p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact {
  padding: 80px 40px;
  text-align: center;
}

.contact-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: var(--radius-l);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(56, 189, 248, 0.1)),
    rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.contact-card h2 { margin-bottom: 14px; }
.contact-card p  { color: var(--text-1); margin-bottom: 32px; font-size: 17px; }

.contact-methods {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-0);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(124, 92, 255, 0.15);
  color: var(--text-0);
}

.contact-item svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
footer {
  padding: 50px 40px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .foot-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  padding: 3px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2),
    0 10px 30px -8px rgba(124, 92, 255, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
}

footer .foot-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  display: block;
}

footer .foot-brand {
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 90px 24px; }
  .nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 6, 23, 0.95);
    backdrop-filter: blur(14px);
    padding: 20px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .lang-switch { margin-top: 10px; }
  .burger { display: grid; }

  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .case { grid-template-columns: 1fr; padding: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { padding: 120px 24px 80px; }
}

@media (max-width: 560px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap::before { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 40px 24px; }
  .case { padding: 28px 22px; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mb-s { margin-bottom: 12px; }
.mb-m { margin-bottom: 24px; }
.mb-l { margin-bottom: 48px; }
