/* ========== THEME TOKENS ========== */

:root {
  --bg: #020617;
  --bg-alt: #020617;
  --card: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --radius-xl: 18px;
  --max-width: 1120px;
}

[data-theme="light"] {
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --text: #020617;
  --muted: #4b5563;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* ========== GLOBAL ========== */

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

.page {
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* 3DOTS animated background */

.bg-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: 0.75;
  animation: floatDots 12s infinite ease-in-out;
}

.dot1 { background: #38bdf8; box-shadow: 0 0 16px #38bdf8; }
.dot2 { background: #a855f7; box-shadow: 0 0 16px #a855f7; }
.dot3 { background: #f472b6; box-shadow: 0 0 16px #f472b6; }

@keyframes floatDots {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-40px) translateX(25px) scale(1.25); opacity: 1; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
}

/* ========== LAYOUT HELPERS ========== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 32rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ========== NAVBAR ========== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

[data-theme="light"] .navbar {
  background: rgba(249, 250, 251, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #a855f7);
  transition: width 0.15s ease-out;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle,
.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.25rem 0.7rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-toggle span {
  font-size: 1rem;
}

.nav-toggle {
  display: none;
}

/* Hover logo spin from before */

.logo-wrap img {
  height: 26px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.4s ease-out;
}

.logo-wrap:hover img {
  transform: rotate(360deg);
}

/* ========== HERO ========== */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .hero-eyebrow {
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

.hero-title {
  font-size: clamp(2.15rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
}

.hero-title span {
  background: linear-gradient(to right, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .badge {
  background: #ffffff;
}

.badge-strong {
  border-color: rgba(56, 189, 248, 0.9);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 15px 40px rgba(8, 47, 73, 0.75);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(8, 47, 73, 0.9);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.95);
}

[data-theme="light"] .btn-ghost:hover {
  background: #e5e7eb;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* hero card */

.hero-card {
  border-radius: 24px;
  background: radial-gradient(circle at top, #020617, #020617 35%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero-card {
  background: radial-gradient(circle at top, #e5f4ff, #ffffff 60%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.1;
  background:
    radial-gradient(circle at 10% 20%, #38bdf8 0, transparent 55%),
    radial-gradient(circle at 80% 0%, #a855f7 0, transparent 60%);
  mix-blend-mode: screen;
}

.hero-card-header {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.hero-pill {
  font-size: 0.72rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
  display: inline-block;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.metric {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .metric {
  background: rgba(255, 255, 255, 0.9);
}

.metric-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.metric-value {
  font-size: 1rem;
  font-weight: 600;
}

.metric-value span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.hero-stack {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
}

[data-theme="light"] .hero-stack {
  background: rgba(255, 255, 255, 0.85);
}

.stack-pill {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

.stack-pill.hot {
  border-color: rgba(56, 189, 248, 0.9);
  color: var(--accent);
}

/* ========== CARDS / CONTENT ========== */

.card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), #020617 90%);
  border: 1px solid var(--border);
  padding: 1.3rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.6);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .card {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 60%);
  transition: opacity 0.15s ease-out;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* TEAM */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.member {
  border-radius: 20px;
  padding: 1.1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 90%);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
  font-size: 0.86rem;
}

[data-theme="light"] .member {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.member-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.member-role {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.member-links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.18rem;
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-meta {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.85);
  background: #020617;
  color: #9ca3af;
  font-size: 0.78rem;
  padding: 1rem 0 1.4rem;
}

[data-theme="light"] footer {
  background: #0f172a;
  color: #e5e7eb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BLOG CARDS */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.post {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1rem;
  background: #020617;
  font-size: 0.85rem;
}

[data-theme="light"] .post {
  background: #ffffff;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.post a {
  color: var(--accent);
  font-size: 0.8rem;
}

/* CONTACT LIST UL STYLE */

.contact-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 0.2rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3,
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.2rem;
  }
  section {
    padding: 3.2rem 0;
  }
  .grid-3,
  .team-grid,
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3rem;
    right: 1.5rem;
    background: var(--bg-alt);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  }
}
