
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --soft: #f8fafc;
  --card-bg: #ffffff;
  --primary: #5252ff;
  --primary-dark: #3a38ff;
  --secondary: #8b5cf6;
  --ring: rgba(0,0,0,.08);
  --shadow-sm: 0 1px 2px var(--ring);
  --shadow-md: 0 4px 6px -1px var(--ring), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
html {
  scroll-behavior: smooth;
}


html.dark{
  --bg: #111827;
  --text: #e5e7eb;
  --muted: #a3a3a3;
  --border: #374151;
  --soft: #1f2937;
  --card-bg: #1f2937;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a78bfa;
  --ring: rgba(255,255,255,.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, opacity .3s ease; /* added opacity transition */
  opacity: 1;
}

body.fade-init {
  opacity: 0; /* hidden before JS kicks in */
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding: 2rem 0;
}
.why-section {
  margin-left: -90px; /* adjust as needed */
}


.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  
}

.h1 {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 0.25rem 0;
}

.h2 {
  font-size: 2.25rem;
  margin: 2rem 0;
}

.h3 {
  font-size: 1.5rem;
  margin: 0;
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-bottom .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.brand-logo-img {
  height: 45px;
  width: auto;
}

.main-nav {
  display: none;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width .3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.main-nav a.active, .main-nav a:hover {
  color: var(--text);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: .75rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* Dark mode switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: var(--border);
  border-radius: 999px;
  transition: background-color .3s ease;
}
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--card-bg);
  border-radius: 999px;
  transition: transform .3s ease, background-color .3s ease;
}
.switch input:checked + .slider {
  background-color: var(--primary);
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Buttons */
.btn {
   
  border-radius: 0.6rem;
  padding: 0.5rem 0.5rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
 
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-link {
  background-color: transparent;
  border: none;
  color: var(--primary);
  font-weight: 500;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}
.btn-row {
  display: flex; /* keeps buttons in a row */
  flex-wrap: wrap; /* optional, for smaller screens */
  gap: 1rem; /* space between buttons */
  margin-top: 2rem; /* adds space above the button row */
}

.fab {
  /* Inherit everything from .btn + .btn-primary */
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;

  /* Floating overrides */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  cursor: pointer;
  text-align: center;

  /* Shadow */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.fab:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); /* same as .btn-primary:hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}



/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
  padding: 2rem;        /* makes inside spacing larger */
  min-width: 300px;     /* ensures wider box */
  min-height: 200px; 
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-copy {
  padding: 2rem;
}

.card-media {
  border-radius: 0 1rem 1rem 0;
  overflow: hidden;
}

.card-media img {
  height: 100%;
  object-fit: cover;
}

.card-header {
  margin-bottom: 1rem;
}

.card-body {
  padding-bottom: 1.5rem;
}

.card-footer {
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

/* Grids */
.grid {
  display: grid;
  gap: 2rem;
}
.grid.two {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
}
.grid.three {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
.grid.four {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
}
@media (min-width: 992px) {
  .product {
    flex-direction: row;
  }
}
.product .card-media {
  flex-grow: 1;
}

/* Hero */
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  padding-block: 2rem;
}

.hero-points {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-points span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-media {
  position: relative;
  min-height: 250px;
}

.media-frame {
  position: relative;
  padding-top: 1%;
  border-radius: 1rem;
  overflow: hidden;
}
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: float 4s ease-in-out infinite;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text);
  border: 1px solid transparent;
}
.badge.outline {
  background-color: transparent;
  border: 1px solid var(--border);
}
.badge-float {
  position: absolute;
  z-index: 10;
  transform: translateZ(0);
}
.badge-float.tl {
  top: 1rem;
  left: 1rem;
}
.badge-float.br {
  bottom: 1rem;
  right: 1rem;
}

/* Product features list */
.feature-list {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin-block: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background-color: var(--soft);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  transition: background-color .3s ease;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media(min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.5fr 0.7fr; /* widen logo column, shrink navigate */
    column-gap: 2rem; /* space between columns */
  }

  /* Extra breathing space after logo */
  .footer-grid > div:first-child {
    margin-right: 8rem;
  }
}
.footer-brand {
  margin-bottom: .75rem;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: .5rem;
}

.foot-title {
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--text);
}

.footer-contact {
  display: grid;
  gap: .75rem;
  color: var(--muted);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: .5rem;
  word-break: break-word;
}
.footer-contact a:hover {
  color: var(--text);
}
/* Sub-links under Products */
.footer-links .sub-links {
  list-style: none;
  margin-top: 0.25rem;
  margin-left: 1rem;  /* indentation */
  display: grid;
  gap: .35rem;
}

.footer-links .sub-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links .sub-links a:hover {
  color: var(--text);
}


.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.foot-inline {
  display: flex;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Icons */
.icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-repeat: no-repeat;
  background-size: contain;
  filter: var(--icon-filter);
}
:root{ --icon-filter: none; }
html.dark{ --icon-filter: invert(1); }


/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form input, .form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background-color: var(--soft);
  color: var(--text);
  margin-top: 0.25rem;
  transition: border-color .3s ease, background-color .3s ease;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--card-bg);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 1rem;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 0.5rem;
  margin-top: 1rem;
  text-align: center;
}
html.dark .form-success {
  background-color: #0c4a6e;
  color: #bae6fd;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-lines {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  color: var(--muted);
}

.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Tables */
.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.specs-table th, .specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background-color: var(--soft);
  font-weight: 600;
  color: var(--text);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tbody tr:hover {
  background-color: var(--soft);
}

/* Carousel wrapper */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

/* Images */
.carousel-images {
  position: relative;
}

.carousel-images img {
  width: 80%;
  display: none;
  border-radius: 1rem;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 7rem;
}

.carousel-images img.active {
  display: block;
  opacity: 1;
  position: relative;
}

/* Dots (indicators) */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: rgba(255, 255, 255, 1);
}

.product-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--card-bg);
}

.product-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-tile h3 {
  margin: 1rem 0;
  color: var(--text);
}

.product-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}