:root {
  --bg: #07111f;
  --bg-soft: rgba(10, 22, 40, 0.72);
  --panel: rgba(11, 26, 45, 0.74);
  --panel-strong: rgba(13, 30, 52, 0.88);
  --line: rgba(150, 198, 255, 0.14);
  --line-strong: rgba(150, 198, 255, 0.24);
  --text: #edf4ff;
  --text-soft: rgba(237, 244, 255, 0.72);
  --text-muted: rgba(237, 244, 255, 0.5);
  --accent: #7dd3fc;
  --accent-strong: #d7f2ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 163, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(110, 231, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #09111d 0%, #060c16 48%, #050913 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 90%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--container));
  margin: 12px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand,
h1,
h2,
h3 {
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
}

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

.site-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-strong);
}

main {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
  min-height: auto;
  padding: 16px 0 18px;
}

.hero-content,
.hero-panel,
.content-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding-top: 8px;
}

.eyebrow,
.section-tag,
.panel-label,
.differential-index {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(3.6rem, 10vw, 7.6rem);
  line-height: 0.92;
}

.hero-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.14em;
  position: relative;
  isolation: isolate;
}

.hero-logo-word {
  display: inline-block;
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #edf6ff 24%, #cfe1f5 58%, #8ea8c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 22px rgba(125, 211, 252, 0.08),
    0 12px 32px rgba(125, 211, 252, 0.08);
  animation: logoFloat 6.8s ease-in-out infinite;
  will-change: transform, filter;
}

.hero-logo-word::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.08em;
  height: 0.14em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.95), transparent);
  opacity: 0.72;
  transform-origin: center;
  animation: logoBeam 5.6s ease-in-out infinite;
  filter: blur(0.5px);
}

.hero-logo::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 6%;
  top: 50%;
  height: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(98, 203, 255, 0.34), rgba(170, 230, 255, 0.18), transparent);
  filter: blur(12px);
  transform: translateY(-8%);
  opacity: 0.8;
  z-index: -1;
  animation: logoAura 7.4s ease-in-out infinite;
}

.hero-logo::after {
  content: "";
  position: absolute;
  inset: 6% 12% 8% 8%;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 24px;
  opacity: 0.55;
  z-index: -2;
  animation: logoFrame 8.5s ease-in-out infinite;
}

.hero-logo-torio {
  letter-spacing: -0.055em;
}

.hero-logo-code {
  letter-spacing: -0.06em;
  animation-delay: 0.45s;
}

.hero-logo-torio::before,
.hero-logo-code::before {
  content: "";
  position: absolute;
  inset: 4% -2%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 24%, rgba(255, 255, 255, 0.42) 42%, transparent 58%);
  transform: translateX(-120%) skewX(-18deg);
  mix-blend-mode: screen;
  animation: logoSweep 6.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-code::after {
  animation-delay: 0.6s;
}

.hero-logo-code::before {
  animation-delay: 0.5s;
}

.hero-headline {
  max-width: 620px;
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero-subheadline {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(215, 242, 255, 0.06);
  color: var(--text);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.explore-button:hover,
.explore-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(215, 242, 255, 0.38);
  background: rgba(215, 242, 255, 0.11);
  box-shadow: 0 14px 36px rgba(125, 211, 252, 0.1);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-self: center;
}

.panel-card,
.service-card,
.differential-card,
.closing-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 30, 50, 0.84), rgba(8, 18, 32, 0.76));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.panel-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.panel-card-primary {
  transform: translateY(-8px);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(15, 33, 56, 0.92), rgba(9, 20, 35, 0.8));
}

.hero-glow {
  position: absolute;
  filter: blur(40px);
  opacity: 0.85;
  pointer-events: none;
}

.hero-glow-left {
  top: 5%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(72, 187, 255, 0.22), transparent 66%);
  animation: drift 13s ease-in-out infinite;
}

.hero-glow-right {
  right: -8%;
  bottom: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(120, 241, 255, 0.16), transparent 64%);
  animation: driftReverse 16s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 15% 5% auto auto;
  width: 42%;
  max-width: 420px;
  aspect-ratio: 1;
  opacity: 0.34;
  pointer-events: none;
}

.hero-grid span {
  position: absolute;
  border: 1px solid rgba(153, 220, 255, 0.12);
  border-radius: 28px;
  animation: pulse 10s ease-in-out infinite;
}

.hero-grid span:nth-child(1) {
  inset: 0;
}

.hero-grid span:nth-child(2) {
  inset: 12%;
  animation-delay: 1.6s;
}

.hero-grid span:nth-child(3) {
  inset: 24%;
  animation-delay: 3.2s;
}

.hero-grid span:nth-child(4) {
  inset: 36%;
  animation-delay: 4.8s;
}

.content-section {
  position: relative;
  padding: 56px 0;
}

.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 760px;
}

.section-heading h2,
.closing-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.04;
  max-width: 760px;
}

.positioning-copy {
  max-width: 760px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.positioning-section {
  padding-top: 68px;
}

.positioning-section::before {
  background:
    radial-gradient(circle at 8% 30%, rgba(125, 211, 252, 0.12), transparent 22%),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05), transparent 34%);
}

