:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #040917;
  color: #e2ecff;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

body[data-theme="dark"] {
  --page-background:
    radial-gradient(circle at top left, rgba(42, 98, 255, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(8, 164, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #07101f 0%, #040917 48%, #060d18 100%);
  --text-primary: #e2ecff;
  --title-color: #ffffff;
  --text-secondary: rgba(201, 216, 255, 0.76);
  --text-muted: rgba(201, 216, 255, 0.56);
  --hero-grid-color: rgba(69, 97, 169, 0.09);
  --hero-border-color: rgba(92, 126, 255, 0.12);
  --hero-glow-left-bg: rgba(46, 128, 255, 0.26);
  --hero-glow-right-bg: rgba(15, 88, 255, 0.14);
  --header-bg: rgba(5, 14, 30, 0.72);
  --header-border: rgba(107, 136, 255, 0.2);
  --header-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 60px rgba(2, 8, 20, 0.32);
  --brand-subtitle-color: rgba(202, 215, 255, 0.68);
  --ghost-button-bg: rgba(10, 20, 40, 0.58);
  --ghost-button-border: rgba(116, 147, 255, 0.24);
  --ghost-button-color: #d7e4ff;
  --tag-bg: rgba(17, 32, 63, 0.65);
  --tag-border: rgba(98, 132, 255, 0.22);
  --tag-color: #8bb4ff;
  --stat-border-color: rgba(100, 126, 214, 0.22);
  --card-bg: rgba(9, 20, 40, 0.7);
  --card-strong-bg: linear-gradient(180deg, rgba(10, 23, 49, 0.92) 0%, rgba(7, 16, 34, 0.82) 100%);
  --card-border-color: rgba(98, 132, 255, 0.16);
  --card-inset-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --section-accent-bg: rgba(7, 18, 36, 0.45);
  --section-divider-color: rgba(92, 126, 255, 0.09);
  --quote-bg: rgba(11, 23, 43, 0.72);
  --quote-color: #f4f8ff;
  --contact-bg: linear-gradient(180deg, rgba(8, 18, 34, 0.92) 0%, rgba(7, 16, 30, 0.86) 100%);
  --footer-color: rgba(201, 216, 255, 0.56);
  --card-glow-bg: radial-gradient(circle, rgba(68, 129, 255, 0.34) 0%, rgba(68, 129, 255, 0) 72%);
  --theme-switch-shell-bg: rgba(8, 20, 44, 0.78);
  --theme-switch-shell-border: rgba(106, 145, 255, 0.22);
  --theme-switch-shell-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(3, 10, 24, 0.26);
  --theme-switch-day-fill: #8fd5e6;
  --theme-switch-day-stroke: rgba(255, 255, 255, 0.3);
  --theme-switch-night-fill: #1f3f66;
  --theme-switch-night-stroke: rgba(164, 210, 255, 0.24);
  --theme-switch-focus: rgba(77, 140, 255, 0.55);
  --qr-frame-color: #0a1325;
}

body[data-theme="light"] {
  color-scheme: light;
  --page-background:
    radial-gradient(circle at top left, rgba(93, 156, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #f4f8ff 48%, #eef4ff 100%);
  --text-primary: #162746;
  --title-color: #0f2244;
  --text-secondary: rgba(35, 58, 101, 0.78);
  --text-muted: rgba(45, 67, 107, 0.58);
  --hero-grid-color: rgba(89, 116, 182, 0.08);
  --hero-border-color: rgba(110, 136, 205, 0.14);
  --hero-glow-left-bg: rgba(93, 156, 255, 0.18);
  --hero-glow-right-bg: rgba(56, 189, 248, 0.12);
  --header-bg: rgba(255, 255, 255, 0.76);
  --header-border: rgba(107, 136, 255, 0.18);
  --header-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 60px rgba(106, 129, 173, 0.16);
  --brand-subtitle-color: rgba(49, 74, 117, 0.66);
  --ghost-button-bg: rgba(247, 250, 255, 0.92);
  --ghost-button-border: rgba(116, 147, 255, 0.22);
  --ghost-button-color: #2d59b5;
  --tag-bg: rgba(239, 245, 255, 0.92);
  --tag-border: rgba(107, 136, 255, 0.18);
  --tag-color: #3569d2;
  --stat-border-color: rgba(110, 136, 205, 0.22);
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-strong-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(242, 247, 255, 0.94) 100%);
  --card-border-color: rgba(107, 136, 255, 0.16);
  --card-inset-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --section-accent-bg: rgba(222, 233, 255, 0.32);
  --section-divider-color: rgba(107, 136, 255, 0.08);
  --quote-bg: rgba(255, 255, 255, 0.88);
  --quote-color: #17315e;
  --contact-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 255, 0.96) 100%);
  --footer-color: rgba(45, 67, 107, 0.62);
  --card-glow-bg: radial-gradient(circle, rgba(75, 135, 255, 0.24) 0%, rgba(75, 135, 255, 0) 72%);
  --theme-switch-shell-bg: rgba(255, 255, 255, 0.84);
  --theme-switch-shell-border: rgba(122, 152, 221, 0.2);
  --theme-switch-shell-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 28px rgba(114, 143, 201, 0.18);
  --theme-switch-day-fill: #93d8e6;
  --theme-switch-day-stroke: rgba(255, 255, 255, 0.78);
  --theme-switch-night-fill: #30557f;
  --theme-switch-night-stroke: rgba(173, 209, 250, 0.32);
  --theme-switch-focus: rgba(67, 113, 214, 0.42);
  --qr-frame-color: #ffffff;
}

a,
button,
input {
  font: inherit;
}

.home-page {
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--page-background);
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.container {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
}

.email-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  min-width: min(90vw, 320px);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border: 1px solid var(--theme-switch-shell-border);
  border-radius: 14px;
  background: var(--theme-switch-shell-bg);
  color: var(--title-color);
  text-align: center;
  box-shadow: var(--theme-switch-shell-shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.email-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.theme-floating-switch {
  z-index: 40;
  cursor: pointer;
  line-height: 0;
}

#theme-toggle-button {
  font-size: 11.6px;
  position: fixed;
  inset: 18px 20px auto auto;
  display: inline-block;
  width: 4.55em;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--theme-switch-shell-border);
  border-radius: 999px;
  background: var(--theme-switch-shell-bg);
  box-shadow: var(--theme-switch-shell-shadow);
  backdrop-filter: blur(12px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 24px rgba(10, 18, 36, 0.18));
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

#theme-toggle-button:hover {
  transform: translateY(-1px) scale(1.02);
}

body[data-theme="dark"] #theme-toggle-button {
  filter: drop-shadow(0 12px 26px rgba(8, 22, 58, 0.32));
}

