/* HG Webworks — agency landing */
:root {
  --bg: #06080d;
  --bg-elevated: #0e1219;
  --bg-soft: #141a24;
  --bg-card: #11161f;
  --border: rgba(255, 255, 255, 0.07);
  --text: #eef1f6;
  --text-muted: #8b96a8;
  --accent: #3dd6c3;
  --accent-soft: rgba(61, 214, 195, 0.12);
  --accent-strong: #5ee9d8;
  --accent-warm: #f0b35a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --container: min(1140px, 100% - 2.5rem);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: #9ef5ea;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #041210;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #1a8f82 100%);
  color: #041210;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-header.nav-open .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: #041210;
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #041210;
}

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(61, 214, 195, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(240, 179, 90, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

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

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 600;
}

/* Browser mock */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browser-mock {
  width: min(100%, 420px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.browser-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.browser-chrome span:first-child {
  background: #ff6b6b;
}

.browser-chrome span:nth-child(2) {
  background: #ffd166;
}

.browser-chrome span:nth-child(3) {
  background: #4ade80;
}

.browser-body {
  padding: 1.25rem;
}

.mock-nav {
  height: 10px;
  width: 55%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.mock-hero-block {
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(240, 179, 90, 0.1));
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-cards span {
  height: 48px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.hero-visual-caption {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-header-center {
  text-align: center;
  margin-inline: auto;
}

.section-header h2,
.pillars-intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.service-card .card-icon {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
}

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

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

/* Process */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.process-steps li {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.process-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Pillars */
.pillars-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .pillars-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.pillars-intro p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

.pillar-list li {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-soft));
}

.pillar-list h3 {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  font-size: 1.1rem;
}

.pillar-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Work */
.work-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

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

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s, border-color 0.2s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 214, 195, 0.35);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.work-thumb-1 {
  background-image: linear-gradient(160deg, #1a2332 0%, #2d3a4f 40%, #c9a227 120%);
}

.work-thumb-2 {
  background-image: linear-gradient(160deg, #2a1810 0%, #4a2c1a 50%, #e07a4a 120%);
}

.work-thumb-3 {
  background-image: linear-gradient(160deg, #0f1f2e 0%, #1e3a52 50%, #3dd6c3 120%);
}

.work-meta {
  padding: 1.25rem;
}

.work-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.work-meta p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Pricing */
.pricing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-featured {
  border-color: rgba(61, 214, 195, 0.4);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}

.badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #041210;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.price {
  margin: 0 0 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price span:not(.price-period) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-note {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-card ul {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Testimonials */
.testimonial-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

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

.quote-card blockquote {
  margin: 0;
}

.quote-card p {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quote-card cite {
  font-style: normal;
  font-weight: 600;
}

.quote-card footer span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact */
.section-contact {
  background:
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(61, 214, 195, 0.1), transparent),
    var(--bg);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-form {
  padding: 1.75rem;
}

.field-row {
  margin-bottom: 1rem;
}

.field-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.field-row input,
.field-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-row input:focus,
.field-row textarea:focus {
  outline: none;
  border-color: rgba(61, 214, 195, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  min-height: 1.25em;
}

.form-status.is-success {
  color: var(--accent-strong);
}

.form-status.is-error {
  color: #f87171;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.logo-footer .logo-text span {
  color: var(--accent);
}

.footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

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

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

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(6, 8, 13, 0.97);
    backdrop-filter: blur(12px);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .site-header.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-top: auto;
  }
}

@media (min-width: 861px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}
