/*
  Tavimedia static website
  ------------------------
  Plain HTML/CSS, no build tools required.
  Assets expected in the website root:
  - logo.png
  - bg.png
  - favicon.png
*/

:root {
  --bg: #050506;
  --panel: rgba(15, 15, 20, 0.84);
  --panel-strong: rgba(24, 24, 31, 0.88);
  --text: #f6f6f8;
  --muted: #b9b9c2;
  --dim: #7c7c88;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --accent: #ff2a5f;
  --accent-dark: #b80032;
  --accent-glow: rgba(255, 42, 95, 0.26);
  --max-width: 1160px;
  --side-padding: 17px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);

  /*
    bg.png lives beside styles.css in the website root.
    The image is placed on body directly so it cannot disappear behind the page.
  */
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 6, 0.96),
      rgba(5, 5, 6, 0.72) 48%,
      rgba(5, 5, 6, 0.92)
    ),
    linear-gradient(
      to bottom,
      rgba(5, 5, 6, 0.18),
      rgba(5, 5, 6, 0.96)
    ),
    url("bg.png") center center / cover no-repeat fixed;

  background-color: var(--bg);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 42, 95, 0.14),
      transparent 36%
    ),
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255, 42, 95, 0.04) 45%,
      transparent 62%
    );
}

.site-header,
main,
.site-footer {
  position: relative;
}

main,
.site-footer {
  z-index: 1;
}

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

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(var(--max-width), calc(100% - var(--side-padding) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px var(--accent-glow));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  align-items: stretch;

  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(10, 10, 14, 0.86);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 22px rgba(255, 42, 95, 0.08);
}

.language-switch a {
  min-width: 46px;
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 12px;

  color: var(--muted);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.language-switch a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.language-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.language-switch a.active {
  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      rgba(255, 42, 95, 0.46),
      rgba(255, 42, 95, 0.13)
    );

  box-shadow:
    inset 0 -2px 0 var(--accent),
    0 0 18px rgba(255, 42, 95, 0.14);
}

.hero {
  padding: 92px 0 62px;
  border-bottom: 1px solid var(--line);
}

/*
  The hero intentionally uses one content column.
  The earlier two-column layout made the panel sit under the huge word “infrastructure”.
  This leaves the right side as atmospheric background and puts the promise panel below the hero text.
*/
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.hero-copy {
  max-width: 1050px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1050px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 0 0 44px rgba(255, 42, 95, 0.15);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-text,
.lead {
  max-width: 780px;
  color: #dedee5;
  font-size: clamp(1.04rem, 1.8vw, 1.26rem);
  line-height: 1.65;
}

.hero-text {
  margin-top: 28px;
  margin-bottom: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 42, 95, 0.75);
}

.button.primary {
  border-color: rgba(255, 42, 95, 0.8);
  background: var(--accent-dark);
  box-shadow: 0 0 26px rgba(255, 42, 95, 0.12);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
}

.principle-panel {
  width: min(100%, 560px);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 42, 95, 0.12), transparent 44%),
    var(--panel);
  padding: 22px;
}

.principle-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.section {
  padding: 62px 0;
}

.section-head {
  max-width: 800px;
  margin-bottom: 24px;
}

.section-head p:not(.eyebrow),
.text-panel p,
.card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.text-panel,
.fact,
.contact-box {
  border: 1px solid var(--line);
  background: var(--panel);
}

.card {
  display: block;
  min-height: 174px;
  padding: 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 95, 0.65);
  box-shadow: 0 0 28px rgba(255, 42, 95, 0.08);
}

.card small {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.accent-card {
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.14), rgba(17, 17, 22, 0.86));
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.text-panel {
  padding: 22px;
}

.text-panel p:last-child {
  margin-bottom: 0;
}

.fact-list {
  display: grid;
  gap: 10px;
}

.fact {
  padding: 15px;
}

.fact strong {
  display: block;
  margin-bottom: 5px;
}

.fact span {
  color: var(--muted);
  line-height: 1.5;
}

.maintenance-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.maintenance-strip div {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 16px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-box {
  max-width: 860px;
  padding: 28px;
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 930px) {
  .split-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

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

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

  .main-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --side-padding: 12px;
  }

  .nav-bar {
    min-height: 66px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .hero {
    padding: 58px 0 42px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 5.8rem);
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .maintenance-strip {
    grid-template-columns: 1fr;
  }
}
