.page-home {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(200, 200, 200, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 200, 200, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home .home-hero {
  padding-top: 88px;
}

.page-home .home-hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: var(--shadow-2);
}

.page-home .home-hero-copy {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 24px 36px;
}

.page-home .hero-coord {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.page-home .hero-coord-index {
  font-weight: 700;
  color: var(--accent);
}

.page-home .hero-coord-line {
  width: 32px;
  height: 1px;
  background: rgba(212, 168, 67, 0.55);
}

.page-home .hero-coord-city {
  color: rgba(255, 255, 255, 0.42);
}

.page-home .hero-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.page-home .hero-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.28;
  color: #fff;
  letter-spacing: 0.02em;
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--accent);
}

.page-home .hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.page-home .hero-actions .btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.page-home .hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-stats strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
}

.page-home .hero-stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.page-home .home-hero-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--bg-warm);
}

.page-home .hero-visual-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(15, 36, 64, 0.35) 0%, rgba(15, 36, 64, 0.04) 44%, rgba(15, 36, 64, 0.55) 100%);
}

.page-home .hero-flags {
  position: absolute;
  top: 18px;
  right: 16px;
  display: flex;
  gap: 8px;
  perspective: 400px;
}

.page-home .hero-flag {
  position: relative;
  width: 14px;
  height: 108px;
  border-radius: 8px;
  opacity: 0.88;
  transform-origin: top center;
  animation: home-hero-flag-wave 5.6s ease-in-out infinite alternate;
  box-shadow: 0 4px 10px rgba(15, 36, 64, 0.18);
  background: linear-gradient(
    180deg,
    #1B3A5C 0 20%,
    #F5F5F5 20% 40%,
    #A63A2B 40% 60%,
    #2E7D6B 60% 80%,
    #D4A843 80% 100%
  );
}

.page-home .hero-flag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(212, 168, 67, 0.35);
  border-radius: 8px 8px 0 0;
}

.page-home .flag-one {
  animation-delay: 0s;
  transform: rotateZ(-2deg);
}

.page-home .flag-two {
  animation-delay: 0.7s;
  transform: rotateZ(1deg);
}

.page-home .flag-three {
  animation-delay: 1.4s;
  transform: rotateZ(-1deg);
}

.page-home .flag-four {
  animation-delay: 2.1s;
  transform: rotateZ(2deg);
}

@keyframes home-hero-flag-wave {
  from {
    transform: rotateZ(-3deg) translateY(0);
  }
  to {
    transform: rotateZ(4deg) translateY(6px);
  }
}

.page-home .hero-coordinate {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(212, 168, 67, 0.18);
}

.page-home .hero-coordinate::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 168, 67, 0.45);
  border-radius: 50%;
}

.page-home .hero-coordinate-a {
  top: 38%;
  left: 12%;
}

.page-home .hero-coordinate-b {
  bottom: 22%;
  right: 20%;
}

.page-home .hero-orbit {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 168px;
  height: 168px;
  opacity: 0.9;
}

.page-home .hero-visual-note {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 36, 64, 0.68);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.page-home .home-section-title {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.4;
  color: var(--primary);
}

.page-home .home-section-desc {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-soft);
  line-height: 1.8;
}

.page-home .home-section-head {
  margin-bottom: 32px;
}

.page-home .home-modules-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .home-tabs {
  min-width: 0;
}

.page-home .home-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .home-tab {
  border: 1px solid rgba(212, 168, 67, 0.4);
  background: transparent;
  color: var(--primary);
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-tab:hover {
  border-color: var(--accent);
}

.page-home .home-tab[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-home .home-tab-panel {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.page-home .home-tab-panel[hidden] {
  display: none;
}

.page-home .home-tab-panel h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--primary);
}

.page-home .home-tab-panel p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.page-home .home-tab-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .home-tab-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
}

.page-home .home-tab-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: rotate(45deg);
}

.page-home .home-modules-visual {
  margin: 0;
}

