:root {
  --bg-0: #f7f7ff;
  --bg-1: #f6fffb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);

  --accent: #7c3aed;
  --accent-2: #22c55e;
  --accent-3: #f97316;

  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 12% 12%, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0) 55%),
    radial-gradient(900px 560px at 88% 18%, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-logo { height: 42px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}
.site-nav a:hover { background: rgba(15, 23, 42, 0.05); color: var(--text); }
.site-nav a.active { background: rgba(124, 58, 237, 0.12); color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1.5rem;
    right: 1.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { border-radius: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
}
.btn-primary:hover { border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* Hero */
.hero {
  width: min(1180px, calc(100% - 3rem));
  margin: 1.25rem auto 0;
  position: relative;
  min-height: min(720px, 92vh);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-carousel { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 18% 18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, rgba(15, 23, 42, 0.70) 0%, rgba(15, 23, 42, 0.22) 55%, rgba(15, 23, 42, 0.62) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(3.25rem, 7vw, 5.5rem);
  color: #ffffff;
}
.hero-kicker {
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.92;
  margin: 0 0 0.9rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero p {
  max-width: 58ch;
  margin: 0 0 1.8rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  opacity: 0.92;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero-dot.is-active { background: #ffffff; transform: scale(1.15); }

@media (max-width: 720px) {
  .hero { border-radius: 18px; min-height: min(660px, 92vh); }
  .hero-content { padding: 3.25rem 1.25rem 4.5rem; }
}

/* Sections */
.section { padding: clamp(3.25rem, 5.5vw, 5.25rem) 0; }
.section-muted { background: rgba(255, 255, 255, 0.35); border-top: 1px solid rgba(15, 23, 42, 0.06); border-bottom: 1px solid rgba(15, 23, 42, 0.06); }

.section-head { display: grid; gap: 0.55rem; margin-bottom: 1.35rem; }
.section-head.center { text-align: center; justify-items: center; }
.kicker {
  margin: 0;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.72);
}
.title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.subtitle {
  margin: 0;
  max-width: 76ch;
  color: var(--muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-strong);
}
.card-body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.35rem;
}
.card-body h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2.25rem); }
  .product-grid { grid-template-columns: 1fr; }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.65);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-content { display: grid; gap: 0.9rem; }
.split-content p { margin: 0; color: var(--muted); }

.checklist {
  margin: 0.35rem 0 0.9rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.checklist li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: rgba(15, 23, 42, 0.84);
}
.checklist li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  margin-top: 0.4rem;
  flex: none;
}

@media (max-width: 980px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.review {
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 100%;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
}
.review-name { font-weight: 850; letter-spacing: -0.01em; }
.review-role { margin-top: 0.1rem; color: var(--muted); font-size: 0.9rem; }
.stars { color: #f59e0b; letter-spacing: 0.12em; font-size: 0.95rem; margin-bottom: 0.65rem; }
.review p { margin: 0; color: rgba(15, 23, 42, 0.78); }

@media (max-width: 1080px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* Message */
.message-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.1rem;
  align-items: stretch;
}
.message-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.65);
}
.message-media img { width: 100%; height: 100%; object-fit: cover; }

.form {
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: grid; gap: 0.35rem; }
.label { font-size: 0.9rem; color: rgba(15, 23, 42, 0.78); font-weight: 700; }
.input, .textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.88);
  outline: none;
  font: inherit;
}
.textarea { resize: vertical; }
.input:focus, .textarea:focus { border-color: rgba(124, 58, 237, 0.55); }
.form-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 980px) {
  .message-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Page hero (about/contact) */
.page-hero {
  width: min(1180px, calc(100% - 3rem));
  margin: 1.25rem auto 0;
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.70) 0%, rgba(15, 23, 42, 0.18) 55%, rgba(15, 23, 42, 0.62) 100%);
}
.page-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: 2.25rem;
  color: #ffffff;
}
.page-hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -0.02em; }
.page-hero p { margin: 0; max-width: 70ch; opacity: 0.92; }

/* Footer */
.site-footer {
  padding-top: 3rem;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.40);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
}
.footer-logo { height: 42px; width: auto; }
.footer-desc { margin: 0.75rem 0 1rem; color: var(--muted); }
.footer-title { margin: 0 0 0.8rem; font-size: 1rem; }
.footer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; color: rgba(15, 23, 42, 0.84); }
.footer-list a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-list a:hover { border-bottom-color: rgba(15, 23, 42, 0.25); }

.social { display: flex; gap: 0.6rem; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
}
.social svg { width: 18px; height: 18px; fill: rgba(15, 23, 42, 0.86); }
.social a:hover { background: rgba(15, 23, 42, 0.09); }

.footer-bottom {
  padding: 1rem 0 1.25rem;
  background: rgba(15, 23, 42, 0.03);
}
.footer-copy { margin: 0; text-align: center; color: rgba(15, 23, 42, 0.74); font-size: 0.9rem; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr; }
}
