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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-primary: #111827;
  --color-primary-hover: #374151;
  --color-accent: #2563eb;
  --color-border: #e5e7eb;
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 16px 44px rgba(17, 24, 39, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-small {
  padding: 6px 16px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.btn-small:hover {
  background: var(--color-border);
}

.btn-primary {
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.btn-ghost {
  padding: 12px 28px;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-muted);
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-diamond {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  position: relative;
}

.hero-diamond::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 56px;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(96, 165, 250, 0.42) 0%,
    rgba(59, 130, 246, 0.28) 34%,
    rgba(129, 140, 248, 0.2) 62%,
    rgba(129, 140, 248, 0) 100%
  );
  filter: blur(2px);
  transform-origin: center;
  animation: diamondShadow 7.6s cubic-bezier(0.38, 0.08, 0.62, 0.92) infinite;
}

.hero-diamond-core {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #eef5ff 12%, #bed5ff 48%, #6ea1ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -12px 20px rgba(37, 99, 235, 0.18),
    0 8px 20px rgba(37, 99, 235, 0.24);
  overflow: hidden;
  animation: diamondFloat 7.6s cubic-bezier(0.38, 0.08, 0.62, 0.92) infinite;
}

.hero-diamond-core::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
}

.hero-diamond-core::after {
  content: "";
  position: absolute;
  top: -32%;
  left: -120%;
  width: 70%;
  height: 165%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 42%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.2) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(14deg);
  animation: diamondShine 20s linear infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-contact {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.hero-contact a,
footer a {
  color: var(--color-text);
  text-underline-offset: 2px;
}

.hero-contact a:hover,
footer a:hover {
  color: var(--color-primary-hover);
}

@keyframes diamondFloat {
  0% {
    transform: translateY(-10px) rotate(45deg);
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.15));
  }
  50% {
    transform: translateY(4px) rotate(45deg);
    filter: drop-shadow(0 15px 26px rgba(37, 99, 235, 0.25));
  }
  100% {
    transform: translateY(-10px) rotate(45deg);
    filter: drop-shadow(0 8px 14px rgba(37, 99, 235, 0.15));
  }
}

@keyframes diamondShadow {
  0% {
    transform: translateX(-50%) scale(0.76, 0.84);
    opacity: 0.34;
  }
  50% {
    transform: translateX(-50%) scale(1.34, 1.06);
    opacity: 0.68;
  }
  100% {
    transform: translateX(-50%) scale(0.76, 0.84);
    opacity: 0.34;
  }
}

@keyframes diamondShine {
  0%,
  88% {
    left: -120%;
    opacity: 0;
  }
  90% {
    opacity: 0.85;
  }
  97% {
    left: 150%;
    opacity: 0.9;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

.trust-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip span {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #334155;
  padding: 6px 12px;
}

/* Features */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Closing CTA */
.closing {
  padding: 80px 0;
  text-align: center;
}

.closing h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.closing p {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* Contact modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: min(100%, 460px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 24px;
  position: relative;
}

.modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--color-muted);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}

#contact-form {
  display: grid;
  gap: 8px;
}

#contact-form label {
  font-size: 0.88rem;
  color: #374151;
  margin-top: 4px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #93c5fd;
  outline: 2px solid #dbeafe;
}

.btn-full {
  width: 100%;
  margin-top: 10px;
}

.form-status {
  min-height: 18px;
  color: var(--color-muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

footer p {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin: 4px 0;
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-diamond {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .features {
    padding: 48px 0;
  }

  .closing {
    padding: 48px 0;
  }

  .trust-strip {
    gap: 8px;
  }

  .trust-strip span {
    font-size: 0.78rem;
  }

  .modal {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-diamond,
  .hero-diamond-core::after {
    animation: none;
  }
}
