:root {
  --ink: #f8fbff;
  --muted: #a7b6c8;
  --paper: #030507;
  --panel: #080d14;
  --accent: #1d8dff;
  --accent-dark: #0b63ff;
  --accent-light: #60b8ff;
  --line: rgba(96, 184, 255, 0.2);
  --shadow-blue: rgba(29, 141, 255, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(29, 141, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #000 0%, var(--paper) 58%, #02070d 100%);
  background-size: 140% 140%, 100% 100%;
  animation: background-drift 12s ease-in-out infinite alternate;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: drop-in 650ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(29, 141, 255, 0.34);
  animation: pulse-glow 2800ms ease-in-out infinite;
}

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

.nav button,
.primary-action,
.secondary-action {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav button {
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
}

.nav button:hover,
.nav button.is-active {
  color: var(--ink);
  background: rgba(29, 141, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(96, 184, 255, 0.14);
}

.nav button:hover {
  transform: translateY(-2px);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 48px;
}

.about-page,
.contact-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.about-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 42px;
}

.about-intro,
.contact-copy {
  animation: slide-up 700ms ease both;
}

.about-intro h1,
.contact-copy h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.8rem);
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  animation: fade-in 900ms 120ms ease both;
}

.about-contact {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.76);
  animation: rise-in 760ms 120ms ease both;
}

.about-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-contact p + p {
  margin-top: 8px;
}

.about-contact strong {
  color: var(--ink);
}

.about-contact a,
.contact-card a {
  color: var(--accent-light);
  text-decoration: none;
}

.about-contact a:hover,
.contact-card a:hover {
  text-decoration: underline;
}

.about-gallery img {
  width: 100%;
  min-height: 220px;
  max-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.about-gallery img:hover {
  border-color: rgba(96, 184, 255, 0.46);
  box-shadow: 0 26px 64px rgba(29, 141, 255, 0.18);
  transform: translateY(-4px) scale(1.01);
}

.about-gallery .gallery-main {
  grid-column: 1 / -1;
  min-height: 310px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: start;
  gap: 42px;
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card {
  margin-top: 30px;
  padding: 20px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 99, 255, 0.18), rgba(8, 13, 20, 0.88)),
    rgba(8, 13, 20, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: rise-in 760ms 100ms ease both;
}

.contact-card img {
  grid-row: span 2;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(96, 184, 255, 0.24);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(29, 141, 255, 0.28);
}

.contact-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card a {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.contact-visual {
  display: grid;
  gap: 18px;
}

.bolt-graphic {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 20%, rgba(96, 184, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(11, 99, 255, 0.2), rgba(8, 13, 20, 0.9));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  animation: rise-in 760ms 80ms ease both;
}

.bolt-graphic::after {
  position: absolute;
  inset: -40%;
  content: "";
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 58%
  );
  animation: light-sweep 4600ms ease-in-out infinite;
}

.bolt-graphic img {
  position: absolute;
  width: 190px;
  height: 190px;
  left: 28px;
  top: 20px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 36px rgba(29, 141, 255, 0.32);
  animation: electric-float 4200ms ease-in-out infinite;
}

.spark {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 184, 255, 0), rgba(96, 184, 255, 0.9));
  box-shadow: 0 0 24px rgba(29, 141, 255, 0.45);
  transform: rotate(-28deg);
}

.spark-one {
  right: -18px;
  top: 72px;
  width: 220px;
  height: 8px;
  animation: spark-slide 2600ms ease-in-out infinite;
}

.spark-two {
  right: 26px;
  bottom: 54px;
  width: 160px;
  height: 6px;
  opacity: 0.72;
  animation: spark-slide 3200ms 400ms ease-in-out infinite;
}

.price-grid {
  display: grid;
  gap: 14px;
  animation: fade-in 900ms 120ms ease both;
}

.price-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.price-card:hover {
  border-color: rgba(96, 184, 255, 0.46);
  box-shadow: 0 26px 68px rgba(29, 141, 255, 0.16);
  transform: translateY(-5px);
}

.price-card span {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.35rem;
}

.price-card em {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-light);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 900;
}

.price-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  animation: slide-up 700ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(29, 141, 255, 0.24);
}

.lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.primary-action {
  color: white;
  background: var(--accent-dark);
  box-shadow: 0 0 34px var(--shadow-blue);
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(29, 141, 255, 0.36);
}

.visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  animation: fade-in 900ms 120ms ease both;
}

.logo-stage {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  place-items: center;
}

.hero-logo {
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(96, 184, 255, 0.2);
  border-radius: 8px;
  box-shadow:
    0 0 42px rgba(29, 141, 255, 0.32),
    0 30px 78px rgba(0, 0, 0, 0.48);
  animation: electric-float 4800ms ease-in-out infinite;
}

.window {
  position: absolute;
  right: -10px;
  bottom: -36px;
  width: min(82%, 390px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
  animation: window-hover 5200ms ease-in-out infinite;
}

.window-bar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #1d8dff;
}

.dot.yellow {
  background: #f8fbff;
}

.dot.green {
  background: #0b63ff;
}

.window-content {
  padding: 24px;
}

.code-line {
  height: 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(96, 184, 255, 0.2);
  animation: code-pulse 2200ms ease-in-out infinite;
}

.code-line:nth-child(1) {
  width: 78%;
}

.code-line:nth-child(2) {
  width: 54%;
  animation-delay: 180ms;
}

.code-line:nth-child(3) {
  width: 88%;
  animation-delay: 360ms;
}

.preview-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, rgba(11, 99, 255, 0.98), rgba(29, 141, 255, 0.88));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.12);
}

.preview-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.preview-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 32px;
  width: 196px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.86);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  animation: float 3600ms ease-in-out infinite;
}

.floating-note span {
  display: block;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: #07111d;
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes background-drift {
  from {
    background-position: 48% 10%, center;
  }
  to {
    background-position: 56% 0%, center;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(29, 141, 255, 0.26);
  }
  50% {
    box-shadow: 0 0 38px rgba(96, 184, 255, 0.52);
  }
}

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

@keyframes window-hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes code-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes light-sweep {
  0%,
  36% {
    transform: translateX(-40%) rotate(8deg);
  }
  72%,
  100% {
    transform: translateX(40%) rotate(8deg);
  }
}

@keyframes spark-slide {
  0%,
  100% {
    opacity: 0.38;
    transform: translateX(0) rotate(-28deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-18px) rotate(-28deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav button {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
  }

  .about-page,
  .contact-page {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 24px;
  }

  .visual {
    min-height: 390px;
  }

  .floating-note {
    right: 12px;
    bottom: 0;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery .gallery-main {
    min-height: 240px;
  }

  .contact-card {
    grid-template-columns: 56px 1fr;
  }

  .contact-card img {
    width: 56px;
    height: 56px;
  }

  .bolt-graphic img {
    width: 150px;
    height: 150px;
  }

  .window-content {
    padding: 18px;
  }

  .floating-note {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}
