@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/*
 * TerraSatch official brand page.
 * Palette and typography mirror src/index.css on the main website.
 * Keep the public page independently renderable for crawlers.
 */
:root {
  color-scheme: dark;
  --background: 220 15% 8%;
  --foreground: 40 15% 90%;
  --card: 220 12% 12%;
  --primary: 36 90% 50%;
  --primary-foreground: 220 15% 8%;
  --muted-foreground: 220 8% 55%;
  --border: 220 10% 20%;
  --terrain-deep: 220 18% 6%;
  --terrain-surface: 220 12% 14%;
  --terrain-elevated: 220 10% 18%;
  --terrain-ridge: 220 8% 24%;
  --amber-glow: 36 90% 50%;
  --amber-dim: 36 60% 35%;
  --frost: 200 30% 85%;
  --frost-dim: 210 15% 60%;
  --glass-bg: 220 15% 12% / 0.6;
  --glass-border: 220 10% 30% / 0.3;
  --glass-highlight: 36 90% 50% / 0.08;
  --shadow-terrain: 0 8px 32px -8px hsl(220 20% 4% / 0.6);
  --shadow-elevated: 0 16px 48px -12px hsl(220 20% 4% / 0.7);
  --shadow-glow: 0 0 40px -10px hsl(36 90% 50% / 0.2);
  --radius: .75rem;
}
html.light {
  color-scheme: light;
  --background: 40 20% 96%;
  --foreground: 220 15% 12%;
  --card: 0 0% 100%;
  --primary: 36 90% 45%;
  --primary-foreground: 0 0% 100%;
  --muted-foreground: 220 8% 45%;
  --border: 40 10% 85%;
  --terrain-deep: 40 15% 94%;
  --terrain-surface: 40 12% 96%;
  --terrain-elevated: 40 10% 92%;
  --terrain-ridge: 40 8% 82%;
  --amber-glow: 36 90% 45%;
  --amber-dim: 36 60% 55%;
  --frost: 210 20% 35%;
  --frost-dim: 210 15% 45%;
  --glass-bg: 0 0% 100% / 0.7;
  --glass-border: 40 10% 75% / 0.4;
  --glass-highlight: 36 90% 50% / 0.06;
  --shadow-terrain: 0 8px 32px -8px hsl(220 20% 70% / 0.3);
  --shadow-elevated: 0 16px 48px -12px hsl(220 20% 70% / 0.25);
  --shadow-glow: 0 0 40px -10px hsl(36 90% 50% / 0.15);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Barlow", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, .identity { font-family: "Rajdhani", system-ui, sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
a { color: hsl(var(--primary)); text-underline-offset: 4px; transition: color .2s ease; }
a:hover { color: hsl(var(--foreground)); }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 4px;
}
p { margin: 0 0 1rem; color: hsl(var(--frost-dim)); }
strong { color: hsl(var(--foreground)); }
.wrap { width: min(100%, 1216px); margin-inline: auto; padding-inline: clamp(20px, 3vw, 32px); }
.skip {
  position: fixed; top: -90px; left: 12px; z-index: 100;
  padding: 9px 14px; border-radius: 6px;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.skip:focus { top: 12px; color: hsl(var(--primary-foreground)); }
.amber { color: hsl(var(--primary)); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / .8);
  background: hsl(var(--background) / .96);
  backdrop-filter: blur(18px);
}
.top {
  display: flex; min-height: 64px;
  align-items: center; justify-content: space-between;
  gap: 24px;
}
.identity {
  display: inline-flex; align-items: center;
  flex-shrink: 0; gap: 12px;
  color: hsl(var(--foreground)); text-decoration: none;
}
.identity img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark strong { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand-wordmark small {
  margin-top: 6px; color: hsl(var(--muted-foreground));
  font: 500 9px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .16em;
}
.brand-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.brand-nav a, .theme-toggle {
  padding: 10px 13px; border: 1px solid transparent;
  border-radius: 8px; color: hsl(var(--foreground) / .85);
  background: transparent;
  font: 500 13px/1.2 "Barlow", sans-serif; text-decoration: none;
}
.brand-nav a:hover, .theme-toggle:hover {
  border-color: hsl(var(--border));
  background: hsl(var(--terrain-elevated));
  color: hsl(var(--primary));
}
.theme-toggle { border-color: hsl(var(--border)); white-space: nowrap; }
.theme-toggle .theme-icon { margin-right: 7px; color: hsl(var(--primary)); }
.brand-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid hsl(var(--primary) / .22);
  background:
    radial-gradient(ellipse at 83% 56%, hsl(var(--amber-glow) / .14), transparent 48%),
    linear-gradient(120deg, hsl(var(--terrain-deep)) 7%, hsl(var(--background)) 74%);
}
.brand-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(hsl(var(--amber-glow) / .025) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--amber-glow) / .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 55%);
}
html.light .brand-hero { background: linear-gradient(120deg, hsl(var(--terrain-deep)), hsl(var(--background))); }
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  align-items: center; gap: clamp(16px, 4vw, 56px);
  min-height: 420px; padding-block: 56px 64px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  color: hsl(var(--primary));
  font: 500 11px/1.65 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: .20em;
}
h1 {
  max-width: 740px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7vw, 100px);
  line-height: .87;
  letter-spacing: -.025em;
}
.lead { max-width: 730px; font-size: clamp(16px, 1.6vw, 19px); }
.lead.tagline {
  margin-bottom: 16px;
  color: hsl(var(--foreground));
  font: 500 11px/1.8 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: .19em;
}
.hero-art { position: relative; width: min(100%, 420px); justify-self: end; isolation: isolate; }
.hero-art::before {
  content: ""; position: absolute; z-index: -1;
  inset: 12% 0; border-radius: 50%;
  background: hsl(var(--amber-glow) / .12); filter: blur(44px);
}
.hero-art img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 28px hsl(220 20% 4% / .55)); }
html.light .hero-art img { filter: drop-shadow(0 12px 25px hsl(220 15% 20% / .12)); }
.brand-content { padding-top: 66px; padding-bottom: 104px; }
section > h2 { margin: 0 0 18px; font-size: clamp(34px, 4vw, 47px); line-height: 1.02; }
section > p { max-width: 820px; }
.rule {
  height: 1px; border: 0; margin: 60px 0;
  background: linear-gradient(90deg, transparent, hsl(var(--amber-glow) / .72), transparent);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.panel {
  position: relative; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(18px, 2.7vw, 30px);
  border: 1px solid hsl(var(--glass-border));
  border-radius: var(--radius);
  background: hsl(var(--glass-bg));
  box-shadow: var(--shadow-terrain);
  backdrop-filter: blur(16px);
}
.panel::before, .panel::after {
  content: ""; position: absolute; pointer-events: none;
  width: 12px; height: 12px; border-color: hsl(var(--amber-glow));
}
.panel::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-radius: var(--radius) 0 0 0; }
.panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-radius: 0 0 var(--radius) 0; }
.pill {
  align-self: start;
  padding: 6px 11px;
  border: 1px solid hsl(var(--amber-glow) / .4);
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--glass-bg));
  font: 500 10px/1.2 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: .13em;
}
.logo-stage, .image-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 260px; margin: 22px 0 28px;
  border: 1px solid hsl(var(--border) / .8);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, hsl(var(--glass-highlight)), transparent 60%),
    hsl(var(--terrain-deep));
  overflow: hidden;
}
.logo-stage img { width: min(75%, 260px); height: auto; object-fit: contain; }
.image-stage img { display: block; width: 100%; height: auto; object-fit: contain; }
.panel h3 { margin: 0 0 12px; font-size: 29px; line-height: 1; }
.panel p { font-size: 15px; line-height: 1.55; }
.panel .caption {
  margin-top: auto; padding-top: 5px;
  color: hsl(var(--muted-foreground));
  font: 400 11px/1.75 "JetBrains Mono", monospace;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: start; min-height: 44px; margin-top: 16px;
  padding: 12px 18px; border: 1px solid hsl(var(--primary));
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font: 700 15px/1.2 "Barlow", sans-serif;
  text-decoration: none;
}
.button:hover {
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary) / .85);
  box-shadow: var(--shadow-glow);
}
.brand-copy {
  max-width: 900px; padding: 24px 28px;
  border-left: 3px solid hsl(var(--primary));
  border-radius: 0 var(--radius) var(--radius) 0;
  background: hsl(var(--terrain-surface) / .85);
  box-shadow: var(--shadow-terrain);
}
.brand-copy p { color: hsl(var(--foreground)); margin: 0; font-size: 17px; }
.notes { padding-left: 22px; margin: 22px 0 24px; color: hsl(var(--frost-dim)); }
.notes li { padding-left: 5px; margin-bottom: 13px; }
.notes strong { font-weight: 700; }
.site-footer {
  border-top: 1px solid hsl(var(--border) / .8);
  background: hsl(var(--background) / .95);
  padding-block: 26px;
  color: hsl(var(--muted-foreground));
  font: 500 11px/1.6 "JetBrains Mono", monospace;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: hsl(var(--frost-dim)); text-decoration: none; }
.site-footer a:hover { color: hsl(var(--primary)); }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(160px, .48fr); min-height: 360px; }
  h1 { font-size: clamp(54px, 7vw, 82px); }
  .grid { gap: 16px; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .brand-nav { justify-content: start; width: 100%; gap: 3px; }
  .brand-nav a, .theme-toggle { padding: 9px 10px; font-size: 12px; }
  .brand-wordmark small { letter-spacing: .1em; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 43px 38px; }
  .hero-art { display: none; }
  h1 { font-size: clamp(52px, 12vw, 80px); }
  .brand-content { padding-top: 46px; padding-bottom: 64px; }
  .grid { grid-template-columns: 1fr; }
  .rule { margin: 44px 0; }
  .panel { padding: 20px; }
  .logo-stage, .image-stage { min-height: 230px; }
  .brand-copy { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