.page-home .home-modules-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.page-home .home-modules-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.page-home .home-login {
  background: var(--bg-warm);
}

.page-home .home-login-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .home-login-copy > p:not(.section-label) {
  color: var(--ink-soft);
  line-height: 1.8;
}

.page-home .home-login-list {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-login-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}

.page-home .home-login-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 125, 107, 0.14);
  color: var(--success);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.page-home .home-login-demo {
  margin: 0 auto;
  width: 100%;
  max-width: 380px;
}

.page-home .demo-window {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.page-home .demo-window-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(200, 200, 200, 0.4);
}

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

.page-home .demo-dot-red {
  background: var(--warn);
}

.page-home .demo-dot-yellow {
  background: var(--accent);
}

.page-home .demo-dot-green {
  background: var(--success);
}

.page-home .demo-window-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.page-home .demo-label {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.page-home .demo-field {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}

.page-home .demo-field-ok {
  border-color: rgba(46, 125, 107, 0.45);
  background: rgba(46, 125, 107, 0.06);
  color: var(--success);
}

.page-home .demo-check {
  margin-right: 6px;
}

.page-home .demo-submit {
  margin-top: 6px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
}

.page-home .demo-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.page-home .home-client {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-client .section-label {
  color: var(--accent);
}

.page-home .home-client .home-section-title {
  color: #fff;
}

.page-home .home-client .home-section-desc {
  color: rgba(255, 255, 255, 0.68);
}

.page-home .home-client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .client-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px;
}

.page-home .client-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .client-card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
}

.page-home .client-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.page-home .client-icon-mac {
  background: rgba(255, 255, 255, 0.9);
}

.page-home .client-os-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .client-os-list li {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 14px;
}

.page-home .client-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.page-home .client-visual {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.page-home .client-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.page-home .client-visual-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.page-home .home-news-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.page-home .home-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .news-card {
  background: #fff;
  border: 1px solid rgba(200, 200, 200, 0.4);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.page-home .news-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 14px;
}

.page-home .news-card .tag {
  margin-bottom: 10px;
}

.page-home .news-card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.page-home .news-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.page-home .news-card h3 a:hover {
  color: var(--accent);
}

.page-home .news-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .home-brand-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .brand-copy > p:not(.section-label) {
  color: var(--ink-soft);
  line-height: 1.85;
}

.page-home .home-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .brand-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.page-home .fact-item {
  margin: 0;
  padding: 18px 14px;
  background: var(--bg-warm);
  border-radius: 18px;
  text-align: center;
}

.page-home .fact-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--primary);
}

.page-home .fact-item span {
  font-size: 13px;
  color: var(--ink-soft);
}

.page-home .home-trust {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  border-radius: 0 18px 18px 0;
}

.page-home .home-trust p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--primary);
}

@media (min-width: 720px) {
  .page-home .hero-title {
    font-size: 44px;
  }

  .page-home .home-section-title {
    font-size: 32px;
  }

  .page-home .home-news-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .home-client-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .client-visual {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero-stage {
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 32px;
  }

  .page-home .home-hero-copy {
    padding: 64px 52px 48px;
  }

  .page-home .home-hero-visual {
    min-height: 580px;
  }

  .page-home .hero-title {
    font-size: 52px;
    line-height: 1.22;
  }

  .page-home .hero-orbit {
    width: 210px;
    height: 210px;
  }

  .page-home .hero-flag {
    width: 16px;
    height: 132px;
  }

  .page-home .home-modules-layout {
    grid-template-columns: minmax(0, 1fr) 0.72fr;
    align-items: start;
  }

  .page-home .home-login-inner {
    grid-template-columns: 1fr 0.85fr;
  }

  .page-home .home-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-brand-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (min-width: 1200px) {
  .page-home .home-client-grid {
    grid-template-columns: 0.8fr 0.8fr 1.2fr;
  }

  .page-home .client-visual {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-flag {
    animation: none;
  }

  .page-home .news-card {
    transition: none;
  }

  .page-home .news-card:hover {
    transform: none;
  }
}
