:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #091522;
  --muted: #5d6a78;
  --line: rgba(9, 21, 34, 0.14);
  --navy: #071321;
  --blue: #2d9ff2;
  --cyan: #00c7f0;
  --green: #00c49a;
  --violet: #6d4ee8;
  --gold: #d4af37;
  --shadow: 0 22px 70px rgba(7, 19, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.site-thorx-ai {
  --ink: #071019;
  --muted: #596a77;
  --navy: #040910;
  --blue: #0c8cff;
  --cyan: #00d7ff;
  --gold: #e0b94c;
  --bg: #f5f8fb;
}

body.site-smartaims {
  --ink: #071019;
  --muted: #5a6673;
  --navy: #03070d;
  --blue: #008af7;
  --cyan: #00d9ff;
  --green: #00c49a;
  --gold: #e2b649;
  --bg: #f7f9fb;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #ffffff;
  transition:
    padding 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(7, 19, 33, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 215, 255, 0.34));
}

.brand img.logo-company {
  width: 42px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(45, 159, 242, 0.36));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.72;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav a,
.header-link {
  opacity: 0.8;
}

.nav a:hover,
.nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  opacity: 1;
}

.header-link {
  min-width: max-content;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 94vh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 122px clamp(20px, 5vw, 72px) 150px;
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 42%, rgba(0, 199, 240, 0.24), transparent 27%),
    radial-gradient(circle at 23% 84%, rgba(212, 175, 55, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy), #0b1b2b 58%, #091522);
}

.site-thorx-ai .hero,
.site-smartaims .hero {
  background:
    radial-gradient(circle at 70% 42%, rgba(0, 215, 255, 0.28), transparent 30%),
    radial-gradient(circle at 18% 84%, rgba(109, 78, 232, 0.16), transparent 26%),
    linear-gradient(135deg, #02070d, #071321 58%, #03070d);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 84%, transparent 100%);
}

.hero-symbol {
  position: absolute;
  z-index: -2;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-symbol-t {
  right: clamp(42px, 8vw, 148px);
  top: 50%;
  width: clamp(330px, 30vw, 560px);
  max-height: 58vh;
  transform: translateY(-40%);
  opacity: 0.6;
  filter:
    drop-shadow(0 0 22px rgba(45, 159, 242, 0.26))
    drop-shadow(0 28px 64px rgba(0, 0, 0, 0.34));
}

.hero-symbol-thunder {
  right: clamp(48px, 8vw, 142px);
  top: 50%;
  width: clamp(260px, 24vw, 430px);
  max-height: 62vh;
  transform: translateY(-44%);
  opacity: 0.72;
  filter:
    drop-shadow(0 0 34px rgba(0, 215, 255, 0.34))
    drop-shadow(0 22px 46px rgba(0, 0, 0, 0.22));
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, 0.92) 0%, rgba(3, 7, 13, 0.72) 45%, rgba(3, 7, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.1) 0%, rgba(3, 7, 13, 0.76) 100%);
}

.hero-inner {
  width: min(790px, 100%);
  padding-top: 46px;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-top: 16px;
  max-width: 920px;
  font-size: clamp(2.9rem, 6.8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  margin-top: 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.03rem, 1.45vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.button.dark-text {
  border-color: var(--line);
  color: var(--ink);
}

.hero-status {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.72);
  backdrop-filter: blur(18px);
}

.hero-status > div {
  min-width: 0;
  padding: 16px 18px;
}

.hero-status > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-status span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.section,
.logo-band,
.framework-section,
.contact-section {
  padding: clamp(74px, 9vw, 126px) clamp(20px, 5vw, 72px);
}

.light-section {
  background: var(--bg);
}

.dark-section {
  background: var(--navy);
  color: #ffffff;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.copy-block {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.42vw, 1.16rem);
}

.dark-section .copy-block,
.dark-section .site-grid p,
.dark-section .framework-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.logo-band {
  background:
    linear-gradient(90deg, rgba(45, 159, 242, 0.025), transparent 36%),
    #ffffff;
}

.logo-lockup {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.identity-canvas {
  position: relative;
  display: grid;
  width: min(390px, 100%);
  aspect-ratio: 1.2;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.identity-canvas::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1.08;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(45, 159, 242, 0.12), rgba(0, 199, 240, 0.035) 48%, transparent 74%);
  filter: blur(18px);
  opacity: 0.45;
}

.identity-mark {
  position: relative;
  z-index: 1;
  width: 88%;
  max-height: 86%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(45, 159, 242, 0.12))
    drop-shadow(0 14px 24px rgba(7, 19, 33, 0.08));
}

