@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --brand-blue: #0ea5e9;
  --brand-blue-deep: #0b93c4;
  --brand-cyan: #0ea5e9;
  --brand-teal: #0ea5e9;
  --brand-green: #0ea5e9;
  --ink: #0f172a;
  --muted: rgba(15,23,42,0.6);
  --surface: #ffffff;
  --white: #ffffff;
  --black: #000000;

  --fs-1: 2.4rem;
  --fs-2: 1.8rem;
  --fs-3: 1.45rem;
  --fs-4: 1.1rem;
  --fs-5: 1rem;
  --fs-6: 0.9rem;

  --fw-500: 500;
  --fw-600: 600;
  --transition-1: 0.25s ease;
  --section-padding: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}

a {
  text-decoration: none;
}

input,
button {
  background: none;
  border: none;
  font: inherit;
}

button {
  text-align: left;
  cursor: pointer;
}

input {
  width: 100%;
  outline-color: var(--brand-cyan);
}

img {
  height: auto;
}

ion-icon {
  pointer-events: none;
}

html {
  font-family: "Inter", sans-serif;
  color: var(--muted);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--ink);
  padding-block: 0;
  overflow-x: hidden;
}

.theme-dark body {
  background: linear-gradient(180deg, #181818 0%, #1e1e1e 100%);
  color: #f4f4f5;
}

.container {
  padding-inline: 15px;
}

a,
button {
  transition: var(--transition-1);
}

.h1,
.h2,
.h3,
.h4 {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-weight: var(--fw-600);
}

.h1 {
  font-size: var(--fs-1);
  line-height: 1;
}

.h2 {
  font-size: var(--fs-2);
}

.h3 {
  font-size: var(--fs-3);
}

.h4 {
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
}

.btn {
  background: var(--background, var(--brand-blue-deep));
  color: var(--color, var(--white));
  font-weight: var(--fw-600);
  height: var(--height, 52px);
  padding-inline: 30px;
  border: 1px solid var(--border-color, var(--brand-blue-deep));
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.btn-primary:is(:hover, :focus-visible) {
  --background: var(--brand-blue);
  --color: var(--white);
  --border-color: var(--brand-blue);
  filter: brightness(0.96);
}

.btn-primary {
  --background: var(--brand-blue-deep);
  --color: var(--white);
  --border-color: var(--brand-blue-deep);
}

.btn-secondary {
  --height: 44px;
  --background: #ffffff;
  --color: var(--ink);
  --border-color: #e2e8f0;
}

.btn-secondary:is(:hover, :focus-visible) {
  --background: #f8fafc;
  --color: var(--ink);
  --border-color: #cbd5e1;
}

.btn-outline {
  --height: 48px;
  --background: var(--white);
  --color: var(--brand-blue-deep);
  --border-color: var(--brand-blue-deep);
  margin-inline: auto;
}

.btn-outline:is(:hover, :focus-visible) {
  --background: var(--brand-blue-deep);
  --color: var(--white);
  --border-color: var(--brand-blue-deep);
}

.section {
  padding-block: var(--section-padding);
}

.w-100 {
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.header-search {
  display: none;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-block: 9px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  z-index: 50;
  transition: var(--transition-1);
}

.header.active {
  position: fixed;
  box-shadow: 0 8px 26px rgba(8, 65, 123, 0.16);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.header .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.nav-open-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-open-btn span {
  width: 20px;
  height: 2px;
  background: var(--brand-blue-deep);
}

.header-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 20px rgba(8, 65, 123, 0.16);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-block: 12px 9px;
  z-index: 20;
}

.header-login-btn {
  --height: 40px;
  padding-inline: 20px;
  border-radius: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

.header-action-btn {
  position: relative;
  width: 58px;
  color: var(--muted);
  text-align: center;
}

.header-action-btn ion-icon {
  margin-inline: auto;
  font-size: 20px;
  margin-bottom: 2px;
}

.header-action-btn .header-action-label {
  font-size: 0.69rem;
}

.header-action-btn:is(:hover, :focus-visible) {
  color: var(--brand-blue-deep);
}

.navbar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 100%;
  max-width: 300px;
  height: 100%;
  background: var(--white);
  padding: 30px 25px;
  z-index: 40;
  visibility: hidden;
  transition: 0.3s ease;
}

.navbar.active {
  visibility: visible;
  transform: translateX(-300px);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.nav-close-btn ion-icon {
  font-size: 24px;
  color: var(--brand-blue-deep);
}

.navbar-link {
  padding-block: 11px;
  color: var(--ink);
  font-weight: 600;
}

.navbar-list > li:not(:last-child) {
  border-bottom: 1px solid #e8eef3;
}

.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
  z-index: 30;
}

.overlay.active {
  opacity: 0.55;
  pointer-events: all;
}

.hero {
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-block: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-slide-layer {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1512820790803-83ca734da794?auto=format&fit=crop&w=1600&q=80");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 5.2s ease;
  will-change: opacity, transform;
}

.hero-slide-layer.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 65, 123, 0.75), rgba(30, 164, 200, 0.28));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-subtitle {
  color: #e2f4ff;
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  max-width: 15ch;
  color: #ffffff;
  margin-bottom: 32px;
}

.service {
  padding-block: 45px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.service-item {
  max-width: 255px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8e9f2;
  border-radius: 8px;
  padding: 14px;
}

.service-item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  font-size: 1.2rem;
}

.service-item-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: var(--fw-600);
}

.service-item-text {
  font-size: 0.82rem;
}

.category {
  padding-top: 16px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.category-item {
  width: 100%;
  position: relative;
}

.category-banner {
  background: #e8f4fa;
  aspect-ratio: 2 / 2.1;
  overflow: hidden;
  border-radius: 10px;
}

.category-banner img {
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.category-item:hover .category-banner img {
  transform: scale(1.05);
}

.category-item .btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 42px;
}

.filter-btn {
  color: inherit;
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
}

.filter-btn.active {
  color: var(--brand-blue-deep);
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 20px;
  margin-bottom: 50px;
}

.product-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dce8f1;
  border-radius: 10px;
  padding: 10px;
}

.product-card .card-banner {
  position: relative;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.product-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-blue-deep);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 14px;
}

