/* Coastal Bend Tech — mobile-first, dark gaming-adjacent */

:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: #111a2e;
  --border: rgba(148, 185, 255, 0.12);
  --border-strong: rgba(94, 234, 212, 0.28);
  --text: #e8eefc;
  --text-muted: #9aa8c7;
  --accent: #5eead4;
  --accent-2: #60a5fa;
  --accent-hot: #a78bfa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(96, 165, 250, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(94, 234, 212, 0.1), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(167, 139, 250, 0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #99f6e4;
}

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #042f2e;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-text strong {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(94, 234, 212, 0.08);
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: rgba(94, 234, 212, 0.16);
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.lede,
.section-lede {
  margin: 0;
  color: var(--text-muted);
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #5eead4, #38bdf8);
  color: #042f2e;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  color: #042f2e;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(148, 185, 255, 0.35);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 0.9rem 1.45rem;
  font-size: 1.02rem;
}

.hero-panel {
  position: relative;
  min-height: 260px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.glow-a {
  width: 180px;
  height: 180px;
  background: rgba(94, 234, 212, 0.35);
  top: 10%;
  left: 8%;
}

.glow-b {
  width: 220px;
  height: 220px;
  background: rgba(96, 165, 250, 0.28);
  bottom: 0;
  right: 5%;
}

.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 26, 46, 0.95), rgba(13, 20, 36, 0.9));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.hero-stats strong {
  font-size: 0.98rem;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-lede {
  margin-top: 0.35rem;
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* About */
.about {
  padding-top: 2rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.about-copy p {
  color: var(--text-muted);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-aside {
  background: linear-gradient(145deg, rgba(96, 165, 250, 0.08), rgba(94, 234, 212, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.about-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.about-aside li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.98rem;
}

.about-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* CTA */
.cta {
  padding-bottom: 4rem;
}

.cta-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 1.5rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.1), rgba(96, 165, 250, 0.08) 50%, rgba(167, 139, 250, 0.08));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin-bottom: 0.4rem;
}

.cta-panel p:last-of-type {
  margin: 0;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-copy {
  margin: 0.35rem 0 0;
  color: #6b7a99;
  font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-panel {
    grid-template-columns: 1fr auto;
    padding: 2rem 2.1rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .about-grid {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 4.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn, .service-card { transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}


/* Brand logo mark in header */
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border);
}

/* Hero logo cover — keep 4:3, never stretch */
.logo-cover {
  margin: 0;
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.logo-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}


/* Contact cards */
.contact-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.contact-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  font-size: 0.98rem;
}

.contact-card .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}
