/* ─── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg:           #09111f;
  --bg-2:         #151f32;
  --bg-card:      rgba(9, 17, 31, 0.78);
  --bg-card-h:    rgba(21, 31, 50, 0.85);
  --text:         #f7f0e8;
  --text-2:       #97a7bd;
  --border:       rgba(247, 240, 232, 0.12);
  --border-h:     rgba(247, 240, 232, 0.22);
  --accent:       #ff6b2c;
  --accent-light: #ffb703;
  --teal:         #2dd4bf;
  --purple:       #7c6af7;
  --glow-o:       rgba(255, 107, 44, 0.22);
  --glow-t:       rgba(45, 212, 191, 0.18);
  --glow-p:       rgba(124, 106, 247, 0.14);
  --radius:       28px;
  --radius-sm:    14px;
  --radius-pill:  999px;
  --header-h:     96px;
  --max-w:        1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 107, 44, 0.3), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(45, 212, 191, 0.18), transparent 26%),
    linear-gradient(140deg, #111a2c 0%, #08111d 62%, #050a12 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* ─── Background Layers ───────────────────────────────────────── */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70rem 40rem at 90% 10%, rgba(255, 107, 44, 0.12), transparent),
    radial-gradient(ellipse 60rem 40rem at 10% 80%, rgba(45, 212, 191, 0.1), transparent),
    radial-gradient(ellipse 80rem 50rem at 50% 50%, rgba(255, 183, 3, 0.06), transparent);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

/* ─── Scroll Progress ─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--teal));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.5rem, (100vw - var(--max-w)) / 2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(9, 17, 31, 0.95);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 88px;
  width: auto;
}

.brand-mark-img {
  width: 34px;
  height: 34px;
}

.brand-text { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-nav {
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: #09111f !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-pill) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--glow-o);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-btn.active {
  color: var(--accent);
  background: rgba(255, 107, 44, 0.12);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Container ───────────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 92vw);
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { border-color: var(--border-h); background: rgba(255,255,255,0.06); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #09111f;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-o);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: var(--border-h);
}

.btn-small {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.btn-teal {
  background: rgba(46, 196, 182, 0.12);
  border-color: rgba(46, 196, 182, 0.3);
  color: var(--teal);
}

.btn-teal:hover {
  background: rgba(46, 196, 182, 0.2);
  box-shadow: 0 6px 20px var(--glow-t);
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  max-width: 860px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.hero-typed {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  height: 1.7em;
  margin-bottom: 2.5rem;
}

.hero-typed .typed-word {
  color: var(--accent);
  font-weight: 600;
}

.hero-typed .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── Stats Strip ─────────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 5rem;
}

.stat-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.2s ease;
}

.stat-item:hover { background: var(--bg-card-h); }

.stat-number {
  font-family: "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 0.4rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ─── Sections ────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ─── Grids ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,107,44,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: 0 32px 70px rgba(0,0,0,0.4), 0 0 0 1px var(--border-h);
}

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

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}

.card p { color: var(--text-2); font-size: 0.93rem; line-height: 1.65; }

/* Product cards */
.product-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.card-icon--accent { background: rgba(249,141,67,0.15);  color: var(--accent); }
.card-icon--purple { background: rgba(124,106,247,0.15); color: var(--purple); }
.card-icon--teal   { background: rgba(46,196,182,0.12);  color: var(--teal); }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: var(--text-2);
  margin-top: 1.25rem;
}

/* Service cards */
.service-card {
  border-top: 3px solid transparent;
  background-clip: padding-box;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after { opacity: 1; }

/* Featured service cards (ULTD AI, ULTD Studio) */
.service-card--featured {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(46,196,182,0.06) 0%, rgba(124,106,247,0.06) 100%);
  border-color: rgba(46,196,182,0.22);
}

.service-card--featured::after { opacity: 1; }

.service-card--featured h3 {
  font-size: 1.25rem;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-icon--featured {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46,196,182,0.18), rgba(124,106,247,0.18));
  color: var(--teal);
}

/* App cards */
.app-card .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.status-badge.building {
  background: rgba(249,141,67,0.15);
  color: var(--accent);
  border: 1px solid rgba(249,141,67,0.3);
}

.status-badge.live {
  background: rgba(46,196,182,0.12);
  color: var(--teal);
  border: 1px solid rgba(46,196,182,0.3);
}

.status-badge.planning {
  background: rgba(124,106,247,0.12);
  color: var(--purple);
  border: 1px solid rgba(124,106,247,0.3);
}

.status-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.text-link:hover { gap: 0.5rem; opacity: 0.8; }
.text-link::after { content: '→'; }

/* ─── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem 3.5rem;
  overflow: hidden;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60rem 30rem at 50% 120%, rgba(255,107,44,0.12), transparent),
    radial-gradient(ellipse 40rem 20rem at 80% -20%, rgba(45,212,191,0.1), transparent);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Contact page ────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  padding: 5rem 0;
}

.contact-info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.contact-info .section-intro { margin-bottom: 2.5rem; }

.contact-points { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }

.contact-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(46,196,182,0.12);
  color: var(--teal);
}

.cp-text strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; }
.cp-text span { font-size: 0.85rem; color: var(--text-2); }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.contact-form-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}

/* ─── Forms ───────────────────────────────────────────────────── */
.stack-form { display: grid; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

label .req { color: var(--accent); margin-left: 1px; }

input, textarea, select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

input:focus, textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.12);
  background: rgba(255,255,255,0.06);
}

textarea { resize: vertical; min-height: 120px; }

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.25); }

/* ─── Flash messages ──────────────────────────────────────────── */
.flash-wrap { display: grid; gap: 0.6rem; margin: 1rem 0; }

