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

:root {
  --navy: #102a4a;
  --blue: #1a6fc4;
  --light-blue: #e8f1fa;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-600: #475569;
  --gray-800: #1e293b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── Navigation ── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 100;
}

nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.logo img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, #1a3f6a 100%);
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--light-blue);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: #1560ad;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Sections ── */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-subtitle {
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Services ── */
#services {
  background: var(--gray-50);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ── ExactFlat ── */
#exactflat {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-text .section-label,
.split-text .section-title,
.split-text .section-subtitle {
  margin-bottom: 1rem;
}

.split-text .section-subtitle {
  max-width: none;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-600);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.exactflat-visual {
  background: linear-gradient(135deg, var(--light-blue) 0%, #d0e3f7 100%);
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.exactflat-visual svg {
  width: 100%;
  max-width: 280px;
}

/* ── About ── */
#about {
  background: var(--gray-50);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* ── Contact ── */
#contact {
  background: var(--navy);
  color: var(--white);
}

#contact .section-label {
  color: var(--light-blue);
}

#contact .section-title {
  color: var(--white);
}

#contact .section-subtitle {
  color: rgba(232, 241, 250, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(232, 241, 250, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

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

.contact-form .btn-primary {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: rgba(232, 241, 250, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--white);
}

/* ── Footer ── */
footer {
  background: #0b1f36;
  color: rgba(232, 241, 250, 0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a {
  color: rgba(232, 241, 250, 0.7);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .hero .btn {
    display: block;
    text-align: center;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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