/* =============================================================
   Narin Dezh Sanat Amn — Premium Enterprise Cybersecurity Design
   ============================================================= */

/* Animated border-trace angle */
@property --trace-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --sheen-pos { syntax: "<percentage>"; initial-value: 0%; inherits: false; }

:root {
  --bg-primary: #070b16;
  --bg-surface: #0b1120;
  --bg-surface-2: #0e1626;
  --bg-card: #101a30;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-cyan: #06b6d4;
  --accent-cyan-bright: #00d8f6;
  --accent-blue: #0284c7;
  --text-main: #eef2f8;
  --text-muted: #93a1b8;
  --text-dim: #5d6b85;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-soft: rgba(148, 163, 184, 0.08);
  --border-glow: rgba(16, 185, 129, 0.35);
  --emerald-glow: rgba(16, 185, 129, 0.45);
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --light-bg: #ffffff;
  --light-bg-2: #f7f9fc;
  --light-text: #0f172a;
  --light-text-2: #475569;
  --light-border: #e5e9f0;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1220px;
  --nav-h: 72px;
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.28s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-fa);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle page ambience */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(16, 185, 129, 0.06), transparent 60%),
    radial-gradient(50rem 28rem at -10% 20%, rgba(6, 182, 212, 0.05), transparent 60%),
    var(--bg-primary);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

::selection { background: rgba(16, 185, 129, 0.3); color: #eafff6; }

/* ---------- Typography scale (enterprise) ---------- */
h1, h2, h3, h4, h5 { line-height: 1.45; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 700; }
h2, .h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p { line-height: 1.8; }

/* Persian readability: no letter-spacing on body/headings */
[lang="fa"] { letter-spacing: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }

.section { padding: 90px 0; position: relative; }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-slate { background: var(--light-bg-2); color: var(--light-text); }

/* Technical grid background (behind content) */
.grid-bg {
  position: relative;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
}
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48rem 22rem at 50% -12%, rgba(16, 185, 129, 0.07), transparent 62%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.2), rgba(7, 11, 22, 0.9));
}
.grid-bg > * { position: relative; z-index: 1; }

