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

:root {
  --bg: #020617;
  --bg-alt: #020617;
  --surface: #0f172a;
  --surface-alt: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-2: #38bdf8;
  --accent-3: #facc15;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.95);
  --shadow-subtle: 0 12px 30px rgba(15, 23, 42, 0.85);
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 60%),
    #020617;
  color: var(--text);
  line-height: 1.6;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(55, 65, 81, 0.75);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.5rem;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f9fafb;
}

.logo span {
  color: var(--accent-3);
}

.main-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transition: width 0.16s ease-out;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f9fafb;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.5);
  transition: transform 0.13s ease-out, box-shadow 0.13s ease-out, filter 0.13s ease-out;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 48px rgba(22, 163, 74, 0.7);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

.btn-small {
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.btn-ghost:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.btn-outline {
  background: #020617;
  border: 1px solid rgba(250, 204, 21, 0.9);
  color: #facc15;
  box-shadow: var(--shadow-subtle);
}

/* Hero */

.hero {
  padding: 3.6rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.65);
  color: var(--text);
  margin-bottom: 0.7rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-3);
}

.hero-text p {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #9ca3af;
  max-width: 36rem;
}

.hero-card {
  background: linear-gradient(145deg, #020617, #020617);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.hero-card ul {
  list-style: none;
  margin-bottom: 1.1rem;
}

.hero-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  padding-left: 1.3rem;
  position: relative;
}

.hero-card li::before {
  content: "▢";
  position: absolute;
  left: 0.1rem;
  top: 0.02rem;
  font-size: 0.8rem;
  color: var(--accent-3);
}

.hero-mini {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Sections */

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 65%);
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 42rem;
  margin-bottom: 1.9rem;
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.4rem;
}

.three-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: linear-gradient(145deg, var(--surface), var(--surface-alt));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.text-link {
  font-size: 0.88rem;
  color: var(--accent-2);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Quick links */

.quick-links {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), #020617);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-subtle);
}

.quick-card .label {
  font-size: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-card strong {
  font-size: 0.96rem;
}

/* Callout */

.callout {
  margin-top: 1.8rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 65%),
    #020617;
  box-shadow: var(--shadow-subtle);
}

.callout h3 {
  margin-bottom: 0.4rem;
}

.callout p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Check list */

.check-list {
  list-style: none;
  margin: 0.6rem 0 1rem;
}

.check-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Page layout */

.page-main {
  padding-top: 0.6rem;
}

.page-hero {
  padding: 2.8rem 0 1.4rem;
}

.page-hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.page-lead {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.text-flow h2 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

.text-flow p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.text-flow ul {
  margin: 0.4rem 0 0.8rem 1.1rem;
}

.text-flow li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.text-flow blockquote {
  margin: 0.9rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  font-style: italic;
}

.meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

/* Blog list */

.blog-list {
  display: grid;
  gap: 1.2rem;
}

.blog-card {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(145deg, #020617, #020617);
  box-shadow: var(--shadow-subtle);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.blog-card h2 a {
  color: #f9fafb;
  text-decoration: none;
}

.blog-card h2 a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(to top, #020617, rgba(15, 23, 42, 0.98));
  margin-top: 3rem;
}

.footer-main {
  padding: 1.9rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-text {
  font-size: 0.78rem;
  color: #9ca3af;
  max-width: 48rem;
}

.footer-meta {
  font-size: 0.76rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.85);
  padding: 0.8rem 1.5rem 1.2rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Responsive */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 540px) {
  .nav-container {
    padding-inline: 1rem;
  }

  .container {
    padding-inline: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Extra mobile tweaks */
@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.7rem;
  }
  .hero-card {
    padding: 1.2rem 1.3rem;
  }
  .btn, .btn-small {
    width: 100%;
    justify-content: center;
  }
}
