/* ==========================================================================
   StellarLink Media - Professional Premium Theme
   ========================================================================== */

:root {
  /* --- Color Palette --- */
  /* Primary Brand - Deep & Trustworthy */
  --color-primary: #0f172a; /* Slate 900 */
  --color-primary-light: #334155; /* Slate 700 */

  /* Accent - Vibrant & Tech-forward */
  --color-accent: #3b82f6; /* Blue 500 */
  --color-accent-hover: #2563eb; /* Blue 600 */
  --color-accent-glow: rgba(59, 130, 246, 0.5);

  /* Secondary Accent - for gradients/highlights */
  --color-secondary: #8b5cf6; /* Violet 500 */

  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc; /* Slate 50 */
  --bg-surface-alt: #f1f5f9; /* Slate 100 */
  --bg-dark: #0f172a; /* Slate 900 */

  /* Text */
  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #94a3b8; /* Slate 400 */
  --text-inverse: #ffffff;

  /* --- Typography --- */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* --- Layout --- */
  --container-width: 1280px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Effects --- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition-base: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--text-2xl);
}
h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-main);
  max-width: 65ch;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-8) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  h1 {
    font-size: var(--text-5xl);
  }
  h2 {
    font-size: var(--text-4xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}

.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 14px 0 var(--color-accent-glow);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 var(--color-accent-glow);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--color-primary);
}

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

.btn-ghost:hover {
  background: var(--bg-surface);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-4) 0;
  transition: var(--transition-base);
}

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

.brand {
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand i {
  color: var(--color-accent);
}

.nav-menu {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    gap: var(--space-8);
    align-items: center;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: var(--text-sm);
}

.nav-link:hover {
  color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--space-24) + var(--space-8));
  padding-bottom: var(--space-16);
  background: radial-gradient(
    circle at top right,
    var(--bg-surface-alt),
    white
  );
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-primary-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--bg-surface-alt);
}

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

.stat-value {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--bg-surface-alt);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card p {
  flex-grow: 1;
}

/* --- Feature List --- */
.list-check li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--text-main);
}

.list-check li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-accent);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}

.footer h4 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.footer a {
  color: var(--text-light);
  display: block;
  margin-bottom: var(--space-3);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--text-light);
  font-size: var(--text-sm);
}

/* --- Utilities --- */
.bg-light {
  background-color: var(--bg-surface);
}
.bg-white {
  background-color: white;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-surface);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-right: var(--space-2);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--color-primary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.form-label.required::after {
  content: "*";
  color: var(--color-accent);
  margin-left: var(--space-1);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: white;
  border: 1px solid #cbd5e1; /* Slate 300 - crisper border */
  border-radius: var(--radius-sm); /* Reduced radius for professional look */
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.form-input:hover {
  border-color: var(--text-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
  background-color: white;
}

.form-input::placeholder {
  color: var(--text-light);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 1rem;
  padding-right: var(--space-12);
}

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