/* Mono eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-cyan)); }

.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: linear-gradient(270deg, transparent, var(--accent-cyan)); }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1.02rem; max-width: 620px; }
.section-head.center p { margin-inline: auto; }
.section-light .section-head p, .section-slate .section-head p { color: var(--light-text-2); }

bdi, .ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-fa); font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn::after { /* sheen sweep */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg); transition: left 0.55s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn-primary {
  background: linear-gradient(180deg, #12cf92, var(--accent-emerald)); color: #052e22;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px -12px var(--emerald-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { background: linear-gradient(180deg, #16e0a0, #0ea371); color: #03251c; transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--emerald-glow); }
.btn-ghost { background: rgba(148, 163, 184, 0.05); color: var(--text-main); border-color: var(--border-subtle); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan-bright); background: rgba(6, 182, 212, 0.09); transform: translateY(-2px); }
.btn-outline-emerald { background: transparent; color: var(--accent-emerald); border-color: var(--border-glow); }
.btn-outline-emerald:hover { background: rgba(16, 185, 129, 0.12); transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

/* ---------- Navigation (glassmorphism) ---------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.72), rgba(7, 11, 22, 0.55));
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav::after { /* faint top accent hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25), transparent);
}
.nav.scrolled { background: linear-gradient(180deg, rgba(7, 11, 22, 0.9), rgba(7, 11, 22, 0.82)); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.85); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.14));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 24px -8px var(--emerald-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--accent-emerald);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 0 30px -6px var(--emerald-glow); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-weight: 700; font-size: 0.98rem; line-height: 1.2; white-space: nowrap; color: var(--text-main); }
.brand-sub { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; white-space: nowrap; margin-top: 3px; line-height: 1; }
.brand-logo-img { height: 40px; width: auto; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 0.9rem; color: var(--text-muted); padding: 8px 13px; border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease; position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--text-main); background: rgba(148, 163, 184, 0.08); }
.nav-links a.active { color: var(--text-main); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: 3px; inset-inline: 13px; height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan)); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-right .btn { padding: 9px 15px; font-size: 0.83rem; white-space: nowrap; flex: none; height: 40px; }
.nav-cta { white-space: nowrap; }
.nav-cta span { white-space: nowrap; }
.nav-cta svg { flex: none; width: 16px; height: 16px; }

.lang-switch { display: flex; border: 1px solid var(--border-subtle); border-radius: 9px; overflow: hidden; background: rgba(148, 163, 184, 0.04); }
.lang-switch a { padding: 6px 12px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); transition: all 0.2s ease; }
.lang-switch a.active { background: rgba(6, 182, 212, 0.16); color: var(--accent-cyan-bright); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 0.64rem; color: var(--text-muted); letter-spacing: 0.05em;
  padding: 7px 12px; border: 1px solid var(--border-subtle); border-radius: 20px;
  background: rgba(16, 185, 129, 0.05);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-emerald); box-shadow: 0 0 0 0 var(--emerald-glow); animation: pulseDot 2.2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 var(--emerald-glow); } 70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.nav-toggle { display: none; background: rgba(148,163,184,0.05); border: 1px solid var(--border-subtle); border-radius: 9px; color: var(--text-main); width: 42px; height: 42px; cursor: pointer; }
.nav-toggle svg { width: 21px; height: 21px; margin: auto; }

/* ---------- Mobile bottom navigation ---------- */
.mobile-bottom-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-ambient canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0; }
.hero h1 .accent {
  background: linear-gradient(120deg, #34e3a5, var(--accent-emerald) 45%, var(--accent-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 18px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { position: relative; padding-inline-start: 14px; }
.hero-stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent-emerald), transparent); }
.hero-stat .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--accent-cyan-bright); line-height: 1.2; }
.hero-stat .lbl { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 500px; margin-inline: auto; width: 100%; }
.hero-visual canvas#hero-canvas { width: 100%; height: 100%; display: block; }
.hero-visual::before { /* soft radial under visual */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05) 55%, transparent 72%);
  filter: blur(4px);
}
.visual-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border-soft); pointer-events: none; }
.visual-tag {
  position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em;
  background: rgba(11, 17, 32, 0.82); border: 1px solid var(--border-subtle); backdrop-filter: blur(8px);
  padding: 7px 11px; border-radius: 9px; color: var(--text-muted); display: flex; align-items: center; gap: 7px;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8);
  animation: floatY 5s ease-in-out infinite;
}
.visual-tag .status-dot { width: 6px; height: 6px; }
.visual-tag.t1 { top: 8%; inset-inline-start: -2%; animation-delay: 0s; }
.visual-tag.t2 { bottom: 15%; inset-inline-end: -4%; animation-delay: 1.4s; }
.visual-tag.t3 { top: 42%; inset-inline-end: -2%; color: var(--accent-cyan); animation-delay: 2.6s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Standards ticker ---------- */
.ticker { background: linear-gradient(90deg, rgba(11,17,32,0.9), rgba(14,22,38,0.9)); border-block: 1px solid var(--border-soft); overflow: hidden; padding: 15px 0; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg-primary), transparent); }
.ticker-track { display: flex; gap: 52px; width: max-content; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--font-mono); font-size: 0.84rem; color: var(--accent-cyan); letter-spacing: 0.06em; display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.ticker-item::before { content: "◆"; color: var(--accent-emerald); font-size: 0.55rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: tickerRtl; }
@keyframes tickerRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; align-items: stretch; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-surface-2));
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* cursor spotlight */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), rgba(16, 185, 129, 0.12), transparent 46%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }
/* animated border tracing */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); z-index: 0;
  padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--trace-angle), transparent 0%, transparent 12%, rgba(6, 182, 212, 0.9) 20%, rgba(16, 185, 129, 0.95) 26%, transparent 34%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover::after { opacity: 1; animation: traceSpin 2.6s linear infinite; }
@keyframes traceSpin { to { --trace-angle: 360deg; } }
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 54px -30px rgba(0, 0, 0, 0.9), 0 0 30px -18px var(--emerald-glow); }

/* moving gradient sheen + scanline on hover */
.card .sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.card .sheen::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(6, 182, 212, 0.06), rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-18deg);
}
.card:hover .sheen { opacity: 1; }
.card:hover .sheen::before { animation: sheenMove 1.3s var(--ease-io) infinite; }
@keyframes sheenMove { from { left: -35%; } to { left: 130%; } }
.card .scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.55), transparent); }
.card:hover .scanline { opacity: 1; animation: scanY 1.9s linear infinite; }
@keyframes scanY { from { top: 0; } to { top: 100%; } }

