/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: #ffffff;
  color: #202124;
  overflow-x: hidden;
  min-width: 0;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}


/* =========================================
   VARIABLES
========================================= */

:root {
  --blue: #1769e8;
  --blue-dark: #1058c9;
  --text: #202124;
  --muted: #606872;
  --border: #e1e5ea;
  --bg: #ffffff;
}


/* =========================================
   HEADER
========================================= */

.topbar {
  width: 100%;
  min-height: 72px;

  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid #e5e5e5;

  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);

  position: sticky;
  top: 0;
  z-index: 50;

  backdrop-filter: blur(12px);
}


/* =========================================
   BIG LOGO
========================================= */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  height: 72px;

  overflow: visible;
}

.brand img {
  display: block;

  width: 208px;

  height: auto;

  max-width: none;

  object-fit: contain;

  flex-shrink: 0;
  margin-top: 20px;
}


/* =========================================
   TOP ACTIONS
========================================= */

.top-actions {
  display: flex;
  align-items: center;

  gap: 12px;

  flex-shrink: 0;
}


/* =========================================
   THEME BUTTON
========================================= */

.theme-btn {
  width: 34px;
  height: 34px;

  border-radius: 50%;

  border: 1px solid #cdd3da;

  background: #ffffff;

  color: #555;

  display: grid;
  place-items: center;
}


/* =========================================
   FOR WORK
========================================= */

.work-link {
  color: var(--blue);

  font-size: 13px;

  font-weight: 600;

  white-space: nowrap;
}


/* =========================================
   SIGN IN
========================================= */

.signin-btn {
  min-width: 72px;

  height: 38px;

  padding: 0 16px;

  border: 1px solid var(--blue);

  border-radius: 22px;

  display: grid;
  place-items: center;

  color: var(--blue);

  background: white;

  font-size: 13px;

  font-weight: 600;

  white-space: nowrap;

  transition: 0.2s ease;
}

.signin-btn:hover {
  background: #f0f6ff;
}


/* =========================================
   ACCOUNT BUTTON
========================================= */

.account-btn {
  height: 38px;

  padding: 0 17px;

  border: 0;

  border-radius: 22px;

  background: var(--blue);

  color: white;

  font-size: 13px;

  font-weight: 700;

  white-space: nowrap;

  transition: 0.2s ease;
}

.account-btn:hover {
  background: var(--blue-dark);

  transform: translateY(-1px);
}

.account-arrow {
  margin-left: 8px;

  padding-left: 8px;

  border-left: 1px solid rgba(255, 255, 255, 0.4);
}


/* =========================================
   HERO
========================================= */

.hero {
  width: min(1180px, calc(100% - 48px));

  min-height: 600px;

  margin: 0 auto;

  padding: 70px 0;

  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 50px;

  align-items: center;
}


/* =========================================
   HERO TEXT
========================================= */

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(42px, 5vw, 68px);

  line-height: 1.02;

  letter-spacing: -3px;

  margin-bottom: 22px;
}

.hero-description {
  max-width: 500px;

  color: var(--muted);

  font-size: 16px;

  line-height: 1.65;
}

.hero-buttons {
  display: flex;

  align-items: center;

  margin-top: 24px;
}


/* =========================================
   PRIMARY BUTTON
========================================= */

.primary-btn {
  border: 0;

  border-radius: 24px;

  background: var(--blue);

  color: white;

  padding: 13px 19px;

  font-size: 13px;

  font-weight: 700;

  transition: 0.2s ease;
}

.primary-btn:hover {
  background: var(--blue-dark);

  transform: translateY(-1px);
}

.primary-btn span {
  margin-left: 12px;

  font-size: 18px;
}


/* =========================================
   VIDEO
========================================= */

.hero-video {
  width: 100%;

  min-width: 0;
}

.video-wrapper {
  width: 100%;

  overflow: hidden;

  border-radius: 22px;

  background: #f2f5f9;

  box-shadow:
    0 20px 55px rgba(30, 60, 100, 0.14);
}

.video-wrapper video {
  display: block;

  width: 100%;

  height: auto;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  border: 0;
}


/* =========================================
   WORK SECTION
========================================= */

.work-section {
  width: min(1100px, calc(100% - 48px));

  margin: 0 auto 80px;

  padding: 48px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  border-radius: 25px;

  background: #f3f8ff;
}

.work-content {
  min-width: 0;
}

.work-section span {
  color: var(--blue);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1.3px;
}

.work-section h2 {
  margin-top: 10px;

  font-size: clamp(27px, 4vw, 40px);

  line-height: 1.1;

  letter-spacing: -1.2px;
}


/* =========================================
   OUTLINE BUTTON
========================================= */

.outline-btn {
  flex-shrink: 0;

  padding: 11px 17px;

  border: 1px solid #8ab8f5;

  border-radius: 22px;

  background: white;

  color: var(--blue);

  font-size: 12px;

  font-weight: 700;

  transition: 0.2s ease;
}

.outline-btn:hover {
  background: #f0f6ff;
}


/* =========================================
   MODAL
========================================= */

.modal-bg {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

  background: rgba(20, 28, 40, 0.42);

  backdrop-filter: blur(5px);
}

.modal-bg.show {
  display: flex;
}

.modal {
  width: min(430px, 100%);

  position: relative;

  padding: 38px;

  text-align: center;

  border-radius: 22px;

  background: white;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);

  animation: modalIn 0.2s ease;
}

