@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/rajdhani-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rajdhani-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rajdhani-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/share-tech-mono.woff2') format('woff2');
}

/* ─── Reset & Variables ─────────────────────────────── */

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

:root {
  --bg:      #050508;
  --surface: #0d0d14;
  --border:  rgba(255,255,255,0.06);
  --accent:  #e8640a;
  --accent2: #ff9d45;
  --text:    #e8e6e0;
  --muted:   #6b6b78;
  --mono:    'Share Tech Mono', monospace;
  --head:    'Rajdhani', sans-serif;
}

/* ─── Base ──────────────────────────────────────────── */

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--head);
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: 0.5;
}

/* ─── Background effects ────────────────────────────── */

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,100,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,100,10,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,100,10,0.12) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* ─── Decorative corners ────────────────────────────── */

.corner {
  position: fixed;
  width: 20px;
  height: 20px;
  z-index: 200;
}
.corner.tl { top: 60px;  left:  0; border-top:    1px solid var(--accent); border-left:  1px solid var(--accent); opacity: 0.3; }
.corner.tr { top: 60px;  right: 0; border-top:    1px solid var(--accent); border-right: 1px solid var(--accent); opacity: 0.3; }
.corner.bl { bottom: 40px; left:  0; border-bottom: 1px solid var(--accent); border-left:  1px solid var(--accent); opacity: 0.3; }
.corner.br { bottom: 40px; right: 0; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); opacity: 0.3; }

/* ─── Top bar ───────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(8px);
}

.topbar-logo {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ─── Main layout ───────────────────────────────────── */

.wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* ─── Hero ──────────────────────────────────────────── */

.hero {
  text-align: center;
  max-width: 680px;
  margin-bottom: 4rem;
  animation: fadeUp 0.8s ease both;
}

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

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--head);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ─── Cards ─────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 680px;
  background: var(--border);
  border: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.2s both;
}

.card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.card:hover {
  background: rgba(232,100,10,0.06);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.card-title {
  font-family: var(--head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.card-desc {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.card-arrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: auto;
  transition: transform 0.2s;
}

.card:hover .card-arrow {
  transform: translateX(4px);
}

/* ─── Footer ────────────────────────────────────────── */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(8px);
}

.footer-left {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-right a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--accent);
}