body[data-theme="light"] #theme-toggle-button {
  filter: drop-shadow(0 12px 24px rgba(101, 134, 205, 0.2));
}

#toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#theme-toggle-button svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 999px;
}

#toggle:focus-visible + svg {
  outline: 2px solid var(--theme-switch-focus);
  outline-offset: 4px;
  border-radius: 999px;
}

#toggle + svg #container {
  fill: var(--theme-switch-day-fill);
  stroke: var(--theme-switch-day-stroke);
  stroke-width: 1;
}

#container,
#patches,
#stars,
#button,
#sun,
#moon,
#cloud {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.25s;
}

#toggle + svg #button {
  transform: translate(2.333px, 2.333px);
}

#toggle:checked + svg #container {
  fill: var(--theme-switch-night-fill);
  stroke: var(--theme-switch-night-stroke);
}

#sun {
  opacity: 1;
}

#toggle:checked + svg #sun {
  opacity: 0;
}

#moon {
  opacity: 0;
}

#toggle:checked + svg #moon {
  opacity: 1;
}

#cloud {
  opacity: 1;
  transform-origin: center;
  animation: cloudFloat 3.2s ease-in-out infinite alternate;
}

#toggle:checked + svg #cloud {
  opacity: 0;
  animation: none;
}

#stars {
  opacity: 0;
}

#toggle:checked + svg #stars {
  opacity: 1;
}

#toggle + svg #stars path {
  transform-origin: center;
}

#toggle:checked + svg #stars path {
  animation: twinkle 1.8s ease-in-out infinite alternate;
}

#toggle:checked + svg #stars path:nth-child(2) {
  animation-delay: 0.15s;
}

