:root{
  --bg:#041018;
  --bg-2:#081f2b;
  --card:#0d1e26;
  --card-strong:#112a35;
  --accent:#4ef2d1;
  --accent-2:#7cc8ff;
  --muted:#b5c8d0;
  --text:#edf9fb;
  --shadow:rgba(2, 17, 25, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #020d15 0%, #071d29 100%);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { transition: all 0.25s ease; }

.index-bg, body.index-bg {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.index-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(550px 350px at 12% 18%, rgba(78,242,209,0.12), transparent 26%),
    radial-gradient(580px 380px at 80% 72%, rgba(124,200,255,0.12), transparent 28%),
    linear-gradient(180deg, #031019 0%, #071d29 100%);
  filter: saturate(110%);
}

.index-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.container {
  width: min(100%, 1440px);
  max-width: none;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 20px 0 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.logo:hover { opacity: 0.9; }

.nav {
  float: right;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a,
.main-nav a {
  color: rgba(237, 249, 251, 0.82);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.main-nav a:hover {
  color: var(--accent);
}

.nav .cta,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8efaf0);
  color: #032730;
  box-shadow: 0 10px 30px rgba(78, 242, 209, 0.25);
}

.nav .cta {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
}

.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: flex;
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
  width: 100%;
}

.hero-text,
.hero-media {
  flex: 1;
}

.hero-text {
  padding-right: 10px;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  margin: 0 0 18px;
  letter-spacing: -0.06em;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(78, 242, 209, 0.35);
}

.lead {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  padding-inline: 22px;
}

.btn-outline {
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.welcome {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-media {
  text-align: right;
}

.hero-media img {
  width: min(100%, 640px);
  max-width: none;
  margin-left: auto;
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(2, 12, 18, 0.8);
  border: 1px solid rgba(142,250,240,0.25);
}

.site-footer {
  padding: 26px 0 40px;
  text-align: center;
  color: rgba(255,255,255,0.65);
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.prod-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(9,24,31,0.78));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 16px 36px rgba(1, 12, 18, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.prod-card:link,
.prod-card:visited {
  color: var(--text);
  text-decoration: none;
}

.prod-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.prod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78,242,209,0.4);
  box-shadow: 0 22px 46px rgba(8, 27, 35, 0.45);
}

.prod-card img {
  width: 100%;
  height: 46%;
  min-height: 0;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(3, 16, 24, 0.45);
}

.prod-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 10px 0 0;
  font-size: 1.02rem;
  color: var(--text);
}

.prod-card .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.prod-card .card-specs {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.prod-card .card-specs span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.prod-card .card-specs strong {
  color: rgba(237,249,251,0.72);
  font-weight: 600;
}

.prod-card .meta {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.prod-card .tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(78,242,209,0.12);
  color: var(--accent);
  border: 1px solid rgba(78,242,209,0.2);
  font-weight: 700;
}

@media (max-width: 900px) {
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .prod-card {
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .prod-grid {
    grid-template-columns: 1fr;
  }

  .prod-card {
    width: min(100%, 360px);
    justify-self: center;
  }
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(78,242,209,0.08);
  border: 1px solid rgba(78,242,209,0.2);
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.feature-section,
.service-panel {
  position: relative;
  z-index: 2;
  padding: 18px 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(9, 23, 31, 0.7));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(78,242,209,0.12);
  border: 1px solid rgba(78,242,209,0.24);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p,
.service-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-section {
  padding-top: 24px;
}

.align-left {
  text-align: left;
}

.service-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(78,242,209,0.08), rgba(124,200,255,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 28px;
}

.service-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 16px;
}

.mini-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
}

.mini-box strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
}

.mini-box span {
  color: var(--muted);
  font-size: 0.82rem;
}

.carousel-shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  margin-top: -10px;
}

.carousel {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #061b24;
}

.carousel-slide {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: clamp(20px, 5vw, 80px);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 12, 18, 0.82), rgba(1, 12, 18, 0.24), rgba(1, 12, 18, 0.52));
}

.carousel-content {
  position: relative;
  z-index: 1;
  max-width: min(760px, 62vw);
  padding: 32px 40px;
}

.carousel-content h2 {
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.96;
  margin: 0 0 16px;
  letter-spacing: -0.06em;
}

.carousel-content p {
  color: rgba(237, 249, 251, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 24px;
}

.carousel-empty {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(9, 25, 31, 0.8);
  border: 1px solid rgba(78,242,209,0.28);
  color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-one { top: 12%; right: 12%; }
.badge-two { bottom: 10%; left: 8%; animation-delay: 1s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: min(100%, 430px);
  padding: 30px 26px;
  border-radius: 22px;
  background: rgba(9, 23, 31, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(1, 12, 18, 0.45);
  backdrop-filter: blur(10px);
}

.auth-card h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.auth-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.auth-form label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(78,242,209,0.75);
  box-shadow: 0 0 0 4px rgba(78,242,209,0.12);
}

@media (max-width: 900px) {
  .hero-grid, .landing-grid, .service-wrap {
    flex-direction: column;
  }

  .service-wrap {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 100vh;
  }

  .carousel-slide,
  .carousel,
  .carousel-shell {
    min-height: 100vh;
    height: 100vh;
  }

  .carousel-content {
    max-width: 100%;
    padding: 24px 16px;
  }

  .hero-media {
    text-align: center;
  }

  .hero-media img {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 18px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .nav {
    display: none;
  }

  .carousel-shell,
  .carousel,
  .carousel-slide {
    min-height: 100vh;
    height: 100vh;
  }

  .service-boxes {
    grid-template-columns: 1fr;
  }
}
