/* ========== Colors & basics ========== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #f59e0b;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --footer-bg: #0f172a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.phone-link:hover {
  color: var(--primary);
}

.menu-btn {
  display: flex;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.5rem 0;
  font-weight: 500;
}

/* ========== Sections ========== */
section {
  padding: 5rem 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), var(--bg), rgba(245, 158, 11, 0.06));
}

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

.hero-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

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

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

.hero-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  color: var(--primary);
}

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

.hero-card {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ========== Cards grid ========== */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* ========== About ========== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 16px;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.about-badge strong {
  font-size: 2rem;
  color: var(--primary);
  display: block;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-list li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.about-content .section-label,
.about-content .section-title {
  text-align: left;
}

.about-content .section-title {
  margin-bottom: 1rem;
}

/* ========== Process ========== */
.step-card {
  position: relative;
  padding-top: 1.5rem;
}

.step-num {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ========== Portfolio & blog ========== */
.project-card {
  padding: 0;
  overflow: hidden;
}

.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(245, 158, 11, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(79, 70, 229, 0.4);
  font-weight: 700;
}

.project-card .card-body {
  padding: 1rem;
}

.project-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* ========== Testimonials ========== */
.stars {
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.quote-mark {
  font-size: 2.5rem;
  color: rgba(79, 70, 229, 0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ========== Contact ========== */
.contact-banner {
  background: var(--primary);
  color: white;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.contact-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.contact-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

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

.contact-info a {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-info a:hover .info-value {
  color: var(--primary);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.info-value {
  font-weight: 600;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-form h3 {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

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

/* ========== Footer ========== */
.footer {
  background: var(--footer-bg);
  color: #e2e8f0;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer .logo {
  color: white;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

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

  .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .phone-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .btn-header {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    display: block;
  }

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

  .cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .btn-header {
    display: none;
  }
}