#toggle:checked + svg #stars path:nth-child(3) {
  animation-delay: 0.3s;
}

#toggle:checked + svg #stars path:nth-child(4) {
  animation-delay: 0.45s;
}

#toggle:checked + svg #stars path:nth-child(5) {
  animation-delay: 0.6s;
}

#toggle:checked + svg #stars path:nth-child(6) {
  animation-delay: 0.75s;
}

#toggle:checked + svg #stars path:nth-child(7) {
  animation-delay: 0.9s;
}

#toggle:checked + svg #stars path:nth-child(8) {
  animation-delay: 1.05s;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-bottom: 1px solid var(--hero-border-color);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-left {
  top: 120px;
  left: -120px;
  width: 280px;
  height: 280px;
  background: var(--hero-glow-left-bg);
}

.hero-glow-right {
  right: -80px;
  top: 80px;
  width: 360px;
  height: 360px;
  background: var(--hero-glow-right-bg);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 16px 22px;
  border: 1px solid var(--header-border);
  border-radius: 24px;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--header-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f7bff 0%, #7ea7ff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(42, 98, 255, 0.3);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  color: var(--title-color);
  font-size: 16px;
  line-height: 1.2;
}

.brand-text small {
  color: var(--brand-subtitle-color);
  font-size: 12px;
  line-height: 1.2;
}

.top-actions,
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.top-actions {
  justify-content: flex-end;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #2f7bff 0%, #2259ff 100%);
  box-shadow: 0 14px 28px rgba(47, 123, 255, 0.24);
}

.secondary-button,
.ghost-button {
  color: var(--ghost-button-color);
  background: var(--ghost-button-bg);
  border: 1px solid var(--ghost-button-border);
}

.hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0 88px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 920px;
  color: var(--title-color);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow,
.timeline-range,
.terminal-label {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.stat-item {
  padding-top: 18px;
  border-top: 1px solid var(--stat-border-color);
}

.stat-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--title-color);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 13px;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.panel-card,
.feature-card,
.solution-card,
.terminal-card,
.security-card,
.timeline-card,
.qr-card,
.quote-card,
.contact-layout {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.panel-card {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--card-border-color);
  border-radius: 28px;
  background: var(--card-strong-bg);
  box-shadow: var(--card-inset-shadow);
}

.panel-card h2 {
  margin: 0 0 16px;
  color: var(--title-color);
  font-size: 30px;
  line-height: 1.35;
}

.panel-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.panel-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b87ff;
  box-shadow: 0 0 16px rgba(75, 135, 255, 0.72);
}

.content-section,
.contact-section {
  position: relative;
  padding: 112px 0;
}

.accent-section {
  background: var(--section-accent-bg);
  border-top: 1px solid var(--section-divider-color);
  border-bottom: 1px solid var(--section-divider-color);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.centered {
  justify-items: center;
  text-align: center;
}

.centered p {
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.solution-card,
.terminal-card,
.security-card,
.timeline-card,
.qr-card {
  padding: 28px;
  border: 1px solid var(--card-border-color);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--card-inset-shadow);
}

.feature-card h3,
.solution-card h3,
.terminal-card h3,
.security-card h3,
.timeline-card h3 {
  margin: 18px 0 12px;
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.3;
}

.feature-card p,
.solution-card p,
.terminal-card p,
.security-card p,
.timeline-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.card-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: blur(30px);
  background: var(--card-glow-bg);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.icon-dot,
.shield-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ab0ff 0%, #205cff 100%);
  box-shadow: 0 0 18px rgba(53, 121, 255, 0.58);
}

.quote-card {
  margin: 32px 0 0;
  padding: 28px 32px;
  border-left: 3px solid #2f7bff;
  border-radius: 0 22px 22px 0;
  background: var(--quote-bg);
  color: var(--quote-color);
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.7;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(47, 123, 255, 0.14);
  color: #8db4ff;
  font-size: 13px;
  font-weight: 700;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.timeline-card h3 {
  margin-top: 22px;
}

.security-layout {
  display: grid;
  gap: 28px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 380px);
  gap: 30px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--card-border-color);
  border-radius: 32px;
  background: var(--contact-bg);
}

.contact-copy {
  display: grid;
  gap: 20px;
}

