/* Typography & base */
:root {
  --bg: #ffffff;
  --bg-muted: #f5f5f7;
  --border-subtle: #e2e2e7;
  --text: #111111;
  --text-muted: #555560;
  --accent: #111827;
  --accent-soft: #e5e7eb;
  --accent-strong: #111827;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.06);
  --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.04);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

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

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header {
  max-width: 640px;
}

.section-header h2 {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.gap {
  gap: 1.25rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.logo .accent {
  color: var(--accent-strong);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-muted);
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  flex-direction: column;
  gap: 0.18rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--bg);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  max-width: 320px;
}

.hero-card h2 {
  font-size: 1.3rem;
  margin: 0.3rem 0 0.75rem;
}

.hero-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-card li + li {
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
}

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

.btn-outline {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text);
  background: #ffffff;
}

.btn-outline:hover {
  border-color: rgba(15, 23, 42, 0.38);
}

.btn-ghost {
  background: #f9fafb;
  color: var(--text);
}

.btn-ghost:hover {
  background: #e5e7eb;
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Products */
.product-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-image {
  border-radius: var(--radius-md);
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-muted);
}

.product-image.placeholder {
  background-image: linear-gradient(
    135deg,
    #f3f4f6 0%,
    #e5e7eb 45%,
    #f3f4f6 100%
  );
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-price {
  font-weight: 600;
  color: var(--accent-strong);
}

.product-description {
  font-size: 0.95rem;
}

.section-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Testimonials */
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin: 0 0 0.4rem;
}

.testimonial-name {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Contact section */
.contact-highlight {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

.link-underline {
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
  padding-bottom: 0.1rem;
}

.link-underline:hover {
  border-color: rgba(15, 23, 42, 0.4);
}

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

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.checkout-form input,
.checkout-form select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.checkout-form input:focus,
.checkout-form select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 1px #11182711;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Checkout page */
.checkout-main {
  flex: 1;
  padding: 3.5rem 0 4rem;
}

.checkout-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.checkout-summary h1 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.summary-title {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #9ca3af;
}

.summary-product {
  margin: 0.25rem 0 0;
}

.summary-price {
  margin: 0;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.summary-total {
  margin-top: 0.65rem;
  font-weight: 600;
}

.summary-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.checkout-form-card h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-form h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: 0.97rem;
}

.fine-print {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.75rem 0;
  background: #ffffff;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-right a {
  color: var(--text-muted);
}

.footer-right a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-content: flex-start;
  }

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

  .checkout-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-container {
    padding-inline: 1rem;
  }

  .main-nav {
    display: none; /* Keep simple; you can add JS to toggle */
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