.modal-close {
  position: absolute;

  right: 15px;
  top: 10px;

  border: 0;

  background: transparent;

  color: #777;

  font-size: 25px;
}

.modal-logo {
  display: block;

  width: 110px;

  height: auto;

  margin: 0 auto 20px;
}

.modal h2 {
  margin-bottom: 9px;

  font-size: 24px;
}

.modal p {
  color: var(--muted);

  font-size: 13px;
}

.modal-buttons {
  display: flex;

  justify-content: center;

  gap: 10px;

  margin-top: 25px;

  flex-wrap: wrap;
}


/* =========================================
   TOAST
========================================= */

.toast {
  position: fixed;

  z-index: 200;

  left: 50%;

  bottom: 25px;

  max-width: calc(100% - 30px);

  padding: 11px 17px;

  border-radius: 10px;

  background: #202124;

  color: white;

  font-size: 12px;

  opacity: 0;

  pointer-events: none;

  transform: translate(-50%, 25px);

  transition: 0.25s;
}

.toast.show {
  opacity: 1;

  transform: translate(-50%, 0);
}


/* =========================================
   DARK MODE
========================================= */

body.dark {
  --text: #edf3fb;

  --muted: #b4bdca;

  --bg: #0e141c;

  background: #0e141c;

  color: #edf3fb;
}

body.dark .topbar {
  background: rgba(18, 26, 36, 0.97);

  border-color: #2a3747;
}

body.dark .theme-btn,
body.dark .signin-btn,
body.dark .outline-btn {
  background: #121a24;

  color: #82b7ff;

  border-color: #355a84;
}

body.dark .video-wrapper {
  background: #121a24;
}

body.dark .work-section {
  background: #15263b;
}

body.dark .modal {
  background: #121a24;

  color: #edf3fb;
}


/* =========================================
   ANIMATION
========================================= */

@keyframes modalIn {

  from {
    opacity: 0;

    transform:
      scale(0.96)
      translateY(8px);
  }

  to {
    opacity: 1;

    transform:
      scale(1)
      translateY(0);
  }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .topbar {
    min-height: 68px;

    padding: 0 20px;
  }

  /* Bigger tablet logo */

  .brand {
    height: 68px;
  }

  .brand img {
    width: 115px;
  }

  .work-link {
    display: none;
  }

  .hero {
    width: min(720px, calc(100% - 36px));

    grid-template-columns: 1fr;

    gap: 45px;

    padding-top: 55px;

    padding-bottom: 55px;

    text-align: center;
  }

  .hero-copy {
    display: flex;

    flex-direction: column;

    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 8vw, 60px);
  }

  .hero-description {
    margin: 0 auto;
  }

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

  .hero-video {
    width: 100%;
  }

  .work-section {
    width: min(720px, calc(100% - 36px));
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .topbar {
    min-height: 68px;

    padding: 0 12px;
  }


  /* BIG MOBILE LOGO */

  .brand {
    height: 68px;

    overflow: visible;
  }

  .brand img {
    width: 105px;

    height: auto;

    max-width: none;
  }


  /* ACTIONS */

  .top-actions {
    gap: 6px;
  }

  .theme-btn {
    display: none;
  }

  .signin-btn {
    min-width: 60px;

    height: 34px;

    padding: 0 10px;

    font-size: 11px;
  }

  .account-btn {
    height: 34px;

    padding: 0 11px;

    font-size: 11px;
  }

  .account-arrow {
    display: none;
  }


  /* HERO */

  .hero {
    width: calc(100% - 28px);

    min-height: auto;

    padding: 45px 0 40px;

    gap: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10vw, 48px);

    line-height: 1.04;

    letter-spacing: -2px;

    margin-bottom: 17px;
  }

  .desktop-break {
    display: none;
  }

  .hero-description {
    font-size: 14px;

    line-height: 1.6;
  }

  .hero-buttons {
    margin-top: 20px;
  }

  .primary-btn {
    padding: 12px 16px;

    font-size: 12px;
  }


  /* VIDEO */

  .hero-video {
    width: 100%;

    max-width: 100%;
  }

  .video-wrapper {
    width: 100%;

    border-radius: 16px;
  }

  .video-wrapper video {
    width: 100%;

    height: auto;

    aspect-ratio: 16 / 9;
  }


  /* WORK */

  .work-section {
    width: calc(100% - 28px);

    margin-bottom: 45px;

    padding: 28px 22px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 20px;

    border-radius: 20px;
  }

  .work-section h2 {
    font-size: 28px;

    line-height: 1.12;
  }

  .work-section .outline-btn {
    width: 100%;
  }


  /* MODAL */

  .modal {
    padding: 30px 22px;

    border-radius: 18px;
  }

  .modal h2 {
    font-size: 21px;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons button {
    width: 100%;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

  .topbar {
    min-height: 64px;

    padding: 0 9px;
  }

  .brand {
    height: 64px;
  }

  .brand img {
    width: 95px;
  }

  .signin-btn {
    min-width: 56px;

    padding: 0 8px;
  }

  .account-btn {
    padding: 0 9px;
  }

  .hero {
    width: calc(100% - 20px);
  }

  .hero-copy h1 {
    font-size: 34px;

    letter-spacing: -1.5px;
  }

  .hero-description {
    font-size: 13px;
  }

  .work-section {
    width: calc(100% - 20px);
  }

}