/* Global theme and utilities for Travolta Studio */
:root {
  --bg-dark: #0b111b;
  --bg-gradient-start: #0e2b2e;
  --bg-gradient-mid: #0b666f;
  --bg-gradient-end: #2fd4e5;
  --text-primary: #e6f6f8;
  --text-secondary: #a7c7cd;
  --accent: #2fd4e5;
  --accent-strong: #5af0ff;
  --surface: #0f1926;
  --surface-contrast: #162234;
  --shadow: 0 10px 30px rgba(23, 218, 243, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --max-width: 1200px;
  --gutter: 24px;
}

/* Modern Web3 gradient background with subtle abstract pattern */
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-primary);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(47, 212, 229, 0.14), transparent 70%),
    radial-gradient(800px 400px at 90% 10%, rgba(90, 240, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-dark) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible focus outline */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Layout primitives */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 40px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 2.4rem + 1.5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.6rem);
}

p {
  margin: 0 0 16px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(12, 23, 35, 0.92), rgba(12, 23, 35, 0.65));
  border-bottom: 1px solid rgba(95, 243, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(47, 212, 229, 0.08);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(47, 212, 229, 0.35);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 10px;
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open { 
    display: grid; 
    gap: 8px; 
    position: absolute; 
    top: 60px; 
    right: var(--gutter); 
    background: var(--surface); 
    padding: 12px; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow);
    border: 1px solid rgba(95, 243, 255, 0.1);
  }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero p {
  max-width: 800px;
  margin: 0 auto 24px;
}

.cta-group {
  display: inline-flex;
  gap: 12px;
  margin-top: 10px;
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-contrast) 100%);
  border: 1px solid rgba(95, 243, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(23, 218, 243, 0.18);
  border-color: rgba(95, 243, 255, 0.2);
}

.card h3 { margin-bottom: 10px; }
.card .metrics { color: var(--accent); font-weight: 600; }

.card .btn:last-child {
  margin-top: auto;
  align-self: flex-start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95, 243, 255, 0.28);
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(47, 212, 229, 0.15);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(23, 218, 243, 0.18);
  background: rgba(47, 212, 229, 0.22);
  border-color: rgba(95, 243, 255, 0.38);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(47, 212, 229, 0.25), rgba(90, 240, 255, 0.25));
  border-color: rgba(95, 243, 255, 0.45);
}

.btn-muted {
  background: rgba(255,255,255,0.04);
  border-color: rgba(95, 243, 255, 0.15);
  color: var(--text-secondary);
}

/* Section headers */
.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-desc {
  max-width: 820px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(95, 243, 255, 0.08);
  margin-top: 40px;
}

.footer .grid {
  align-items: start;
}

.footer small {
  color: var(--text-secondary);
}

.social a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.social a:hover {
  color: var(--text-primary);
  background: rgba(47, 212, 229, 0.08);
}

/* Lists */
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* Forms */
form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

input, select, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(95, 243, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder, textarea::placeholder {
  color: #7fa7ae;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(95, 243, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(47, 212, 229, 0.15);
}

.error {
  color: #ffb3b3;
  font-size: 0.9rem;
}

.success {
  color: #9ff0ff;
  font-weight: 600;
}

/* Motion (respect reduced motion) */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
}

/* Utility */
.muted { color: var(--text-secondary); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.pill { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(95, 243, 255, 0.18); border-radius: 999px; color: var(--accent); background: rgba(47, 212, 229, 0.08); }

