@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
  /* Tech/Cyber Theme Defaults (Enforcing strict dark aesthetic) */
  --background: #050505;
  --background-rgb: 5, 5, 5;
  --foreground: #FAFAFA;
  --card: #0F0F0F;
  --card-rgb: 15, 15, 15;
  --card-foreground: #FAFAFA;
  --primary: #00FF66; /* Neon Green */
  --primary-foreground: #000000;
  --secondary: #161616;
  --secondary-foreground: #FAFAFA;
  --muted: #161616;
  --muted-foreground: #888888;
  --accent: #00FF66;
  --accent-foreground: #000000;
  --border: rgba(255, 255, 255, 0.1);
  --input: #161616;
  --ring: #00FF66;
  
  /* Sharper borders for tech feel */
  --radius: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;
  
  --grid-color: rgba(255, 255, 255, 0.03);
}

[data-theme='dark'], [data-theme='light'] {
  /* Enforce dark theme variables everywhere to stay true to reference */
  --background: #050505;
  --background-rgb: 5, 5, 5;
  --foreground: #FAFAFA;
  --card: #0F0F0F;
  --card-rgb: 15, 15, 15;
  --card-foreground: #FAFAFA;
  --primary: #00FF66;
  --primary-foreground: #000000;
  --secondary: #161616;
  --secondary-foreground: #FAFAFA;
  --muted: #161616;
  --muted-foreground: #888888;
  --accent: #00FF66;
  --accent-foreground: #000000;
  --border: rgba(255, 255, 255, 0.1);
  --input: #161616;
  --ring: #00FF66;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  
  /* Tech grid background overlay */
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

/* Typography Utility Classes based on AppTypography */
h1, h2, h3, h4, h5, h6, .display-large, .display-medium, .display-small, .heading-large, .heading-medium, .heading-small {
  font-family: 'Syncopate', sans-serif;
  text-transform: uppercase;
}

.display-large {
  font-size: min(8vw, 84px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
}

.display-medium {
  font-size: min(6vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.display-small {
  font-size: min(4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

.heading-large {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.heading-medium {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.heading-small {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
    .display-large {
        font-size: 4.5rem;
        letter-spacing: -1px;
    }
    
    .display-medium {
        font-size: 3rem;
    }
    
    .heading-large {
        font-size: 2.25rem;
    }
    
    .heading-medium {
        font-size: 1.75rem;
    }
}

.body-large {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.body-medium {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.body-small {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.0px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-accent {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

/* Icons */
.material-icons-round {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

/* Responsive */
@media (max-width: 768px) {
  .display-large {
    font-size: 36px;
  }

  .display-medium {
    font-size: 32px;
  }

  .display-small {
    font-size: 28px;
  }

  .container {
    padding: 0 1.5rem;
  }
}