:root {
  --bg: #050505;
  --bg-soft: #0b0b11;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --text-main: #f9fafb;
  --text-muted: #a1a1aa;
  --card-bg: #111111;
  --border-subtle: #27272a;
  --danger: #f97373;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(249,115,22,0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(249,115,22,0.08), transparent 60%),
    var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5,8,22,0.95), rgba(5,8,22,0.8), transparent);
  border-bottom: 1px solid rgba(31,41,55,0.7);
  box-shadow: 0 14px 30px rgba(0,0,0,0.65);
  transition: box-shadow 0.18s ease-out, border-color 0.18s ease-out, background-color 0.18s ease-out;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #fff7ed, #f97316 45%, #ea580c 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color 0.18s ease-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #facc15);
  opacity: 0.9;
  transform-origin: left;
  transition: width 0.2s ease-out;
}

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

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  font-size: 0.9rem;
  background: rgba(15,23,42,0.96);
  color: var(--text-main);
  box-shadow: 0 0 0 rgba(249,115,22,0);
  transition:
    border-color 0.18s ease-out,
    color 0.18s ease-out,
    background-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}


.nav-cta:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15,23,42,0.9);
}

.nav-toggle {
  display: none;
  margin-left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.18s ease-out,
    background-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle.is-active {
  border-color: var(--accent);
  background: radial-gradient(circle at 0% 0%, rgba(249,115,22,0.2), transparent 55%), rgba(15,23,42,0.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.9);
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  padding: 12px 18px 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(249,115,22,0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.18), transparent 55%),
    rgba(15,23,42,0.98);
  border-bottom: 1px solid rgba(39,39,42,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  backdrop-filter: blur(18px);
  z-index: 45;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.nav-mobile a {
  display: block;
  padding: 9px 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(39,39,42,0.8);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

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

.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 32px;
  align-items: center;
  padding: 32px 0 50px;
  animation: fadeUp 0.6s ease-out both;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(249,115,22,0.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.24), transparent 55%);
  opacity: 0.9;
  z-index: -1;
  filter: blur(40px);
  animation: heroGlow 18s ease-in-out infinite alternate;
}

.hero-rotate-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text-muted);
}

.hero-rotate-label {
  opacity: 0.85;
}

.hero-rotate-words {
  display: inline-flex;
  min-width: 13ch;
  position: relative;
  overflow: hidden;
}

.hero-rotate-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-rotate-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .hero-rotate-line {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta {
    display: none;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(56,189,248,0.5);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
}

.accent-gradient {
  background: linear-gradient(to right, #f97316, #facc15);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #020617;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 140ms ease-out, filter 140ms ease-out, box-shadow 140ms ease-out;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15,23,42,0.85);
}

.btn-primary.btn--loading {
  opacity: 0.7;
  cursor: wait;
}

.btn-ghost {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, background-color 140ms ease-out;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  background-color: rgba(15,23,42,0.9);
}

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

.hero-right {
  position: relative;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(249,115,22,0.16), transparent 60%),
              var(--card-bg);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 45px rgba(15,23,42,0.8);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.7);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.metric {
  flex: 1 1 120px;
  background: rgba(15,23,42,0.9);
  border-radius: 10px;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 10px 10px 9px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

.metric-pill {
  font-size: 0.7rem;
  color: #22c55e;
}

/* Sections */
.section {
  margin-top: 48px;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.08s;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 16px 15px 14px;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249,115,22,0.7);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
}

.service-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid rgba(31,41,55,0.7);
  padding-top: 0;
  transition:
    max-height 220ms ease-out,
    opacity 200ms ease-out,
    padding-top 200ms ease-out,
    margin-top 200ms ease-out;
}

.service-card.expanded .service-extra {
  max-height: 400px; /* enough room for a couple of paragraphs */
  opacity: 1;
  margin-top: 10px;
  padding-top: 10px;
}

.service-toggle {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.service-toggle-icon {
  font-size: 0.9rem;
  transition: transform 150ms ease-out;
}

.service-card.expanded .service-toggle-icon {
  transform: rotate(180deg);
}

.service-title {
  font-size: 0.98rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.step {
  background: rgba(15,23,42,0.9);
  border-radius: 14px;
  padding: 16px 15px;
  border: 1px dashed rgba(55,65,81,0.9);
  font-size: 0.86rem;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.9);
  border-color: rgba(249,115,22,0.5);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-next {
  margin-top: 20px;
  margin-bottom: 10px;
  max-width: 640px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-next-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.contact-next-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 6px;
}

.contact-next-list li {
  margin-bottom: 4px;
}

.contact-next-list li strong {
  color: var(--text-main);
  font-weight: 600;
}

.contact-next-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .contact-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-form {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px 16px 16px;
  border: 1px solid var(--border-subtle);
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 8px 9px;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus,
contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.3);
}

.form-status {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.form-status--info,
.form-status--success,
.form-status--error {
  opacity: 1;
  transform: translateY(0);
}

.form-status--info {
  color: #e5e7eb;
}

.form-status--success {
  color: #4ade80;
}

.form-status--error {
  color: #f97373;
}

.contact-aside {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-aside strong {
  color: var(--text-main);
}

.contact-list {
  margin-top: 10px;
  list-style: none;
  font-size: 0.85rem;
}

.contact-list li {
  margin-bottom: 4px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.work-card {
  background: radial-gradient(circle at top left, rgba(249,115,22,0.12), transparent 60%), var(--card-bg);
  border-radius: 16px;
  padding: 16px 15px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(15,23,42,0.85);
  font-size: 0.86rem;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.7);
  box-shadow: 0 22px 52px rgba(15,23,42,0.96);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
}

.comparison-table th,
.comparison-table td {
  padding: 6px 8px;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
  text-align: left;
}

.comparison-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.comparison-table tr.highlight td {
  background: rgba(249,115,22,0.08);
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 20px 50px rgba(15,23,42,0.95);
}

.work-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.work-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.work-meta span {
  display: inline-block;
  margin-right: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pricing-card {
  background: rgba(15,23,42,0.96);
  border-radius: 16px;
  padding: 16px 15px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 38px rgba(15,23,42,0.85);
  font-size: 0.86rem;
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.pricing-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.pricing-card.featured {
  border-color: rgba(249,115,22,0.9);
  box-shadow: 0 20px 46px rgba(15,23,42,0.95);
  background: radial-gradient(circle at top left, rgba(249,115,22,0.14), transparent 60%), rgba(15,23,42,0.98);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.9);
  box-shadow: 0 24px 54px rgba(15,23,42,0.97);
}

.pricing-card:hover .pricing-icon {
  transform: translateY(-3px);
  opacity: 0.95;
}

.pricing-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-name {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 0;
  margin: 0 0 10px;
}

.pricing-list li {
  margin-bottom: 4px;
}

.pricing-list li::before {
  content: "• ";
  color: var(--accent);
  margin-right: 2px;
}

.pricing-cta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-cta strong {
  color: var(--text-main);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.faq-item {
  background: rgba(15,23,42,0.93);
  border-radius: 14px;
  padding: 13px 12px 11px;
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
}

.faq-q {
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-a {
  font-size: 0.83rem;
  color: var(--text-muted);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid #111827;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

@keyframes heroGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -12px, 0) scale(1.06);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 10px 14px;
  }

  .hero {
    padding: 22px 0 36px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .pricing-card,
  .service-card,
  .work-card,
  .contact-form {
    padding: 14px 13px 12px;
  }

  .section {
    margin-top: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}