:root {
  /* Dark Mode "Tech" Palette */
  --color-bg: #0f172a;
  /* Slate 900 */
  --color-bg-alt: #1e293b;
  /* Slate 800 */
  --color-text: #f8fafc;
  /* Slate 50 */
  --color-text-muted: #94a3b8;
  /* Slate 400 */

  --color-primary: #3b82f6;
  /* Blue 500 */
  --color-primary-glow: rgba(59, 130, 246, 0.5);
  --color-accent: #06b6d4;
  /* Cyan 500 */

  --color-border: #334155;
  /* Slate 700 */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;

  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 20px var(--color-primary-glow);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--color-accent);
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
header {
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  /* Medium-dark header background for balanced contrast */
  background: linear-gradient(to bottom, 
    rgba(51, 65, 85, 0.98) 0%,
    rgba(30, 41, 59, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3),
              0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 40px;
  width: auto;
  filter: brightness(1.15) saturate(1.2);
  /* Enhanced for visibility on medium-dark background */
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover img {
  filter: brightness(1.25) saturate(1.3);
  transform: scale(1.02);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  /* Light text for medium-dark header */
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--color-text-muted);
  /* Muted text for medium-dark header */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-text);
  /* Light text on hover */
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 0 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Beautiful multi-stop gradient with blue glow accents */
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, 
      #0f172a 0%, 
      #1e293b 25%,
      #1e293b 50%,
      #0f172a 75%,
      #0a0f1a 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero .btn {
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  /* Pill shape */
  font-weight: 600;
  box-shadow: 0 0 15px var(--color-primary-glow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--color-primary-glow);
  color: white;
}

/* Sections */
section {
  padding: 6rem 0;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--color-text);
}

.section-label {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.card img {
  width: 100%;
  height: 200px;
  /* Fixed height for consistency */
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  background: #000;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

/* Why Tremont - Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: rgba(30, 41, 59, 0.5);
  /* Semi-transparent */
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 8px;
}

.feature-item strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Contact */
.contact-section {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
  text-align: center;
}

.contact-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background: #020617;
  /* Very dark slate */
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col h4 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.disclaimer-banner {
  background-color: rgba(185, 28, 28, 0.1);
  /* Red 700 with opacity */
  color: #f87171;
  /* Red 400 */
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(185, 28, 28, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }
}