.product-card .card-badge.red {
  background: #e0526e;
}

.product-card .card-badge.green {
  background: #44af88;
}

.card-title {
  margin-bottom: 4px;
}

.card-title a {
  color: var(--ink);
}

.card-price {
  color: var(--brand-blue-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.blog .section-title {
  margin-bottom: 40px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dce8f1;
  border-radius: 14px;
  overflow: hidden;
}

.blog-card .card-banner {
  aspect-ratio: 2 / 1.25;
  overflow: hidden;
}

.blog-card .card-banner img {
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.blog-card:hover .card-banner img {
  transform: scale(1.05);
}

.blog-card .card-content {
  padding: 18px;
}

.blog-card .card-title {
  line-height: 1.4;
}

.blog-card .card-title a {
  color: var(--ink);
}

.newsletter {
  padding-bottom: 120px;
}

.newsletter-card {
  background-color: #deedf6;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 72px 15px;
  text-align: center;
}

.newsletter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 65, 123, 0.7), rgba(30, 164, 200, 0.35));
}

.newsletter-card > * {
  position: relative;
  z-index: 1;
}

.newsletter-card .card-title {
  color: #fff;
  font-size: var(--fs-2);
  margin-bottom: 18px;
}

.newsletter-card .card-text {
  color: #def2ff;
  margin-bottom: 22px;
}

.newsletter-card .input-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.newsletter-card .input-field {
  background: #fff;
  height: 56px;
  padding-inline: 50px 20px;
  border-radius: 8px;
}

.newsletter-card .input-wrapper ion-icon {
  font-size: 18px;
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  color: var(--brand-blue-deep);
}

.newsletter-card .btn {
  width: 100%;
  margin-inline: auto;
}

.footer-top {
  background: #e6f2f9;
  padding-block: var(--section-padding);
}

.footer-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer .logo {
  margin-bottom: 18px;
}

.footer .logo img {
  width: 130px;
}

.footer-text {
  line-height: 1.6;
  max-width: 420px;
}

.footer-list {
  width: 100%;
}

