/* ========== Base ========== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--dark);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

.accent {
  color: var(--primary);
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

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

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

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.brand-icon {
  color: var(--primary);
  font-size: 20px;
}

.brand-dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

.nav-links a:not(.btn) {
  position: relative;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  background: var(--bg-light);
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(79, 70, 229, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
}

.stat strong span {
  color: var(--primary);
}

.stat p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.visual-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.card-main {
  border: 1px solid var(--border);
  overflow: hidden;
}

.visual-head {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.visual-body {
  padding: 26px;
  background: var(--dark);
  color: #cbd5e1;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 14px;
  line-height: 2;
}

.code-line .kw { color: #c084fc; }
.code-line .var { color: #7dd3fc; }
.code-line .fn { color: #fbbf24; }
.code-line .comment { color: #64748b; }

.card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  bottom: -24px;
  left: -24px;
}

.card-float-2 {
  top: 40px;
  right: -20px;
  bottom: auto;
  left: auto;
}

.float-icon {
  font-size: 28px;
}

.card-float strong {
  font-size: 18px;
  color: var(--dark);
  display: block;
}

.card-float p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ========== Services ========== */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

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

/* ========== About ========== */
.about {
  background: var(--bg-light);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 24px;
}

.about-badge span {
  font-size: 30px;
}

.about-badge strong {
  color: var(--dark);
  font-size: 17px;
}

.about-badge p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.about-content h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}

.about-content > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.about-list {
  list-style: none;
  margin-bottom: 32px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
  color: var(--dark);
}

.about-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

/* ========== Process ========== */
.process {
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
}

/* ========== Testimonials ========== */
.testimonials {
  background: var(--bg-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card > p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-user strong {
  color: var(--dark);
  font-size: 15px;
  display: block;
}

.testimonial-user p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ========== Contact ========== */
.contact {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 85% 20%, rgba(99, 102, 241, 0.2), transparent 60%);
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info .section-label {
  background: rgba(129, 140, 248, 0.15);
  color: var(--primary-light);
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 16px;
}

.contact-info p {
  color: #94a3b8;
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
  margin-bottom: 16px;
  font-size: 15px;
}

.contact-list li span {
  font-size: 18px;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--bg-light);
  transition: all 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-note {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #16a34a;
  min-height: 20px;
}

/* ========== Footer ========== */
.footer {
  background: #0b1120;
  color: #94a3b8;
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  max-width: 260px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}

.socials a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-stats {
    gap: 24px;
  }

  .services-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .card-float {
    left: 8px;
    bottom: -20px;
    padding: 12px 18px;
  }

  .card-float-2 {
    top: 24px;
    right: 4px;
  }

  .about-visual img {
    height: 340px;
  }

  .about-badge {
    left: 8px;
    bottom: -16px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 130px 0 80px;
  }

  .hero-stats {
    gap: 20px;
    justify-content: space-between;
  }

  .stat strong {
    font-size: 24px;
  }

  .services-grid,
  .testimonial-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

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