/* Vyix LLC - Main Stylesheet */

/* CSS Variables for consistent theming - Dark Theme */
:root {
  --primary: #8df9cf;
  --primary-dark: #6ee7b7;
  --primary-light: #a7f3d0;
  --text: #f0f0f0;
  --text-muted: #a1a1aa;
  --text-light: #71717a;
  --bg: #0a0a0a;
  --bg-subtle: #141414;
  --bg-card: #111111;
  --border: #27272a;
  --border-light: #1f1f23;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;

  /* Accent glow for dark theme */
  --glow: 0 0 20px rgba(141, 249, 207, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 600;
}

/* Header & Navigation */
header {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.logo:hover {
  text-decoration: none;
}

/* WebGL Logo */
.logo-canvas-container {
  position: relative;
  /* width: 80px; */
  width: 215px;
  /* height: 32px; */
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.logo-canvas-container.no-webgl .logo-text {
  display: block;
}

.logo-canvas-container .logo-text {
  display: none;
}

.logo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Fallback text logo */
.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

nav a.active {
  color: var(--primary);
  background: rgba(141, 249, 207, 0.1);
}

/* Main Content */
main {
  padding-bottom: 3rem;
  min-height: calc(100vh - 300px);
}

.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md), var(--glow);
  border-color: rgba(141, 249, 207, 0.2);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

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

.card ul {
  margin-bottom: 0;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card-grid .card {
  margin-bottom: 0;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg), var(--glow);
  border-color: rgba(141, 249, 207, 0.3);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--glow);
}

.pricing-card h2 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #0a0a0a;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #0a0a0a;
  text-decoration: none;
  box-shadow: var(--glow);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--text-light);
  text-decoration: none;
}

/* Forms */
form {
  max-width: 500px;
}

label {
  display: block;
  margin-bottom: 1.25rem;
}

label > span,
label > strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(141, 249, 207, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--primary);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

button[type="submit"]:hover {
  background: var(--primary-light);
  box-shadow: var(--glow);
}

/* Turnstile widget spacing */
.cf-turnstile {
  margin: 1.5rem 0;
}

/* Muted Text */
.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.note {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: #0a0a0a;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Feature List */
.feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(141, 249, 207, 0.1);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1.25rem;
}

.feature-content h3 {
  margin: 0 0 0.25rem;
}

.feature-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
  color: var(--text-muted);
}

/* Thank You / 404 Page */
.thank-you {
  text-align: center;
  padding: 4rem 0;
}

.thank-you h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thank-you p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Legal Pages */
.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  body {
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .feature-item {
    gap: 0.75rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  body {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  header {
    padding: 1rem 0;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-canvas-container {
    width: 70px;
    height: 28px;
  }

  nav {
    gap: 0;
  }

  nav a {
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }

  .card {
    padding: 1rem;
  }

  .card h2 {
    font-size: 1.125rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .pricing-card h2 {
    font-size: 1.25rem;
  }

  .pricing-card .price {
    font-size: 2rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .feature-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .feature-content h3 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.875rem;
  }

  .thank-you {
    padding: 3rem 0;
  }

  .thank-you h1 {
    font-size: 1.5rem;
  }

  footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
  }

  /* Improve touch targets on mobile */
  input,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  button[type="submit"] {
    width: 100%;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  nav a {
    padding: 0.4rem 0.35rem;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

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

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

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: #555;
    --text-muted: #ccc;
    --text: #fff;
  }

  .card,
  .pricing-card {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .btn,
  nav {
    display: none;
  }

  body {
    max-width: 100%;
    padding: 0;
  }

  .card,
  .pricing-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}
