:root {
  --bg: #f8f9fa;
  --fg: #09090b;
  --card: #ffffff;
  --muted: #71717a;
  --line: #e4e4e7;
  --primary: #d4ff70;
  --primary-fg: #111827;
  --secondary: #e8eaee;
  --yellow: #ffc107;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-word {
  width: 128px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #71717a;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: #0f172a;
}

.btn-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

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

.btn-gradient {
  background: linear-gradient(90deg, var(--primary), var(--yellow));
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.62);
}

.hero-content {
  position: relative;
  text-align: center;
  margin-top: 56px;
}

.hero-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.hero-apple {
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.hero-word {
  width: 240px;
  height: 210px;
  object-fit: contain;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero-highlight {
  color: var(--primary);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 10px 0 0;
}

.hero-copy {
  margin: 16px auto 0;
  max-width: 760px;
  color: #e5e7eb;
  font-size: clamp(1rem, 2.1vw, 1.4rem);
  line-height: 1.5;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--card);
}

.section-title {
  margin: 0 0 30px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  text-align: center;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  margin: 14px 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.chip {
  display: inline-block;
  background: var(--secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.feature-card {
  background: var(--bg);
  border-radius: 18px;
  border: 2px solid transparent;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-size: 1.4rem;
}

.feature-card h3 {
  margin: 0 0 8px;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 18px;
  border: 2px solid transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-badge {
  width: fit-content;
  background: var(--secondary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.4;
}

.center-actions {
  margin-top: 30px;
  text-align: center;
}

.product-buy {
  text-align: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 14px;
}

.about-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.about-grid img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.about-grid img:nth-child(6) {
  grid-column: span 2;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-stars {
  color: #f5b301;
  letter-spacing: 1px;
}

.testimonial-copy {
  color: var(--muted);
  line-height: 1.55;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 800;
}

.faq-wrap {
  max-width: 820px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
}

.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.map-wrap iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.contact-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.contact-list p {
  margin: 0;
  font-size: 1.06rem;
}

.site-footer {
  background: #fff;
  border-top: 2px solid var(--line);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.footer-grid h4 {
  margin: 0;
}

.footer-bottom {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .features-grid,
  .product-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .hero-apple {
    width: 120px;
    height: 120px;
  }

  .hero-word {
    width: 170px;
    height: 140px;
  }

  .about-grid,
  .contact-grid,
  .footer-grid,
  .features-grid,
  .product-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-rows: repeat(8, 200px);
  }

  .about-grid img:nth-child(1),
  .about-grid img:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Dashboard styles */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.side-nav button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.side-nav button.active {
  border-color: #111827;
  background: #f5f7fb;
  color: #111827;
}

.main {
  padding: 20px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.panel h1,
.panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 2.2rem;
  line-height: 1.1;
}

.meta {
  color: var(--muted);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  background: #111827;
  color: #fff;
}

.btn:hover {
  opacity: 0.9;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
}

#productForm,
#transactionForm,
#testimonialForm {
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-span-2 {
  grid-column: span 2;
}

.field label {
  font-size: 0.93rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #8ab4ff;
  box-shadow: 0 0 0 3px rgba(33, 102, 235, 0.15);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.summary .item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fafcff;
}

.summary .item strong {
  display: inline-block;
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.92rem;
  color: #1f2937;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.actions button.delete {
  border-color: #ffd3d9;
  color: #d7263d;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .field-span-2 {
    grid-column: auto;
  }
}
