/* CSS Document */

/* ==========================
   Base / Theme
   ========================== */
:root {
  --bg-main: #020617;
  --bg-alt: #020818;
  --bg-soft: #0b1220;
  --card-bg: #0f172a;
  --card-bg-alt: #111827;
  --primary: #2563eb;
  --primary-soft: #60a5fa;
  --accent: #22c55e;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 12px 25px rgba(15, 23, 42, 0.65);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0b1120 0%, #020617 55%, #000 100%);
  color: var(--text-main);
}

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

a {
  color: var(--primary-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.75rem);
  margin-inline: auto;
}

/* ==========================
   Header & Navigation
   ========================== */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: conic-gradient(from 220deg, #22c55e, #22c55e, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #020617;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.85);
}

.brand-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-subtitle {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Nav */
.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
}

.nav-link {
  position: relative;
  padding-block: 0.15rem;
  color: var(--text-muted);
}

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

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding-inline: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.5);
}

/* ==========================
   Sections / Layout
   ========================== */
.section {
  padding-block: 70px;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0%, #020617 45%, #000 100%);
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.section-lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
}

/* ==========================
   Hero
   ========================== */
.hero {
  padding-block-start: 85px;
}

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

.hero-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--primary-soft);
  margin: 0 0 0.6rem;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 2.6vw + 1.4rem, 2.9rem);
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-highlights span {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: radial-gradient(circle at top, #1e293b 0%, #020617 70%);
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.hero-card-text {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-weight: 600;
}

/* ==========================
   Buttons
   ========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #020617;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.75);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--primary-soft);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
}

.btn-full {
  width: 100%;
}

/* ==========================
   Cards & Lists
   ========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Feature lists */
.feature-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Architecture card */
.arch-card {
  background: var(--card-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

.checklist {
  padding-left: 1.15rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* ==========================
   Timeline (Use Cases)
   ========================== */
.timeline {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1rem 1.2rem 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: 1.2rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #fef9c3, #facc15);
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
}

/* ==========================
   About
   ========================== */
.about-grid {
  align-items: flex-start;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
}

.about-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.about-contact {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================
   Contact
   ========================== */
.section-contact {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 65%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
}

.contact-note {
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.83rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-soft);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

/* ==========================
   Footer
   ========================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020617;
  padding-block: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================
   Animations
   ========================== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .main-nav {
    display: none; /* keep simple for now; can add hamburger menu later */
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 56px;
  }

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

  .hero-grid {
    gap: 2.2rem;
  }

  .hero {
    padding-block-start: 80px;
  }
}
