/* Repellio Official Site Design System */

:root {
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;
  --color-accent-glow: rgba(2, 132, 199, 0.4);
  --color-electric-blue: #38bdf8;
  --color-bg-light: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-dark: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #f8fafc;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  box-shadow: var(--shadow-md), 0 0 15px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(2, 132, 199, 0.4);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at top right, #f0f9ff 0%, #ffffff 50%, #f8fafc 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid #bae6fd;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: var(--transition);
  background: #ffffff;
}

.hero-product-image:hover {
  transform: scale(1.02);
}

.hero-proof-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.proof-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  box-shadow: var(--shadow-sm);
}

.proof-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Mobile Breakpoint for Hero Acceptance Rules */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-content-wrapper {
    display: contents;
  }

  .hero-intro-wrapper {
    order: 1;
    text-align: center;
  }

  .hero-badge-tag {
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    order: 2;
    width: 100%;
  }

  .hero-product-image {
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-cta-wrapper {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .hero-cta-wrapper .btn {
    width: 100%;
  }

  .hero-proof-wrapper {
    order: 4;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0;
  }
}

/* Section Headings */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Content Grid & Feature Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.content-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  background: #ffffff;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: #e0f2fe;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Card Components */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}

/* Pest Tags Grid */
.pest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pest-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.pest-card svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

/* Specifications Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.spec-table th, .spec-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.spec-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--color-primary);
  width: 40%;
}

.spec-table td {
  color: var(--color-text-muted);
}

/* FAQ Accordion */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item[open] {
  border-color: #7dd3fc;
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Guarantee / Direct Purchase Banner */
.guarantee-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.guarantee-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.guarantee-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.guarantee-text {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-electric-blue);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .grid-4, .pest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }
  .pest-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
