/* ========================================
   Lebux - Laboratory Website
   Base Styles, Reset, Variables, Layout
   ======================================== */

/* --- Google Fonts: Satoshi via Fontshare --- */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  color: var(--dark-blue);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- CSS Variables (Design Tokens from Figma) --- */
:root {
  /* Colors */
  --primary: #5454FF;
  --primary-hover: #4040E0;
  --dark-blue: #021936;
  --green: #0BC270;
  --white: #FFFFFF;
  --black: #000000;
  --gray-bg: #F4F4F4;
  --gray-text: #666666;
  --gray-light: #949494;
  --overlay-dark: rgba(0, 0, 0, 0.2);

  /* Typography */
  --font-family: 'Satoshi', sans-serif;

  /* Font Sizes */
  --fs-xxxl: 110px;    /* Hero heading */
  --fs-xxl: 72px;      /* Section headings */
  --fs-xl: 48px;       /* Large sub-headings */
  --fs-lg: 28px;       /* Body heading / card titles */
  --fs-md: 22px;       /* Body text */
  --fs-base: 20px;     /* Nav / button text */
  --fs-sm: 18px;       /* Subtext / small body */
  --fs-xs: 16px;       /* Small labels */

  /* Line Heights */
  --lh-xxxl: 120px;
  --lh-xxl: 80px;
  --lh-lg: 44px;
  --lh-md: 38px;
  --lh-base: 36px;
  --lh-sm: 34px;
  --lh-xs: 26px;

  /* Spacing */
  --container-max: 1440px;
  --section-padding: 120px 0;
  --section-padding-sm: 80px 0;
  --gap-xl: 60px;
  --gap-lg: 45px;
  --gap-md: 30px;
  --gap-sm: 20px;
  --gap-xs: 10px;

  /* Border Radius */
  --radius-section: 30px;
  --radius-card: 20px;
  --radius-input: 8px;
  --radius-btn: 50px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(84, 84, 255, 0.15);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section-wrapper {
  max-width: 1820px;
  margin: 0 auto;
  border-radius: var(--radius-section);
  overflow: hidden;
}

/* --- Typography --- */
.heading-xxxl {
  font-size: var(--fs-xxxl);
  font-weight: 700;
  line-height: var(--lh-xxxl);
  letter-spacing: -1.1px;
  color: var(--dark-blue);
}

.heading-xl {
  font-size: var(--fs-xxl);
  font-weight: 700;
  line-height: var(--lh-xxl);
  color: var(--dark-blue);
}

.heading-lg {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-blue);
}

.body-heading {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: var(--lh-base);
  color: var(--dark-blue);
}

.body-text {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-md);
  color: var(--dark-blue);
}

.body-subtext {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: var(--lh-sm);
  color: var(--dark-blue);
  opacity: 0.5;
}

.small-text {
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: var(--lh-xs);
}

.section-subtitle {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
  text-transform: capitalize;
  margin-bottom: 10px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius-btn);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 18px 30px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  border: 2px solid var(--dark-blue);
  color: var(--dark-blue);
  padding: 16px 28px;
}

.btn-outline:hover {
  background: var(--dark-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.btn-arrow {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-arrow:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--dark-blue);
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dark-blue);
}

.link-underline:hover {
  color: var(--primary);
}

.link-underline:hover::after {
  background: var(--primary);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* --- Section backgrounds --- */
.bg-gray {
  background: var(--gray-bg);
}

.bg-dark {
  background: var(--dark-blue);
}

.bg-white {
  background: var(--white);
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: var(--white);
}

.text-dark {
  color: var(--dark-blue);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--gap-sm);
}

.gap-md {
  gap: var(--gap-md);
}

.gap-lg {
  gap: var(--gap-lg);
}

.grid {
  display: grid;
}

.relative {
  position: relative;
}

/* --- Responsive breakpoints --- */
@media (max-width: 1199px) {
  :root {
    --fs-xxxl: 72px;
    --fs-xxl: 56px;
    --fs-xl: 40px;
    --fs-lg: 24px;
    --fs-md: 20px;
    --lh-xxxl: 80px;
    --lh-xxl: 64px;
  }

  .container {
    padding: 0 30px;
  }
}

@media (max-width: 767px) {
  :root {
    --fs-xxxl: 42px;
    --fs-xxl: 36px;
    --fs-xl: 30px;
    --fs-lg: 22px;
    --fs-md: 18px;
    --fs-base: 16px;
    --fs-sm: 16px;
    --fs-xs: 14px;
    --lh-xxxl: 50px;
    --lh-xxl: 44px;
    --lh-lg: 32px;
    --lh-md: 30px;
    --lh-base: 28px;
    --lh-sm: 26px;
    --section-padding: 60px 0;
    --section-padding-sm: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  .btn-arrow {
    width: 60px;
    height: 60px;
  }
}
