:root {
  --bg: #020817;
  --bg-soft: #0b1020;
  --bg-softer: #111827;
  --border-subtle: #293549;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.08);
  --danger: #f97373;
  --radius-xl: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.35);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, -system-ui,
               -apple-system, BlinkMacSystemFont, "SF Pro Text", -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-fast: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

/* Utility layout */

body {
  min-height: 100vh;
}

main {
  padding-bottom: 3rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover {
  color: #7dd3fc;
}

/* Nav */

nav {
  backdrop-filter: blur(16px);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.10), transparent)
              ,rgba(2,6,23,0.98);
  box-shadow: 0 12px 32px rgba(15,23,42,0.6);
  position: sticky;
  top: 0;
  z-index: 40;
}

nav .max-w-6xl {
  max-width: 1120px;
  margin: 0 auto;
}

/* Cards / panels */

.card {
  background-color: var(--bg-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: var(--accent);
  color: #020817;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn:hover {
  background-color: #7dd3fc;
  box-shadow: 0 10px 26px rgba(56,189,248,0.30);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background-color: var(--accent-soft);
}

/* Form elements */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-softer);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.26);
}

/* Tables */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th,
.table td {
  padding: 6px 10px;
  border-bottom: 1px solid #111827;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

/* Typography helpers */

.text-2xl {
  font-size: 1.6rem;
  font-weight: 600;
}

.text-xl {
  font-size: 1.3rem;
  font-weight: 600;
}

.text-lg {
  font-size: 1.05rem;
  font-weight: 500;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.max-w-3xl { max-width: 768px; margin: 0 auto; }
.max-w-4xl { max-width: 896px; margin: 0 auto; }
.max-w-5xl { max-width: 1040px; margin: 0 auto; }
.max-w-6xl { max-width: 1120px; margin: 0 auto; }

.p-4 { padding: 1rem; }

/*
========================================
Homepage Styles
========================================
*/

.home-wrap {
  /* Constrain the width and center the content */
  max-width: 896px; /* Same as your .max-w-4xl utility */
  margin: 0 auto;
  padding: 3rem 1rem; /* 3rem top/bottom, 1rem left/right */
}

.pill-safe {
  /* Center the pill */
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem; /* auto-margins center a block element */
  
  /* Style it using your accent colors */
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.home-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.home-sub {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  
  /* Limit line width for readability */
  max-width: 60ch; 
  margin: 0 auto 2.5rem;
}

.hero-actions {
  /* Use flexbox to center buttons */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem; /* Space between the buttons */
  margin-bottom: 4rem; /* Large space before the columns */
}

/*
--- Columns Section ---
*/

.cols {
  display: grid;
  /* 1 column on mobile by default */
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Style the individual columns like your .card */
.cols > div {
  background-color: var(--bg-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center; /* <-- Add this line */
}

.cols h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cols p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}


/*
--- Responsive ---
*/
@media (min-width: 768px) {
  /* On tablets and desktops, go to 3 columns */
  .cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-title {
    font-size: 3.2rem; /* Make title a bit bigger on desktop */
  }
}
