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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

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

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

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

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.9));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.7rem;
  color: #9ca3af;
}

.nav {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.92rem;
}

.nav-links a {
  color: #e5e7eb;
  padding-block: 0.25rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #facc15, #22d3ee);
  transition: width 0.2s ease-out;
}

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

/* Hero */

.hero {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 110% 20%, rgba(192, 132, 252, 0.45), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(250, 204, 21, 0.36), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: #d1d5db;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

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

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #020617;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.btn-ghost:hover {
  border-color: #facc15;
  background: rgba(15, 23, 42, 0.9);
}

.btn-full {
  width: 100%;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.75rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Hero media */

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  max-width: 420px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, #1e293b, #020617);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.9);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-card-overlay {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(12px);
}

.hero-stat-label {
  font-size: 0.7rem;
  color: #a5b4fc;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-stat-footnote {
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* Sections */

.section {
  padding-block: 4.5rem;
  position: relative;
}

.section-dark {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 60%),
    #020617;
}

.section-accent {
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.22), transparent 60%),
    #0f172a;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.align-left {
  text-align: left;
}

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

.section-subtitle {
  color: #9ca3af;
}

/* Platforms grid */

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

.platform-card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), #020617);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.7);
}

.platform-media {
  position: relative;
  overflow: hidden;
}

.platform-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.02);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.platform-card:hover .platform-media img {
  transform: scale(1.06);
  filter: saturate(1.4);
}

.platform-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.platform-body h3 {
  font-size: 1.1rem;
}

.platform-tagline {
  color: #a5b4fc;
  font-size: 0.86rem;
}

.platform-list {
  list-style: disc;
  padding-left: 1.1rem;
  color: #d1d5db;
  margin-top: 0.25rem;
}

.chip {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.chip-green { border-color: #4ade80; color: #bbf7d0; }
.chip-blue { border-color: #60a5fa; color: #bfdbfe; }
.chip-purple { border-color: #c4b5fd; color: #e9d5ff; }
.chip-pink { border-color: #fb7185; color: #fecaca; }
.chip-orange { border-color: #fdba74; color: #fed7aa; }
.chip-gold { border-color: #facc15; color: #fef3c7; }
.chip-cyan { border-color: #22d3ee; color: #cffafe; }
.chip-neutral { border-color: #cbd5f5; color: #e5e7eb; }

/* Why section */

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

.why-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.85);
}

.why-card h3 {
  margin-bottom: 0.4rem;
}

/* Projects */

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

.project-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.85);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.about-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: #d1d5db;
}

/* Contact */

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

.contact-info p + p {
  margin-top: 0.25rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 1.2rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.85);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

input,
textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: #e5e7eb;
  padding: 0.55rem 0.8rem;
  font: inherit;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 1px;
  border-color: #facc15;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
}

.footer-inner {
  padding-block: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-media {
    justify-content: flex-start;
  }

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

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

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

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 120%;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
    min-width: 170px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
  }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
