/* ===== Base ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6fb;
  --color-text: #1c2331;
  --color-text-muted: #5b6478;
  --color-primary: #2454ff;
  --color-primary-dark: #1739c4;
  --color-border: #e2e6f0;
  --color-accent: #00c2a8;
  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  padding-top: 26px;
  padding-bottom: 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo-mark {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 13px 12px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(36, 84, 255, 0.3);
  transform: translateY(-1px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: radial-gradient(circle at top right, #eef2ff 0%, var(--color-bg) 55%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(36, 84, 255, 0.18), transparent 70%);
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.14), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(36, 84, 255, 0.08);
  border: 1px solid rgba(36, 84, 255, 0.18);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 0 3px rgba(36, 84, 255, 0.15);
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-copy > * {
    opacity: 0;
    animation: heroFadeUp 0.6s ease forwards;
  }

  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.35s; }

  .hero-visual {
    opacity: 0;
    animation: heroFadeUp 0.7s ease forwards;
    animation-delay: 0.2s;
  }
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.hero-illustration {
  width: 100%;
  height: auto;
  max-height: 420px;
}

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

.hero-card-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(20, 30, 60, 0.1);
}

.server-illustration {
  width: 100%;
  height: auto;
  max-height: 320px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-stat:last-child {
  border-bottom: none;
}

.hero-stat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ===== Stats band ===== */
.stats-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  text-align: center;
}

.stat-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-item strong {
  display: block;
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.stat-item span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== Sections ===== */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--color-text-muted);
}

/* ===== Cards / Grids ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 120px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

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

.card p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== Team ===== */
.team-member {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.team-member h3 {
  margin: 0 0 4px;
}

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

/* ===== Client cards ===== */
.client-card {
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}

.client-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 20px;
}

.client-logo-placeholder {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.client-card h3 {
  margin: 0 0 10px;
}

.client-card p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== Timeline (About) ===== */
.timeline {
  border-left: 2px solid var(--color-border);
  margin-left: 12px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #eef2ff;
}

.timeline-item h4 {
  margin: 0 0 6px;
}

.timeline-item span {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline-item p {
  color: var(--color-text-muted);
  margin: 6px 0 0;
}

/* ===== Values ===== */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.values-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.values-list .tick {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6faf5;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--color-primary), #1739c4);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

.cta .btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: transparent;
}

.cta .btn-secondary:hover {
  background: #f1f4ff;
}

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 20px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list strong {
  display: block;
}

.contact-info-list span {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

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

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

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: var(--color-bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}

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

.field-error {
  color: #d3382b;
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #d3382b;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e6faf5;
  color: #0a7a63;
  border: 1px solid #b9efe1;
}

.form-status.error {
  display: block;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f6c6c1;
}

.map-embed {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 260px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: #101526;
  color: #b7bed1;
  margin-top: auto;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
}

.footer-grid p {
  color: #8790a8;
  font-size: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: #b7bed1;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #6f7890;
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    display: none;
    gap: 16px;
  }

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

  .nav-toggle {
    display: block;
  }

  .cta {
    padding: 36px 24px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  section {
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }

  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  :root {
    font-size: 15px;
  }

  .card,
  .hero-card {
    padding: 20px;
  }
}