.flash {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.flash-success { background: rgba(46,196,182,0.1); border-color: var(--teal); color: var(--teal); }
.flash-danger  { background: rgba(249,141,67,0.1); border-color: var(--accent); color: var(--accent); }
.flash-warning, .flash-info { background: rgba(255,255,255,0.06); border-color: var(--border-h); }

/* ─── Admin ───────────────────────────────────────────────────── */
.split-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; min-width: 760px; }

th {
  background: rgba(255,255,255,0.04);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-2);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.message-cell { min-width: 280px; color: var(--text); }

.unread-row { background: rgba(249,141,67,0.04); }

.badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
}

.badge-unread { background: rgba(249,141,67,0.15); color: var(--accent); }
.badge-read   { background: rgba(255,255,255,0.07); color: var(--text-2); }

/* ─── Narrow ──────────────────────────────────────────────────── */
.narrow { max-width: 720px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem max(1.5rem, (100vw - var(--max-w)) / 2) 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand { max-width: 260px; }
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand .brand-logo { height: 68px; }
.footer-brand p { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-2); }

/* ─── Reveal animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.reveal-visible { transform: translateX(0); opacity: 1; }

/* ─── Admin ───────────────────────────────────────────────────── */
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.admin-back-link:hover { color: var(--text); }

/* Summary cards on dashboard */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-summary-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-h);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.asc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.asc-icon--orange { background: rgba(249,141,67,0.13); color: var(--accent); }
.asc-icon--teal   { background: rgba(46,196,182,0.12);  color: var(--teal); }
.asc-icon--purple { background: rgba(124,106,247,0.12); color: var(--purple); }

.asc-number {
  font-family: "Avenir Next", "Futura", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.asc-label {
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.asc-arrow {
  margin-left: auto;
  color: var(--text-2);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.admin-summary-card:hover .asc-arrow { transform: translateX(4px); color: var(--text); }

/* Contacts toolbar */
.contacts-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contacts-filters {
  display: flex;
  gap: 0.4rem;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d0d;
  font-size: 0.65rem;
  font-weight: 800;
  margin-left: 0.3rem;
}

.contacts-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.search-wrap {
  position: relative;
}
.search-wrap input {
  padding-left: 2.2rem;
  min-width: 240px;
  height: 36px;
  font-size: 0.88rem;
}
.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  pointer-events: none;
}

/* Contact list rows */
.contacts-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 280px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: rgba(255,255,255,0.025); }
.contact-row--unread { background: rgba(249,141,67,0.04); }
.contact-row--unread:hover { background: rgba(249,141,67,0.07); }

.cr-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #0d0d0d;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cr-info { min-width: 0; }
.cr-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-email {
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cr-subject { min-width: 0; }
.cr-subject-text {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-preview {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-date {
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
}

.cr-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Contact detail */
.contact-detail-card {
  padding: 2rem;
}

.cd-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.cd-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #0d0d0d;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cd-meta { flex: 1; min-width: 0; }
.cd-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.cd-sub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.cd-email { color: var(--teal); font-size: 0.9rem; }
.cd-email:hover { text-decoration: underline; }
.cd-sep { color: var(--text-2); }
.cd-company { font-size: 0.88rem; color: var(--text-2); }
.cd-date { font-size: 0.8rem; color: var(--text-2); }

.cd-subject-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.cd-subject-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
  flex-shrink: 0;
}
.cd-subject-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.cd-body {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Reply history */
.cd-replies {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.cd-replies-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.cd-reply {
  background: rgba(46,196,182,0.06);
  border: 1px solid rgba(46,196,182,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.cd-reply-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.cd-reply-date {
  font-size: 0.78rem;
  font-weight: 600;
}

.cd-reply-body {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Reply form */
.cd-reply-form-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.cd-reply-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cd-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ─── Projects Page ──────────────────────────────────────────── */
.projects-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font: 600 0.85rem "Avenir Next", "Futura", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--border-h);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #0d0d0d;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--glow-o);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.75rem;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.pc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.project-card:hover .pc-icon { transform: scale(1.08); }

.pc-icon--edu      { background: rgba(46,196,182,0.12);  color: var(--teal); }
.pc-icon--payment  { background: rgba(249,141,67,0.12);  color: var(--accent); }
.pc-icon--rental   { background: rgba(124,106,247,0.12); color: var(--purple); }
.pc-icon--deploy   { background: rgba(46,196,182,0.12);  color: var(--teal); }
.pc-icon--blockchain { background: rgba(249,141,67,0.12); color: var(--accent); }
.pc-icon--patent   { background: rgba(124,106,247,0.12); color: var(--purple); }

.pc-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.pc-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 0 1.1rem;
  flex-grow: 1;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.pc-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  color: var(--text-2);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.pc-features {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.5;
}

.pc-features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.42em;
}

.pc-footer {
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 3rem 2rem; }

  .contact-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .cr-subject { grid-column: 1; }
  .cr-date { display: none; }
  .cr-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; }

  .contacts-search { margin-left: 0; width: 100%; }
  .search-wrap { flex: 1; }
  .search-wrap input { min-width: unset; width: 100%; }

  .cd-header { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .hamburger { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #0d1829;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    pointer-events: none;
    z-index: 105;
  }

  .site-nav.open {
    max-height: 500px;
    opacity: 1;
    padding: 0.75rem 1.25rem 1.25rem;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .btn-nav {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
    font-size: 0.95rem !important;
    padding: 0.7rem 1.25rem !important;
    text-align: center !important;
    border-bottom: none !important;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .hero { padding: 4rem 0 3rem; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-brand { max-width: 100%; }

  .section { padding: 3.5rem 0; }

  .contact-form-wrap { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .cta-card { padding: 2rem 1.5rem; }
}