.logo-lockup p:last-child {
  margin-top: 18px;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.focus-visual {
  position: relative;
  margin-top: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  min-height: 420px;
  background: #061119;
}

.focus-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.78;
}

.focus-panel {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(430px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 7, 13, 0.78);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.focus-panel span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-panel strong,
.focus-panel a {
  display: block;
}

.focus-panel strong {
  margin-top: 8px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.focus-panel a {
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 850;
}

.site-grid,
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 5vw, 62px);
  background: var(--line);
}

.dark-section .site-grid,
.framework-section .framework-grid {
  background: rgba(255, 255, 255, 0.12);
}

.site-grid article,
.framework-grid article {
  min-height: 260px;
  background: #ffffff;
  padding: clamp(22px, 3vw, 32px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dark-section .site-grid article,
.framework-section .framework-grid article {
  background: #0b1a2a;
  color: #ffffff;
}

.site-grid span,
.framework-grid span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-mark {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 215, 255, 0.3));
}

.card-mark.logo-company {
  width: 52px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(45, 159, 242, 0.34));
}

.site-grid h3,
.framework-grid h3 {
  margin-top: 22px;
  font-size: 1.12rem;
  line-height: 1.18;
}

.site-grid p,
.framework-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.site-grid a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 850;
}

.site-grid article:hover {
  transform: translateY(-1px);
}

.framework-section {
  background: var(--navy);
  color: #ffffff;
}

.framework-grid {
  grid-template-columns: repeat(5, 1fr);
}

.founder-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  background: #ffffff;
}

.founder-visual img {
  width: min(360px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.founder-copy p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.smartaims-lockup-band {
  display: grid;
  place-items: center;
  background: #03070d;
  padding-block: clamp(48px, 7vw, 86px);
}

.smartaims-lockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 44px);
  width: min(820px, 100%);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 50%, rgba(0, 215, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #040910, #071321 62%, #02060b);
  padding: clamp(28px, 5vw, 46px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.smartaims-lockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 56px);
  opacity: 0.42;
}

.lockup-thunder,
.smartaims-wordmark {
  position: relative;
  z-index: 1;
}

.lockup-thunder {
  width: clamp(82px, 14vw, 138px);
  height: clamp(110px, 18vw, 186px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(0, 215, 255, 0.54))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28));
}

.smartaims-wordmark {
  color: #ffffff;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
}

.smartaims-wordmark span {
  color: var(--cyan);
}

.smartaims-wordmark sup {
  margin-left: 0.08em;
  color: #ffffff;
  font-size: 0.26em;
  line-height: 1;
  vertical-align: super;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  background: #ffffff;
}

.contact-section p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-section .button.primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 19, 33, 0.18);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.footer-meta span,
.footer-meta small {
  display: block;
}

.footer-meta small {
  margin-top: 5px;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(0, 199, 240, 0.78);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .nav {
    display: none;
  }

  .hero-symbol-t,
  .hero-symbol-thunder {
    right: clamp(22px, 5vw, 58px);
    width: min(34vw, 330px);
    opacity: 0.48;
  }

  .two-column,
  .logo-lockup,
  .founder-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-link {
    flex: 0 0 auto;
    max-width: 42vw;
    overflow: hidden;
    padding: 9px 11px;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    display: block;
    min-height: auto;
    overflow: visible;
    padding: 98px 18px 36px;
  }

  .hero-symbol-t,
  .hero-symbol-thunder {
    display: none;
  }

  .hero-inner {
    width: 100%;
    padding-top: 18px;
  }

  .smartaims-lockup {
    align-items: center;
    flex-direction: column;
    min-height: 260px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 13vw, 3.75rem);
    line-height: 1;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .hero-status {
    position: static;
    margin-top: 32px;
    grid-template-columns: 1fr;
  }

  .hero-status > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .section,
  .logo-band,
  .framework-section,
  .contact-section {
    padding-inline: 18px;
  }

  .site-grid,
  .framework-grid {
    grid-template-columns: 1fr;
  }

  .site-grid article,
  .framework-grid article {
    min-height: auto;
  }

  .focus-panel {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .focus-visual img {
    min-height: 260px;
  }

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

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