.positioning-section .section-heading {
  padding-left: 18px;
  border-left: 1px solid rgba(125, 211, 252, 0.24);
}

.positioning-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(125, 211, 252, 0.08), transparent 20%);
  pointer-events: none;
}

.positioning-copy p,
.service-card p,
.differential-card p,
.closing-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.services-grid,
.differentials-grid {
  display: grid;
  gap: 22px;
}

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

.services-section {
  padding-top: 72px;
}

.services-section::before {
  inset: 10% 0 6%;
  border-radius: 34px;
  border: 1px solid rgba(150, 198, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.16), rgba(10, 24, 42, 0.5)),
    radial-gradient(circle at 78% 26%, rgba(125, 211, 252, 0.08), transparent 18%);
}

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

.services-grid::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.04), transparent 30%),
    linear-gradient(315deg, rgba(125, 211, 252, 0.04), transparent 30%);
  pointer-events: none;
}

.service-card,
.differential-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.service-card::before,
.differential-card::before,
.closing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.12), transparent 36%, transparent 70%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-within,
.differential-card:hover,
.differential-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(153, 220, 255, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.service-card:hover::before,
.differential-card:hover::before,
.closing-panel:hover::before {
  opacity: 1;
}

.service-card {
  background:
    linear-gradient(180deg, rgba(15, 33, 56, 0.94), rgba(8, 18, 32, 0.82)),
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 44%);
}

.service-card:nth-child(odd) {
  transform-origin: left center;
}

.service-card:nth-child(even) {
  transform-origin: right center;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px) rotate(-0.4deg);
}

.service-card h3,
.differential-card h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.differentials-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.differentiators-section {
  padding-top: 74px;
}

.differentiators-section::before {
  background:
    radial-gradient(circle at 84% 18%, rgba(125, 211, 252, 0.1), transparent 22%),
    radial-gradient(circle at 18% 76%, rgba(76, 161, 255, 0.08), transparent 18%);
}

.differentials-grid::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(150, 198, 255, 0.12);
  border-radius: 28px;
  pointer-events: none;
}

.differential-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(12, 28, 48, 0.92), rgba(6, 15, 28, 0.84)),
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.08), transparent 34%);
}

.differential-index {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(125, 211, 252, 0.92);
}

.closing-panel {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 36px;
  overflow: hidden;
}

.closing-panel p:last-child {
  max-width: 720px;
  margin-top: 12px;
}

.site-footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(237, 244, 255, 0.08);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 110ms;
}

.reveal-delay-2 {
  transition-delay: 190ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -22px, 0) scale(1.08);
  }
}

@keyframes driftReverse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 16px, 0) scale(0.94);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.035) rotate(2deg);
    opacity: 1;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px);
    filter: brightness(1.08);
  }
}

@keyframes logoBeam {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes logoAura {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-8%) scaleX(0.9);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-8%) scaleX(1.04);
  }
}

@keyframes logoSweep {
  0%,
  100% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  18% {
    opacity: 0;
  }
  34% {
    opacity: 1;
  }
  52% {
    transform: translateX(135%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes logoFrame {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.62;
    transform: scale(1);
  }
}

/* ─── TABLET LANDSCAPE (≤1100px) ────────────────────── */
@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

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

  .differentials-grid::before {
    inset: 8px;
  }
}

/* ─── TABLET PORTRAIT (≤760px) ──────────────────────── */
@media (max-width: 760px) {
  .site-header {
    padding: 12px 14px;
    border-radius: 24px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .hero-section {
    padding: 10px 0 20px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .panel-card-primary {
    transform: none;
  }

  .service-card,
  .differential-card {
    min-height: unset;
  }

  .services-grid,
  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 40px 0;
  }

  .positioning-section,
  .services-section,
  .differentiators-section {
    padding-top: 46px;
  }

  .services-section::before {
    inset: 4% 0 0;
  }

  .differentials-grid::before {
    inset: 0;
  }

  .hero-grid {
    width: 58%;
    top: 8%;
    right: -2%;
    opacity: 0.2;
  }
}

/* ─── MOBILE (≤560px) ───────────────────────────────── */
@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
  }

  .site-nav a {
    font-size: 0.86rem;
    min-height: 44px;
    padding: 0 2px;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 20vw, 4.5rem);
  }

  .hero-headline {
    font-size: 1.28rem;
  }

  .hero-subheadline,
  .positioning-copy p,
  .service-card p,
  .differential-card p,
  .closing-panel p {
    font-size: 0.96rem;
    line-height: 1.72;
  }

  .service-card h3,
  .differential-card h3 {
    font-size: 1.18rem;
  }

  .service-card,
  .differential-card,
  .panel-card,
  .positioning-copy,
  .closing-panel {
    padding: 20px;
  }

  .positioning-section .section-heading {
    padding-left: 12px;
  }

  .hero-grid {
    display: none;
  }
}

/* ─── SMALL PHONES (≤380px) ─────────────────────────── */
@media (max-width: 380px) {
  .site-nav a {
    font-size: 0.82rem;
  }

  .hero-content h1 {
    font-size: clamp(2.6rem, 18vw, 3.5rem);
  }

  .section-heading h2,
  .closing-panel h2 {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  .hero-headline {
    font-size: 1.12rem;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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