/* ==========================================================================
   AgentAIBank.com — Industrial Design System
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary: #e7ebf0;
  --bg-secondary: #d6dce3;
  --bg-card: rgba(245, 248, 252, 0.92);
  --bg-card-hover: rgba(235, 241, 247, 0.98);

  --steel: #b8c1cb;
  --steel-light: #f6f8fb;
  --steel-dark: #8694a4;

  --navy: #102f51;
  --navy-light: #1b4773;

  --glow: #2d7bb8;
  --glow-dim: rgba(45, 123, 184, 0.08);
  --glow-strong: rgba(45, 123, 184, 0.16);

  --text-primary: #183657;
  --text-secondary: #2b4d73;
  --text-muted: #607892;
  --text-accent: #1f6cad;

  --border: rgba(24, 54, 87, 0.2);
  --border-glow: rgba(45, 123, 184, 0.26);

  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 80px);
  --max-width: 900px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), transparent 46%),
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.62), transparent 34%),
    radial-gradient(circle at 74% 8%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(140deg, #f3f6f9 0%, #d6dde5 26%, #bcc5cf 48%, #e8edf3 72%, #c5ced8 100%),
    url("loga/metal-texture.jpg");
  background-size: auto, auto, auto, auto, 520px 520px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-blend-mode: normal, normal, normal, normal, soft-light;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* --- Scanline Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    101deg,
    rgba(255, 255, 255, 0.16) 0px,
    rgba(255, 255, 255, 0.16) 1px,
    rgba(125, 139, 154, 0.08) 1px,
    rgba(125, 139, 154, 0.08) 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
  opacity: 0.28;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

em {
  color: var(--text-muted);
  font-style: italic;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #2f79b1;
  text-shadow: 0 0 6px var(--glow-dim);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 80px);
  background: rgba(231, 237, 244, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.main-nav-link:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(245, 248, 252, 0.5);
  text-shadow: none;
}

.main-nav-link.active {
  color: var(--text-primary);
  border-color: var(--border);
  background: rgba(245, 248, 252, 0.7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  user-select: none;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(45, 123, 184, 0.15), 0 1px 3px rgba(14, 36, 58, 0.12);
  filter: drop-shadow(0 1px 4px rgba(14, 36, 58, 0.16));
  transition: var(--transition);
}

.logo:hover img {
  box-shadow: 0 0 14px rgba(45, 123, 184, 0.28), 0 1px 4px rgba(14, 36, 58, 0.16);
}

.logo-text {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- HAMBURGER TOGGLE --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- MOBILE NAV OVERLAY --- */
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(231, 237, 244, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 8px;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(17, 41, 68, 0.08);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1005;
    display: flex;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav-link {
    font-size: 0.82rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: 6px;
  }

  .main-nav-link:hover,
  .main-nav-link.active {
    background: var(--glow-dim);
  }
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 10px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  background: var(--glow-dim);
  color: var(--navy);
}

.patent-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.patent-dot {
  width: 6px;
  height: 6px;
  background: var(--glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 4px var(--glow-dim);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--glow-dim); }
  50% { opacity: 0.55; box-shadow: 0 0 2px transparent; }
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 3;
}

/* --- Hero Background Image (nhand.png) --- */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Overlay: gradient from left for text readability + bottom fade into page */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(231, 237, 244, 0.92) 0%,
      rgba(231, 237, 244, 0.78) 30%,
      rgba(231, 237, 244, 0.35) 55%,
      rgba(231, 237, 244, 0.08) 75%,
      transparent 100%
    ),
    linear-gradient(180deg,
      rgba(231, 237, 244, 0.6) 0%,
      transparent 15%,
      transparent 80%,
      rgba(231, 237, 244, 0.95) 100%
    );
  pointer-events: none;
}

/* Subtle scanline effect on hero only */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    101deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 1px,
    rgba(125, 139, 154, 0.05) 1px,
    rgba(125, 139, 154, 0.05) 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  opacity: 0.2;
}

.hero-pretitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero h1 {
  max-width: 680px;
  text-shadow: 0 1px 2px rgba(231, 237, 244, 0.6);
}

.hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-shadow: 0 1px 1px rgba(231, 237, 244, 0.5);
}

.hero-aside {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: 140px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.5;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollFloat 2.5s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- SUBPAGE HERO BACKGROUND --- */
.page-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(231, 237, 244, 0.88) 0%,
      rgba(231, 237, 244, 0.7) 35%,
      rgba(231, 237, 244, 0.35) 60%,
      rgba(231, 237, 244, 0.15) 80%,
      rgba(231, 237, 244, 0.05) 100%
    ),
    linear-gradient(180deg,
      rgba(231, 237, 244, 0.5) 0%,
      transparent 20%,
      transparent 60%,
      rgba(231, 237, 244, 0.98) 100%
    );
}