.footer-list-title {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-link {
  position: relative;
  color: var(--muted);
  padding-block: 6px;
}

.footer-link:is(:hover, :focus-visible) {
  color: var(--brand-blue-deep);
  transform: translateX(8px);
}

.footer-bottom {
  padding-block: 20px;
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.theme-dark .header,
.theme-dark .header-actions,
.theme-dark .navbar,
.theme-dark .service-item,
.theme-dark .product-card,
.theme-dark .blog-card,
.theme-dark .footer-top {
  background: #132030;
  border-color: #21344a;
  color: #d6e5f4;
}

.theme-dark .header.active {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.theme-dark .h1,
.theme-dark .h2,
.theme-dark .h3,
.theme-dark .h4,
.theme-dark .card-title a,
.theme-dark .service-item-title,
.theme-dark .footer-list-title,
.theme-dark .footer-link,
.theme-dark .navbar-link,
.theme-dark .header-action-btn,
.theme-dark .hero-title {
  color: #ecf5ff;
}

.theme-dark .header-action-btn .header-action-label,
.theme-dark .footer-text,
.theme-dark .service-item-text,
.theme-dark .copyright {
  color: #b4c7da;
}

@media (min-width: 480px) {
  :root {
    --fs-1: 3rem;
    --fs-2: 2rem;
  }

  .category-list > li {
    width: calc(50% - 12px);
  }

  .product-list > li {
    width: calc(50% - 10px);
  }

  .footer-list {
    width: calc(50% - 18px);
  }
}

@media (min-width: 760px) {
  .container {
    max-width: 700px;
    margin-inline: auto;
  }

  .hero {
    min-height: 760px;
  }

  .blog-list > li {
    width: calc(50% - 10px);
  }

  .newsletter-card > * {
    max-width: 520px;
    margin-inline: auto;
  }

  .newsletter-card .card-form {
    position: relative;
  }

  .newsletter-card .input-wrapper {
    margin-bottom: 0;
  }

  .newsletter-card .btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: max-content;
    border-radius: 0 8px 8px 0;
    padding-inline: 28px;
  }

  .footer-list {
    width: calc(33.33% - 20px);
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 94px;
  }

  .header {
    position: fixed;
  }

  .header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo spacer actions"
      "search search search";
    gap: 0.55rem 0.75rem;
    align-items: center;
  }

  .header .logo {
    grid-area: logo;
  }

  .header-search {
    display: block;
    grid-area: search;
    width: 100%;
    position: relative;
  }

  .header-search .input-field {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(8, 65, 123, 0.24);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 0 42px 0 14px;
    color: var(--ink);
  }

  .header-search .search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--brand-blue-deep);
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .header-actions {
    position: static;
    grid-area: actions;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    justify-content: flex-end;
  }

  .header-login-btn {
    --height: 36px;
    padding-inline: 16px;
    font-size: 0.7rem;
  }

  .nav-open-btn,
  .navbar,
  .overlay {
    display: none;
  }

  .hero {
    min-height: 66vh;
    padding-block: clamp(2.6rem, 5.5vw, 3.5rem);
  }

  .hero .container {
    padding-inline: 16px;
  }

  .hero-subtitle {
    font-size: clamp(0.82rem, 2.9vw, 1rem);
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    max-width: 11ch;
    line-height: 1.05;
  }

  .service-item {
    max-width: 100%;
  }
}

.theme-dark .header-search .input-field {
  background: rgba(19, 32, 48, 0.9);
  border-color: #2a4561;
  color: #e8f3ff;
}

@media (min-width: 992px) {
  :root {
    --fs-1: 4.1rem;
  }

  body {
    padding-block: 0;
  }

  .container {
    max-width: 950px;
  }

  .header {
    position: relative;
    border-bottom: 1px solid rgba(10, 93, 168, 0.13);
    margin-bottom: 58px;
    --navbar-row-gap: 0px;
    padding-block: 6px;
    transition: background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, padding-block 0.28s ease;
  }

  .header.active {
    position: fixed;
    inset: 0 0 auto;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    --navbar-row-gap: 0px;
  }

  .header .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    min-height: 54px;
  }

  .header .logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .header-search {
    display: block;
    position: relative;
    width: max-content;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .header-search .input-field {
    border: 1px solid rgba(8, 65, 123, 0.2);
    width: 290px;
    height: 40px;
    padding: 0 34px 0 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
  }

  .header-search .search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--brand-blue-deep);
  }

  .header .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-inline: 0;
  }

  .nav-open-btn,
  .navbar-top,
  .overlay {
    display: none;
  }

  .header-actions {
    all: unset;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 11px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .header-login-btn {
    --height: 36px;
    padding-inline: 16px;
    font-size: 0.7rem;
  }

  .navbar {
    all: unset;
    position: absolute;
    top: calc(100% + var(--navbar-row-gap));
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid rgba(10, 93, 168, 0.13);
    transition: top 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
  }

  .header.active .navbar {
    box-shadow: 0 8px 20px rgba(8, 65, 123, 0.12);
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
  }

  .navbar-list > li:not(:last-child) {
    border-bottom: none;
  }

  .navbar-link {
    font-size: 0.96rem;
    padding-block: 14px;
  }

  .navbar-link:is(:hover, :focus-visible) {
    color: var(--brand-cyan);
  }

  .category-list > li:not(:first-child, :nth-child(2)) {
    width: calc(25% - 18px);
  }

  .product-list > li {
    width: calc(33.33% - 14px);
  }

  .blog-list > li {
    width: calc(33.33% - 14px);
  }

  .theme-dark .navbar,
  .theme-dark .header.active {
    background: #132030;
  }
}

@media (min-width: 1200px) {
  :root {
    --fs-1: 5rem;
  }

  .container {
    max-width: 1150px;
  }

  .header-search .input-field {
    width: 350px;
  }

  .product-list > li {
    width: calc(25% - 15px);
  }

  .footer-brand {
    width: calc(40% - 20px);
  }

  .footer-list {
    width: calc(20% - 20px);
  }
}
