/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #0a6e72;
  --accent-light: #0d8a8f;
  --accent-bg: #e8f4f4;
  --text: #1a1a2e;
  --text-light: #4a4a5e;
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --border: #e2e6ea;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --radius: 8px;
  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography ──────────────────────────────── */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

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

/* ── Utils ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 640px;
}

.section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: var(--shadow);
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-bg);
}

.nav.scrolled {
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.lang-switch {
  margin-left: 0.5rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.lang-switch:hover {
  border-color: var(--accent);
  background: #ddf0f0;
}

/* ── Hamburger (mobile) ─────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 600px;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-shape {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--accent-bg);
  z-index: 0;
}

@media (min-width: 768px) {
  .hero-shape {
    top: -160px;
    right: -100px;
    width: 700px;
    height: 700px;
  }
}

/* ── Services Grid ──────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

.service-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-title {
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── AI Features Grid ───────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  position: relative;
  padding-left: 3.5rem;
}

.feature-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "SF Mono", "Fira Code", monospace;
  letter-spacing: 0.05em;
}

.feature-title {
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Trust Grid ─────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 600px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  text-align: center;
}

.trust-icon {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.trust-title {
  margin-bottom: 0.5rem;
}

.trust-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

/* ── Contact ────────────────────────────────── */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.contact-link:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,110,114,0.12);
}

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

.cf-turnstile {
  margin-bottom: 0.5rem;
}

.form-error {
  display: none;
  font-size: 0.85rem;
  color: #c62828;
  margin-bottom: 0.25rem;
}

.form-error.visible {
  display: block;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* ── Footer ─────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* ── Mobile Nav Open ────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 0.85rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }

  .lang-switch {
    margin: 1rem 0 0;
    align-self: flex-start;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Hamburger animation */
  .nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Scroll Fade Animation ──────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in-1 { transition-delay: 0ms; }
.fade-in-2 { transition-delay: 100ms; }
.fade-in-3 { transition-delay: 200ms; }
.fade-in-4 { transition-delay: 300ms; }

/* ── Print ──────────────────────────────────── */
@media print {
  .nav, .hero-shape { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  .section { padding: 2rem 0; }
  body { font-size: 13px; }
}
