:root {
  --nav-height: 72px;
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --bg-soft: #111111;
  --fg: #f5f5f5;
  --muted: #8b8b8b;
  --accent: #f3e4b2;
  --border-subtle: #1e1e1e;
  --border-strong: #2b2b2b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-subtle: 0 12px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #181818 0, #050505 45%, #000 100%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.section {
  padding: 7rem 0 5rem;
}

main {
  padding-top: var(--nav-height);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.85), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  font-size: 1.3rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

.logo span {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding-bottom: 0.3rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-med);
}

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

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

.nav-links a.active {
  color: var(--fg);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--fg);
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hero */
.hero {
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.btn {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.9rem;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--fg);
  transition: background var(--transition-med), color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
  background: #f5f5f5;
  color: #050505;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.8);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.full-width {
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.8rem;
}

.hero-meta-simple {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}

.meta-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.meta-caption {
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.glass {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.4rem 1.6rem;
}

.hero-card-title {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-card-body {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.hero-block {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-block.car {
  background: radial-gradient(circle at top, #1c1c1c 0, #050505 60%);
}

.hero-block.code {
  background: linear-gradient(135deg, #050505, #111111);
}

.hero-block .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections generic */
.section-header {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
}

.section-header h2 span {
  color: var(--accent);
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services */
.services {
  background: radial-gradient(circle at top right, #181818 0, #050505 50%, #000 100%);
  border-radius: 40px 40px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
}

.about {
  background: transparent;
}

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

.about-body {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

.service-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.6));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.7rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.8));
}

.service-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

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

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

.service-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fg);
  font-size: 0.88rem;
}

.service-list li + li {
  margin-top: 0.25rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Contact */
.contact {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: flex-start;
}

.contact-header {
  position: sticky;
  top: 5.4rem;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.7rem;
  font-size: 0.9rem;
}

.contact-meta .meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.contact-meta .meta-caption {
  font-size: 0.9rem;
}

.contact-form-wrapper {
  padding: 1.8rem 1.7rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-group label {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 0.9rem;
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.field-error {
  font-size: 0.75rem;
  color: #ffb3b3;
  min-height: 1em;
}

.field-group.invalid input,
.field-group.invalid select,
.field-group.invalid textarea {
  border-color: #ff4d4d;
}

.form-footer {
  margin-top: 0.6rem;
}

.form-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #b5ffcc;
}

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

/* Work / references */
.work {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.work-grid .service-card {
  min-height: 180px;
}

/* CTA blocks */
.cta-wrap {
  margin-top: 2.1rem;
  display: flex;
  align-items: center;
}

.hero-cta-bottom {
  margin-top: 2.3rem;
}

/* Reference screenshots */
.work-shot {
  margin: 0.2rem 0 0.6rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}

.work-shot svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Why me */
.why {
  background: radial-gradient(circle at top right, #181818 0, #050505 55%, #000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Pricing */
.pricing {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-grid {
  margin-top: 1.2rem;
}

.pricing-card {
  align-items: flex-start;
}

.pricing-card .price {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.1rem;
}

.pricing-card-featured {
  border-color: rgba(243, 228, 178, 0.5);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.95);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0 1.9rem;
  background: #050505;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note {
  opacity: 0.75;
}

/* Utilities */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .services {
    border-radius: 32px 32px 0 0;
  }

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

  .contact-header {
    position: static;
  }
}

@media (max-width: 768px) {
  .navbar {
    background: rgba(5, 5, 5, 0.97);
  }

  .nav-links {
    position: fixed;
    inset: calc(var(--nav-height) + 0.5rem) 1.5rem auto 1.5rem;
    flex-direction: column;
    background: #050505;
    padding: 1.3rem 1.5rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-links.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 4.4rem;
  }

  .hero-meta {
    gap: 1.2rem;
  }

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

  .section {
    padding: 4.5rem 0 3.5rem;
  }

  .services {
    margin-top: 3.5rem;
  }

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

  .contact-form-wrapper {
    padding: 1.4rem 1.3rem;
  }

  .cta-wrap {
    justify-content: center;
    margin-top: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 2.2rem, 480px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

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