.card-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; flex: none;
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.16), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border-glow); color: var(--accent-emerald);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover .card-icon { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 20px -6px var(--emerald-glow), inset 0 1px 0 rgba(255,255,255,0.06); }
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card .card-sub { font-family: var(--font-mono); font-size: 0.62rem; color: var(--accent-cyan); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.card p { color: var(--text-muted); font-size: 0.92rem; }
.card-badge { position: absolute; top: 18px; inset-inline-end: 18px; font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent-emerald); border: 1px solid var(--border-glow); border-radius: 20px; padding: 4px 10px; background: rgba(16, 185, 129, 0.06); }
.card-features { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.card-features li { font-size: 0.86rem; color: var(--text-muted); display: flex; gap: 9px; align-items: flex-start; }
.card-features li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--accent-cyan); flex: none; box-shadow: 0 0 6px var(--cyan-glow); }
.card-link { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 7px; color: var(--accent-emerald); font-size: 0.88rem; font-weight: 600; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(-4px); }
[dir="ltr"] .card:hover .card-link svg { transform: translateX(4px); }

/* Product card */
.product-card { padding: 0; }
.product-media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-surface-2); position: relative; }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 22, 0.5)); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-media.placeholder { display: grid; place-items: center; color: var(--accent-emerald); }
.product-media.placeholder svg { width: 52px; height: 52px; opacity: 0.45; }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.12rem; }
.product-body .btn { align-self: flex-start; margin-top: 18px; }

/* Light-section cards */
.section-light .card, .section-slate .card {
  background: #fff; border-color: var(--light-border); color: var(--light-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.section-light .card:hover, .section-slate .card:hover { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 22px 44px -26px rgba(15, 23, 42, 0.28), 0 0 26px -16px var(--emerald-glow); }
.section-light .card p, .section-slate .card p { color: var(--light-text-2); }
.section-light .card .card-features li, .section-slate .card .card-features li { color: var(--light-text-2); }
.section-light .card .product-body p, .section-slate .card .product-body p { color: var(--light-text-2); }

/* ---------- Industrial / OT section ---------- */
.ot-section { position: relative; background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%); }
.ot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.purdue { display: flex; flex-direction: column; gap: 12px; }
.purdue-level {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-surface-2));
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 15px 18px; border-inline-start: 3px solid var(--accent-emerald);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.purdue-level:hover { transform: translateX(-6px); border-inline-start-color: var(--accent-cyan); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.8); }
[dir="ltr"] .purdue-level:hover { transform: translateX(6px); }
.purdue-level .lvl { font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent-cyan); letter-spacing: 0.06em; }
.purdue-level h4 { font-size: 0.98rem; margin: 4px 0; }
.purdue-level p { color: var(--text-muted); font-size: 0.82rem; }
.ot-points { display: grid; gap: 18px; }
.ot-point { display: flex; gap: 15px; align-items: flex-start; }
.ot-point .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: var(--accent-cyan); transition: transform var(--dur) var(--ease); }
.ot-point:hover .ic { transform: translateY(-2px); box-shadow: 0 0 18px -6px var(--cyan-glow); }
.ot-point .ic svg { width: 22px; height: 22px; }
.ot-point h4 { font-size: 1rem; }
.ot-point p { color: var(--text-muted); font-size: 0.88rem; }
.ot-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ot-tag { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-emerald); border: 1px solid var(--border-glow); border-radius: 20px; padding: 6px 14px; background: rgba(16, 185, 129, 0.05); transition: all 0.2s ease; }
.ot-tag:hover { background: rgba(16, 185, 129, 0.12); transform: translateY(-2px); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { font-size: 0.86rem; padding: 8px 17px; border-radius: 20px; border: 1px solid var(--border-subtle); color: var(--text-muted); background: rgba(148, 163, 184, 0.04); cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover { color: var(--accent-emerald); border-color: var(--border-glow); }
.filter-btn.active { border-color: var(--accent-emerald); color: #052e22; background: var(--accent-emerald); font-weight: 600; }
.portfolio-card { padding: 0; overflow: hidden; }
.portfolio-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-surface-2); position: relative; }
.portfolio-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 22, 0.55)); }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.portfolio-card:hover .portfolio-media img { transform: scale(1.07); }
.portfolio-media.placeholder { display: grid; place-items: center; color: var(--accent-cyan); }
.portfolio-cat { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.64rem; background: rgba(7, 11, 22, 0.82); border: 1px solid var(--border-subtle); padding: 5px 11px; border-radius: 16px; color: var(--accent-cyan); backdrop-filter: blur(8px); }
.portfolio-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.portfolio-body h3 { font-size: 1.08rem; margin-bottom: 7px; }
.portfolio-body p { color: var(--text-muted); font-size: 0.9rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--border-subtle); border-radius: 7px; padding: 4px 10px; background: rgba(148, 163, 184, 0.04); }