.contact-copy h2 {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.14;
}

.contact-copy p {
  margin: 0;
  max-width: 700px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
}

.contact-panel {
  display: flex;
  justify-content: center;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 300px);
}

.qr-card p {
  margin: 0;
  color: var(--title-color);
  font-weight: 600;
}

.qr-code-image {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
  box-shadow:
    inset 0 0 0 12px var(--qr-frame-color),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.site-footer {
  padding-top: 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}

.footer-inner p,
.footer-inner a {
  margin: 0;
  color: var(--footer-color);
  font-size: 14px;
  text-decoration: none;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-item.in-view,
.hero-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.interactive-card,
.interactive-button {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.interactive-card.is-hovered .card-glow {
  opacity: 0.9;
}

@keyframes twinkle {
  0% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes cloudFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-1.5px) translateX(1px);
  }
}

@media (min-width: 1600px) {
  .container {
    width: min(1480px, calc(100% - 72px));
  }

  .topbar {
    width: min(1440px, calc(100% - 72px));
  }

  .hero-body {
    grid-template-columns: minmax(0, 1.24fr) minmax(440px, 0.76fr);
    gap: 88px;
  }
}

@media (max-width: 1280px) {
  .topbar {
    width: calc(100% - 48px);
  }

  .hero-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 40px;
  }
}

@media (max-width: 1080px) {
  .topbar {
    width: calc(100% - 48px);
    padding: 14px 18px;
  }

  .hero-body,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .contact-panel {
    justify-content: flex-start;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container,
  .topbar {
    width: min(100% - 32px, 1180px);
  }

  .theme-floating-switch {
    inset: calc(env(safe-area-inset-top, 0px) + 8px) 16px auto auto;
  }

  .hero-body {
    gap: 28px;
    padding-top: 40px;
  }

  .hero-copy,
  .contact-copy {
    gap: 20px;
  }

  .hero-copy p,
  .section-heading p,
  .contact-copy p {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .container,
  .topbar {
    width: min(100% - 32px, 1180px);
  }

  .content-section,
  .contact-section {
    padding: 76px 0;
  }

  .topbar {
    gap: 16px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .brand {
    width: 100%;
  }

  .brand-text small {
    font-size: 11px;
  }

  .top-actions,
  .hero-actions,
  .contact-actions {
    width: 100%;
    justify-content: stretch;
  }

  .top-actions a,
  .hero-actions a,
  .contact-actions a {
    flex: 1 1 100%;
    width: 100%;
  }

  .theme-floating-switch {
    inset: 14px 16px auto auto;
  }

  #theme-toggle-button {
    font-size: 11px;
    width: 4.4em;
  }

  .hero-body {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 1.75;
  }

  .grid-2,
  .grid-3,
  .timeline,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    padding: 24px;
    gap: 20px;
  }

  .contact-panel,
  .qr-card {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .feature-card,
  .solution-card,
  .terminal-card,
  .security-card,
  .timeline-card,
  .qr-card,
  .panel-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.12;
  }

  .hero-copy p,
  .section-heading p,
  .contact-copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .theme-floating-switch {
    inset: 14px 12px auto auto;
  }

  .contact-layout {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container,
  .topbar {
    width: calc(100% - 24px);
  }

  .topbar {
    padding: 12px 14px;
  }

  .theme-floating-switch {
    inset: calc(env(safe-area-inset-top, 0px) + 6px) 12px auto auto;
  }

  #theme-toggle-button {
    font-size: 10.6px;
    width: 4.2em;
  }

  .hero-body {
    padding-top: 28px;
  }

  .eyebrow,
  .timeline-range,
  .terminal-label {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .panel-card h2,
  .feature-card h3,
  .solution-card h3,
  .terminal-card h3,
  .security-card h3,
  .timeline-card h3 {
    font-size: 21px;
  }

  .quote-card {
    padding: 22px 20px;
    font-size: 18px;
  }

  .qr-code-image {
    width: min(180px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #theme-toggle-button,
  #container,
  #patches,
  #stars,
  #button,
  #sun,
  #moon,
  #cloud,
  .reveal-item,
  .interactive-card,
  .interactive-button,
  .home-page,
  body {
    transition: none !important;
    animation: none !important;
  }
}
