:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 0.96rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --text-lg: clamp(1.05rem, 1rem + 0.5vw, 1.2rem);
  --text-xl: clamp(1.7rem, 1.15rem + 1.2vw, 2.6rem);
  --text-2xl: clamp(2.3rem, 1.4rem + 2.8vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f9;
  --color-border: rgba(18, 33, 58, 0.10);
  --color-text: #16213a;
  --color-text-muted: #5f6f88;
  --color-primary: #0f6f8d;
  --color-primary-hover: #0c5d76;
  --color-primary-soft: rgba(15, 111, 141, 0.10);
  --color-inverse: #ffffff;

  --shadow-sm: 0 10px 22px rgba(20, 34, 61, 0.06);
  --shadow-md: 0 20px 42px rgba(20, 34, 61, 0.10);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --content: 1180px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  --color-bg: #0c1320;
  --color-surface: #111c2d;
  --color-surface-2: #162336;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #edf4ff;
  --color-text-muted: #a9b7cd;
  --color-primary: #39a4c8;
  --color-primary-hover: #2f93b5;
  --color-primary-soft: rgba(57, 164, 200, 0.12);
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(60, 151, 188, 0.08), transparent 28%),
    radial-gradient(circle at right bottom, rgba(15, 111, 141, 0.05), transparent 24%),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.section {
  padding: clamp(58px, 8vw, 112px) 0;
}

.section-soft {
  background: linear-gradient(180deg, transparent, rgba(15, 111, 141, 0.03));
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-10);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.16rem;
}

p {
  color: var(--color-text-muted);
  max-width: 68ch;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 10px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .header {
  background: rgba(12, 19, 32, 0.78);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #29a4c8);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.18rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-text small {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background:
    linear-gradient(rgba(10, 18, 30, 0.52), rgba(10, 18, 30, 0.52)),
    url("../images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-bg {
  display: none;
}

.intro-section {
  padding: 48px 0 30px;
  background: transparent;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.intro-copy {
  position: relative;
  z-index: 1;
}

.intro-title {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 1.06;
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.intro-text {
  margin-top: 18px;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  max-width: 44rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-8);
}

.intro-stats {
  display: grid;
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 20px;
}

.light-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.light-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.light-card span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-media {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}

.about-media img {
  border-radius: var(--radius-lg);
  min-height: 520px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.about-badge-box {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 33, 58, 0.08);
  border-radius: 22px;
  padding: 18px 20px;
  max-width: 280px;
  box-shadow: var(--shadow-sm);
}

.about-badge-box strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.about-badge-box p {
  font-size: 0.98rem;
  color: var(--color-text-muted);
}

.about-copy p + p {
  margin-top: var(--space-4);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: var(--space-6);
}

.feature-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.contact-card,
.form-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: 0.28s ease;
}

[data-theme="dark"] .card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .light-card {
  background: rgba(17, 28, 45, 0.92);
}

.card:hover,
.contact-card:hover,
.form-card:hover,
.light-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hover-card {
  position: relative;
  overflow: visible;
  min-height: 100%;
}

.card-main {
  position: relative;
  z-index: 1;
}

.compact-main h3 {
  margin-bottom: 10px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hover-panel {
  position: absolute;
  top: 18px;
  left: calc(100% + 14px);
  width: 290px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 111, 141, 0.18);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: 0.28s ease;
  z-index: 20;
}

[data-theme="dark"] .hover-panel {
  background: rgba(17, 28, 45, 0.98);
}

.hover-card:hover .hover-panel,
.hover-card.active-panel .hover-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hover-panel-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.feature-tab {
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-bottom: 8px;
  transition: 0.22s ease;
}

.feature-tab:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.feature-tab.active {
  background: var(--color-primary);
  color: #fff;
}

.feature-content {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.feature-content.active {
  display: block;
}

.products {
  background: linear-gradient(180deg, transparent, rgba(15, 111, 141, 0.04));
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.p1 {
  background-image: linear-gradient(rgba(6, 15, 28, 0.2), rgba(6, 15, 28, 0.25)), url("../images/product1.jpg");
}

.p2 {
  background-image: linear-gradient(rgba(6, 15, 28, 0.2), rgba(6, 15, 28, 0.25)), url("../images/product2.jpg");
}

.p3 {
  background-image: linear-gradient(rgba(6, 15, 28, 0.2), rgba(6, 15, 28, 0.25)), url("../images/product3.jpg");
}

.product-content {
  padding: 22px;
  position: relative;
}

.inside-panel {
  top: auto;
  left: 0;
  width: 100%;
  margin-top: 18px;
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: none;
}

.hover-card:hover .inside-panel,
.hover-card.active-panel .inside-panel {
  display: block;
}

.contact-section {
  padding-top: 40px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: 0.96rem;
}

form {
  display: grid;
  gap: 15px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 14px;
  padding: 13px 15px;
  outline: none;
  transition: 0.22s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 111, 141, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  will-change: opacity, transform, filter;
}

.js .reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 1180px) {
  .card-grid,
  .about-grid,
  .contact-grid,
  .intro-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .hover-panel {
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    margin-top: 18px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .hover-card:hover .hover-panel,
  .hover-card.active-panel .hover-panel {
    display: block;
  }

  .hero {
    min-height: 54vh;
  }

  .about-media,
  .about-media img {
    min-height: 380px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    min-height: 72px;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .brand-text small {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 50px 0;
  }

  .hero {
    min-height: 42vh;
  }

  .intro-section {
    padding: 34px 0 20px;
  }

  .intro-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .brand-text small {
    font-size: 10px;
  }

  .about-badge-box {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .delay-1,
  .delay-2,
  .delay-3,
  .delay-4 {
    transition-delay: 0s;
  }
}