/* ---------- Training ---------- */
.course-card { padding: 0; overflow: hidden; }
.course-media { aspect-ratio: 16/9; background: var(--bg-surface-2); overflow: hidden; position: relative; display: grid; place-items: center; color: var(--accent-emerald); }
.course-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 22, 0.45)); }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-level { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.64rem; background: rgba(16, 185, 129, 0.16); border: 1px solid var(--border-glow); color: var(--accent-emerald); padding: 5px 11px; border-radius: 16px; }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.08rem; margin-bottom: 9px; }
.course-body p { color: var(--text-muted); font-size: 0.88rem; }
.course-body .btn { align-self: flex-start; margin-top: 18px; }
.course-meta { display: flex; gap: 16px; margin-top: 15px; flex-wrap: wrap; }
.course-meta span { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.course-meta svg { width: 14px; height: 14px; color: var(--accent-cyan); }

/* ---------- Team ---------- */
.team-card { text-align: center; align-items: center; }
.team-photo { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; border: 2px solid var(--border-glow); background: var(--bg-surface-2); display: grid; place-items: center; color: var(--accent-emerald); }
.team-card h3 { font-size: 1.06rem; }
.team-card .role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-cyan); margin: 4px 0 12px; }
.team-card p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, var(--bg-primary), var(--bg-surface)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 46px; align-items: start; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 12px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-line .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(16, 185, 129, 0.12); border: 1px solid var(--border-glow); color: var(--accent-emerald); }
.contact-line .ic svg { width: 20px; height: 20px; }
.contact-line .lbl { font-size: 0.72rem; color: var(--text-dim); }
.contact-line .val { font-size: 0.96rem; }
.contact-form { background: linear-gradient(180deg, var(--bg-card), var(--bg-surface-2)); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 7px; }
.field-input { width: 100%; font-family: var(--font-fa); font-size: 0.93rem; color: var(--text-main); background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field-input::placeholder { color: var(--text-dim); }
.field-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15); }
textarea.field-input { resize: vertical; min-height: 110px; }
.form-error { color: #fca5a5; font-size: 0.78rem; margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid var(--border-glow); color: #6ee7b7; }
.alert-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border-soft); padding: 58px 0 26px; position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), rgba(16, 185, 129, 0.3), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 0.92rem; margin-bottom: 16px; color: var(--text-main); }
.footer p, .footer a, .footer li { color: var(--text-muted); font-size: 0.88rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent-emerald); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-subtle); color: var(--text-muted); transition: all 0.22s var(--ease); }
.footer-social a:hover { border-color: var(--accent-emerald); color: var(--accent-emerald); transform: translateY(-2px); box-shadow: 0 0 16px -6px var(--emerald-glow); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 0.8rem; }
.footer-bottom .mono { font-family: var(--font-mono); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 58px 0 36px; position: relative; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-hero p { color: var(--text-muted); margin-top: 12px; max-width: 640px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-bottom: 16px; display: flex; gap: 8px; }
.breadcrumb a:hover { color: var(--accent-cyan); }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 42px; align-items: start; }
.detail-body { font-size: 0.98rem; color: var(--text-muted); }
.detail-body h3 { color: var(--text-main); margin: 26px 0 13px; font-size: 1.24rem; }
.detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-subtle); }
.detail-media img { width: 100%; }
.side-box { background: linear-gradient(180deg, var(--bg-card), var(--bg-surface-2)); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.side-box h4 { margin-bottom: 15px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .ot-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 420px; margin-top: 8px; }
  .side-box { position: static; }
}
@media (max-width: 880px) {
  html { overflow-x: hidden; }
  html, body { overflow-x: clip; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ticker { contain: paint; }
  .nav-links, .status-pill { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .mobile-bottom-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 66px; padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    background: rgba(11, 17, 32, 0.94); border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -12px 28px -20px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  }
  .mobile-bottom-nav a {
    min-width: 0; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 3px 2px; color: var(--text-dim); font-size: 0.66rem; font-weight: 600; line-height: 1.25;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .mobile-bottom-nav svg { width: 19px; height: 19px; stroke-width: 1.8; }
  .mobile-bottom-nav a.active { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.08); }
  .mobile-bottom-nav a.active svg { color: var(--accent-cyan-bright); filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.38)); }
  .mobile-bottom-nav a:active { transform: translateY(1px); }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: rgba(7, 11, 22, 0.97); border-bottom: 1px solid var(--border-subtle); padding: 14px; gap: 4px;
    backdrop-filter: blur(22px);
  }
  .nav-links.open a { padding: 12px 14px; }
}
@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .cols-3, .cols-2, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 64px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { gap: 18px; }
}

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

:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
