/*
  Turing Worlds Interactive base visual system
  Adapted from TWI.zip / css/style.css for reuse in the Earth:3030 classic WordPress theme.
*/

:root {
  --deep-navy: #040f24;
  --deep-navy-2: #071a36;
  --panel-navy: #0f1f3d;
  --panel-navy-soft: #102847;
  --cyan: #00c4ff;
  --cyan-bright: #7be4ff;
  --cyan-soft: rgba(0, 196, 255, 0.18);
  --steel: #c0c6cf;
  --soft-white: #e8edf2;
  --muted: #9aa3ad;
  --graphite: #2a2f36;
  --black: #111315;
  --danger-red: #ff4f6d;
  --warning-gold: #e0b84f;
  --success-green: #5dffb0;
  --max-width: 1180px;
  --content-width: 860px;
  --nav-height: 78px;
  --radius-panel: 20px;
  --radius-card: 22px;
  --shadow-cyan: 0 0 70px rgba(0, 196, 255, 0.11);
  --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.18);
  --border-soft: 1px solid rgba(192, 198, 207, 0.14);
  --border-cyan: 1px solid rgba(0, 196, 255, 0.55);
  --font-main: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--soft-white);
  background:
    radial-gradient(circle at 72% 14%, rgba(0, 196, 255, 0.14), transparent 25%),
    radial-gradient(circle at 20% 45%, rgba(120, 170, 255, 0.08), transparent 24%),
    linear-gradient(180deg, var(--deep-navy), #020816 70%, #01050d);
  font-family: var(--font-main);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(0,196,255,0.32) 0 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 42px 58px;
  z-index: -1;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

a { color: var(--cyan); text-decoration: none; transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
a:hover, a:focus { color: var(--cyan-bright); }
img { max-width: 100%; height: auto; }
figure { margin: 0 0 1.5rem; }
hr { border: 0; border-top: var(--border-soft); margin: 2rem 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--steel);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.7rem, 7vw, 6.8rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.5rem 1.25rem; padding: 0; }
li { margin-bottom: 0.35rem; }

.container { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.content { max-width: var(--content-width); }
.content.wide { max-width: none; }
.kicker {
  color: var(--cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0 0 18px;
}
.lede {
  color: var(--soft-white);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  max-width: 760px;
  margin-bottom: 30px;
}
.small { font-size: 0.86rem; color: var(--muted); }
.meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(4, 15, 36, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-soft);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: var(--nav-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 0 24px;
}
.brand, .site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--soft-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}
.company-name {
  color: var(--soft-white);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
}
.brand img, .custom-logo { width: 132px; display: block; }
.nav-links, .primary-menu, .menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a, .primary-menu a, .menu a {
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links a.active, .nav-links a:hover, .primary-menu .current-menu-item > a, .menu .current-menu-item > a, .primary-menu a:hover, .menu a:hover { color: var(--cyan); }
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(192,198,207,0.28);
  color: var(--soft-white);
  border-radius: 8px;
  padding: 8px 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 70px 24px 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero-card, .feature-image {
  border: 1px solid rgba(192, 198, 207, 0.18);
  background: linear-gradient(145deg, rgba(15,31,61,0.74), rgba(4,15,36,0.6));
  box-shadow: var(--shadow-cyan);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 180px;
  background: radial-gradient(circle, rgba(0,196,255,0.22), transparent 70%);
}
.hero-card img { position: relative; z-index: 1; filter: drop-shadow(0 0 28px rgba(0,196,255,0.16)); }
.feature-image { background: rgba(4,15,36,0.42); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: var(--border-cyan);
  background: rgba(0,196,255,0.12);
  color: var(--soft-white);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  cursor: pointer;
}
.button.secondary { border-color: rgba(192,198,207,0.28); background: rgba(192,198,207,0.06); color: var(--steel); }
.button:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(0,196,255,0.18); color: #fff; }

.section {
  padding: 96px 24px;
  border-top: 1px solid rgba(192,198,207,0.12);
}
.section.alt { background: rgba(4, 15, 36, 0.38); }
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.section-title::before {
  content: "";
  width: 3px;
  height: 42px;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0,196,255,0.4);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel, .news-card, .card {
  background: linear-gradient(145deg, rgba(15,31,61,0.76), rgba(6,18,40,0.56));
  border: 1px solid rgba(192,198,207,0.16);
  border-radius: var(--radius-panel);
  padding: 30px;
  box-shadow: var(--shadow-panel);
}
.panel p, .news-card p, .content p, .content li { color: var(--soft-white); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.principles span {
  padding: 14px 16px;
  border: 1px solid rgba(0,196,255,0.22);
  background: rgba(0,196,255,0.06);
  border-radius: 14px;
  color: var(--steel);
  font-weight: 700;
}

.page-hero {
  padding: 50px 24px 30px;
  border-bottom: 1px solid rgba(192,198,207,0.12);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  text-transform: none;
}

.project-logo {
  max-width: 520px;
  margin: 0 auto 28px;
  display: block;
}
.news-list { display: grid; gap: 24px; }
.contact-box { display: grid; gap: 18px; max-width: 760px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-bottom: 1px solid rgba(192,198,207,0.14); padding: 16px 0; }

.site-footer {
  border-top: 1px solid rgba(192,198,207,0.14);
  background: rgba(1, 7, 18, 0.72);
  padding: 46px 24px;
  color: var(--footer-gray, #9aa3ad);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-grid h3 { font-size: 0.92rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: #9aa3ad; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-links { display: grid; gap: 8px; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .footer-grid, .principles { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .nav-links, .primary-menu, .menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(4,15,36,0.98);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(192,198,207,0.14);
  }
  .nav-links.open, .primary-menu.open, .menu.open { display: grid; gap: 16px; }
  .mobile-toggle { display: inline-flex; }
  .brand img, .custom-logo { width: 110px; }
}

@media (max-width: 560px) {
  :root { --nav-height: 68px; }
  .hero, .section, .page-hero { padding-left: 18px; padding-right: 18px; }
  .panel, .news-card, .card { padding: 22px; }
}