/* --- SECTIONS --- */
.section {
  padding: var(--section-padding);
  position: relative;
  border-top: 1px solid var(--border);
  z-index: 1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  opacity: 0.7;
}

.section-content {
  max-width: var(--max-width);
}

.section-content p {
  margin-bottom: 1.2rem;
}

/* --- TIMELINE --- */
.timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 24px;
  width: 7px;
  height: 7px;
  background: var(--glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow-dim);
}

.timeline-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  padding-top: 2px;
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- USE CASES (01b) --- */
.use-cases {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.use-case {
  display: block;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(17, 41, 68, 0.05);
  transition: var(--transition);
}

.use-case:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.use-case-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--glow);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.use-case-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.use-case p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- CLOSER TEXT --- */
.closer {
  margin-top: 48px;
  padding: 32px;
  border-left: 3px solid var(--glow);
  background: linear-gradient(90deg, var(--glow-dim), transparent);
}

.closer p {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.closer p:last-child {
  margin-bottom: 0;
}

/* --- BLOCKQUOTE --- */
blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--glow);
  background: linear-gradient(90deg, var(--glow-dim), transparent);
  border-radius: 0 4px 4px 0;
}

blockquote p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

blockquote .quote-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- PRINCIPLES (03) --- */
.principles {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.principle {
  padding: 0 0 28px 0;
  border-bottom: 1px solid var(--border);
}

.principle:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.principle-header {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.principle-number {
  color: var(--glow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.principle p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- STAT SECTION (04) --- */
.stat-section {
  text-align: center;
  padding: clamp(100px, 15vh, 180px) clamp(20px, 5vw, 80px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--glow);
  line-height: 1;
  text-shadow: 0 0 10px var(--glow-dim), 0 0 26px rgba(47, 121, 177, 0.14);
  margin-bottom: 20px;
}

.stat-section p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.stat-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- ROADMAP TIMELINE (05) --- */
.roadmap {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-phase {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--glow);
  padding-top: 2px;
}

.roadmap-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- REGULATORY SECTION (06) --- */
.reg-block {
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(17, 41, 68, 0.05);
  margin-bottom: 20px;
}

.reg-block-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.reg-entry {
  margin-bottom: 20px;
}

.reg-entry:last-child {
  margin-bottom: 0;
}

.reg-entry-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 6px;
}

.reg-entry p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.reg-view {
  margin-top: 36px;
}

.reg-view h3 {
  font-family: var(--font-mono);
}

.reg-update {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 24px;
  letter-spacing: 0.05em;
}

/* --- NOT-SECTION (02b) --- */
.not-section {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
}

/* --- FOUNDER (07) --- */
.founder-text {
  max-width: var(--max-width);
}

.founder-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.patent-big-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(17, 41, 68, 0.04);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.patent-big-badge .patent-dot {
  width: 8px;
  height: 8px;
}

/* --- FOOTER --- */
.footer {
  padding: var(--section-padding);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-cta {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--glow);
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  background: rgba(245, 248, 252, 0.72);
  transition: var(--transition);
}

.footer-link:hover {
  background: var(--glow-dim);
  border-color: var(--glow);
  text-shadow: 0 0 12px var(--glow-dim);
}

.footer-quote {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.footer-quote a {
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-quote a:hover {
  opacity: 1;
}

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

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- GLOW LINE SEPARATOR --- */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 5vw, 80px);
  width: 44px;
  height: 1px;
  background: var(--glow);
  box-shadow: 0 0 6px var(--glow-dim);
}

.hero::before { display: none; }
.footer::before {
  left: 50%;
  transform: translateX(-50%);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }

  .patent-badge span {
    display: none;
  }

  /* .main-nav is handled by hamburger toggle above */

  .hero-bg-img,
  .page-hero-bg img {
    object-position: 60% center;
  }

  .hero-overlay,
  .page-hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(231, 237, 244, 0.93) 0%,
        rgba(231, 237, 244, 0.82) 40%,
        rgba(231, 237, 244, 0.55) 70%,
        rgba(231, 237, 244, 0.3) 100%
      ),
      linear-gradient(180deg,
        rgba(231, 237, 244, 0.7) 0%,
        transparent 20%,
        transparent 75%,
        rgba(231, 237, 244, 0.95) 100%
      );
  }

  .hero-aside {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding-left: 16px;
  }

  .use-case {
    padding: 20px;
  }

  .roadmap-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .stat-number {
    font-size: clamp(4rem, 20vw, 8rem);
  }

  .reg-block {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}
