/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f9fafb;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #0b1020;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 55px rgba(37, 99, 235, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: #6366f1;
}

.btn-full {
  width: 100%;
}

.link-ghost {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
}

.link-ghost:hover {
  color: #e5e7eb;
}

/* Header & nav */
.header {
  padding-top: 1.25rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.15rem; /* bigger "Code Web Labs" */
}

/* Bigger logo-mark for PNG */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;      /* bigger logo */
  height: 80px;     /* bigger logo */
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  padding: 0;
}

.logo-mark img {
  width: 140%;
  height: 140%;
  object-fit: center;
  display: block;
}

.logo .accent {
  color: #22d3ee;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  color: #9ca3af;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #e5e7eb;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.65rem;
}

/* Original hero title size restored */
.hero-text h1 {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #9ca3af;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.hero-meta span {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.9);
}

/* Hero side panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  padding: 1.5rem 1.35rem;
  border-radius: 1.4rem;
  background: radial-gradient(circle at top left, #1f2937 0, #020617 65%);
  border: 1px solid rgba(75, 85, 99, 0.55);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.9);
}

.hero-card-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.hero-list li::before {
  content: "•";
  color: #22d3ee;
  margin-right: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  width: fit-content;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  max-width: 34rem;
  margin-inline: auto;
}

/* Services */
.services {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.service-card {
  padding: 1.5rem 1.3rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 26px 65px rgba(30, 64, 175, 0.75);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: none;
  font-size: 0.85rem;
  color: #d1d5db;
}

.service-card li + li {
  margin-top: 0.25rem;
}

/* Team */
.team {
  background: #020617;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.team-card {
  padding: 1.6rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.avatar-primary {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #020617;
}

.team-card h3 {
  font-size: 1.05rem;
}

.role {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.45rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Contact */
.contact {
  background: radial-gradient(circle at top, #020617 0, #000 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.contact-points {
  list-style: none;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.contact-points li + li {
  margin-top: 0.25rem;
}

.contact-points li::before {
  content: "→";
  margin-right: 0.45rem;
  color: #22d3ee;
}

.contact-form {
  padding: 1.7rem 1.5rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.85);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.field-group input,
.field-group textarea {
  border-radius: 0.85rem;
  border: 1px solid rgba(75, 85, 99, 0.9);
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  background: #020617;
  color: #f9fafb;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #6b7280;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.8);
  background: #020617;
}

.contact-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.contact-note a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1.5rem 0 1.25rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-small {
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none; /* simple mobile: hide nav, keep CTA */
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.8rem, 640px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .link-ghost {
    margin-left: 0;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
