:root {
  --bg-main: #04060b;
  --bg-panel: #0f1420d6;
  --line: #26324c;
  --text-main: #f3f7ff;
  --text-muted: #a5b5d8;
  --cyan: #2ee9ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Exo", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 82% 10%, #2b355f 0%, transparent 36%),
    radial-gradient(circle at 10% 90%, #0e425f 0%, transparent 28%),
    linear-gradient(150deg, #020306 0%, #090d18 80%);
  padding: 1.25rem;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: linear-gradient(transparent 50%, #fff1 50%);
  background-size: 100% 4px;
}

.site-header,
main {
  max-width: 1120px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: #0b0f18df;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  font-family: "Roboto Mono", monospace;
  color: var(--cyan);
  border: 1px solid #2ee9ff66;
  box-shadow: 0 0 14px #2ee9ff3a inset;
  padding: 0.22rem 0.55rem;
}

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

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--text-main);
}

main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 1.4rem;
}

.hero h1,
.contact-hero h1 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.1;
}

.tag {
  margin: 0;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-family: "Roboto Mono", monospace;
}

p,
li {
  color: var(--text-muted);
  line-height: 1.7;
}

h2,
h3 {
  margin-top: 0;
}

.split {
  display: flex;
  gap: 1rem;
}

.split > * {
  flex: 1;
}

.label {
  font-size: 0.78rem;
  font-family: "Roboto Mono", monospace;
  color: #7cefff;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline > div {
  border-left: 2px solid #2ee9ff7d;
  padding-left: 0.9rem;
}

.btn,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  min-height: 38px;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.btn-solid {
  color: #020407;
  background: linear-gradient(120deg, var(--cyan), #8ef8ff);
  border-color: #6bf1ff;
}

.btn-solid:hover {
  background: linear-gradient(120deg, #62f0ff, #b5fcff);
}

.btn-ghost,
.lang-toggle {
  border-color: #3f4e73;
  color: var(--text-main);
  background: #121827;
}

.btn-ghost:hover,
.lang-toggle:hover {
  border-color: #5b72ad;
  background: #1b253d;
}

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

.contact-layout {
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.email-btn {
  width: fit-content;
}

.mail-text {
  margin: 0;
  color: var(--text-main);
  font-family: "Roboto Mono", monospace;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.notice ul {
  margin: 0;
  padding-left: 1.2rem;
}

.lang-toggle:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid #70f4ff;
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .split {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
