:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --accent: #1e88e5;
  --accent-soft: rgba(30, 136, 229, 0.08);
  --border: #e0e4ee;
  --radius: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 228, 238, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding-bottom: 2px;
  color: var(--muted);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* Hero */

.hero {
  padding-top: 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.hero-card p {
  margin-bottom: 0.75rem;
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(30, 136, 229, 0.35);
}

.btn-primary:hover {
  background: #1669b5;
  box-shadow: 0 16px 40px rgba(30, 136, 229, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-full {
  width: 100%;
}

/* Grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-outline {
  background: transparent;
  border: 1px solid var(--border);
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.metrics-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.metrics-card span {
  font-weight: 700;
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Fade animation */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-alt);
    position: absolute;
    top: 64px;
    right: 0;
    width: 200px;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}
