:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --surface-2: #1b1e26;
  --border: #262a35;
  --text: #edeef2;
  --text-muted: #9aa1b1;
  --accent: #4f7cff;
  --accent-hover: #6a8fff;
  --accent-soft: rgba(79, 124, 255, 0.12);
  --danger: #ff6b6b;
  --success: #4fd6a5;
  --radius: 14px;
  --max-width: 1080px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo .dot {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

@media (hover: hover) and (pointer: fine) {
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
  }

  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: scaleX(1);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: scale(0.97);
}

/* ---------- Hero ---------- */

.hero {
  padding: 120px 24px 100px;
  text-align: center;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow,
.hero h1,
.hero-slogan,
.hero .btn {
  opacity: 0;
  animation: hero-fade-up 0.7s var(--ease-out) forwards;
}

.hero-eyebrow {
  animation-delay: 0.05s;
}

.hero h1 {
  animation-delay: 0.15s;
}

.hero-slogan {
  animation-delay: 0.25s;
}

.hero .btn {
  animation-delay: 0.35s;
}

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

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero-slogan {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 36px;
}

/* ---------- Sections ---------- */

.section {
  padding: 90px 24px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: -14px 0 40px;
}

/* ---------- About ---------- */

.about-content {
  max-width: 700px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .card-image img {
    transition: transform 0.4s var(--ease-out);
  }

  .card:hover .card-image img {
    transform: scale(1.06);
  }
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.price-card-accent {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}

.price-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Process ---------- */

.process {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.process-title {
  margin: 0 0 26px;
  font-size: 1.25rem;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.process-steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.step-text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--danger);
}

.error-message {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.82rem;
}

.channel-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-option {
  position: relative;
}

.channel-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.channel-option span {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.channel-option:hover span {
  color: var(--text);
}

.channel-option input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.channel-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-option input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-option a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-option a:hover {
  color: var(--accent-hover);
}

.contact-form .btn {
  align-self: flex-start;
}

.form-success,
.form-error {
  display: none;
  font-size: 0.92rem;
  margin: 0;
}

.form-success {
  color: var(--success);
}

.form-error {
  color: var(--danger);
}

.form-success.show,
.form-error.show {
  display: block;
}

/* ---------- Contacts ---------- */

.contacts-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--accent-hover);
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 90px 20px 70px;
  }

  .section {
    padding: 64px 20px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover {
    transform: none;
  }

  .hero-eyebrow,
  .hero h1,
  .hero-slogan,
  .hero .btn,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
