/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

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

body {
  font-family: -apple-system, system-ui, "Segoe UI", "Segoe UI Web (West European)", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #323130;
  background-color: #faf9f8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0078d4;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-navigation {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #0078d4;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-navigation:focus {
  top: 0;
  outline: none;
}

.wrapper {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 1200px) {
  .wrapper {
    padding-inline: 40px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding-inline: 16px;
  }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   Top Bar (Header)
   ========================================================================== */

.top-bar {
  background-color: #fff;
  border-bottom: 1px solid #edebe9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 16px;
}

@media (max-width: 768px) {
  .top-bar__content {
    min-height: 64px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .top-bar__content {
    min-height: 56px;
    gap: 8px;
  }
}

.top-bar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-link {
  display: block;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: min(100%, 231px);
}

@media (max-width: 768px) {
  .brand-logo {
    height: 24px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    height: 20px;
  }
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .top-bar__actions {
    gap: 6px;
  }
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */

.action-btn {
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.action-btn--text {
  color: #323130;
}

.action-btn--text:hover {
  background-color: #f3f2f1;
}

.action-btn--outline {
  border: 1px solid #0078d4;
  background-color: #fff;
  color: #0078d4;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 18px;
  border-radius: 8px;
}

.action-btn--outline:hover {
  background-color: #f3f9fd;
}

@media (max-width: 640px) {
  .action-btn--outline {
    padding: 8px 14px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .action-btn--outline {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Locale Picker
   ========================================================================== */

.locale-picker__select {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 8px 20px 4px 8px;
  font: inherit;
  color: #000;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23323130' d='M2.2 4.2L6 8l3.8-3.8'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .locale-picker__select {
    padding: 6px 22px 6px 8px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Announcement Strip
   ========================================================================== */

.announcement-strip {
  background: linear-gradient(90deg, #6178c6 0%, #8f74bf 55%, #b062a0 100%);
  color: #fff;
  text-align: center;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.announcement-strip__link {
  color: #fff;
  text-decoration: none;
}

.announcement-strip__link:hover {
  text-decoration: underline;
}

.announcement-strip__terms {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .announcement-strip {
    padding: 16px;
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .announcement-strip {
    padding: 12px 14px;
    font-size: 13px;
    text-align: left;
  }
}

/* ==========================================================================
   Showcase (Hero Section)
   ========================================================================== */

.showcase {
  background: linear-gradient(283deg, #d1e4f5 0%, #d1e4f5 0.01%, #f3f8fc 100%);
  padding-block: 180px 200px;
}

@media (max-width: 1024px) {
  .showcase {
    padding-block: 100px 120px;
  }
}

@media (max-width: 768px) {
  .showcase {
    padding-block: 64px 80px;
  }
}

@media (max-width: 480px) {
  .showcase {
    padding-block: 40px 56px;
  }
}

.showcase__layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

@media (max-width: 1024px) {
  .showcase__layout {
    gap: 32px;
  }
}

@media (max-width: 960px) {
  .showcase__layout {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .showcase__layout {
    gap: 28px;
  }
}

.showcase__text {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  padding-top: 8px;
}

@media (max-width: 960px) {
  .showcase__text {
    max-width: none;
    padding-top: 0;
  }
}

.showcase__heading {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .showcase__heading {
    margin-bottom: 16px;
  }
}

.showcase__description {
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .showcase__description {
    margin-bottom: 28px;
  }
}

.showcase__visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.showcase__visual img {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

@media (max-width: 960px) {
  .showcase__visual {
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }
  
  .showcase__visual img {
    margin-inline: auto;
  }
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.cta-button--primary {
  min-width: min(240px, 100%);
  width: auto;
  max-width: 100%;
  height: 56px;
  padding-inline: 24px;
  background: linear-gradient(80deg, #61a1d9 0%, #0c5391 100%);
  color: #fff;
  font-size: clamp(17px, 2.5vw, 20px);
  box-shadow: 0 3px 26px rgba(0, 0, 0, 0.16);
}

.cta-button--primary:hover {
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .cta-button--primary {
    width: 100%;
    height: 52px;
    min-width: 0;
  }
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */

.capabilities {
  background-color: #fafeff;
  padding-block: 72px 96px;
}

@media (max-width: 768px) {
  .capabilities {
    padding-block: 56px 72px;
  }
}

@media (max-width: 480px) {
  .capabilities {
    padding-block: 40px 56px;
  }
}

.capabilities__header {
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .capabilities__header {
    margin-bottom: 28px;
  }
}

.capabilities__heading {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
}

.capabilities__lead {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.45;
  max-width: 900px;
}

/* ==========================================================================
   Tool Grid
   ========================================================================== */

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -1px 0 0 -1px;
}

.tool-card {
  flex: 1 1 33.333%;
  min-width: min(220px, 100%);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 1.5px solid #d1e4f5;
  margin-top: -1px;
  margin-left: -1px;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

.tool-card:hover {
  background-color: #f9fcfe;
}

.tool-card img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  margin-bottom: 12px;
}

.tool-card__title {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 900px) and (min-width: 721px) {
  .tool-card {
    flex: 1 1 calc(50% - 1px);
    min-width: calc(50% - 1px);
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .tool-card {
    flex: 1 1 100%;
    flex-basis: 100%;
    min-width: 100%;
    min-height: auto;
    padding: 28px 18px;
  }
}

@media (max-width: 480px) {
  .tool-card {
    padding: 24px 14px;
  }
  
  .tool-card img {
    width: 72px;
    height: 72px;
  }
}

/* Tool Card Action Variant */
.tool-card--action {
  cursor: pointer;
  align-items: flex-start;
}

.tool-card--action:hover {
  background-color: #f3f9fd;
}

.tool-card__cta {
  display: block;
  text-decoration: none;
  text-align: left;
}

.tool-card__cta:hover {
  text-decoration: none;
}

.tool-card__cta-main {
  display: block;
  color: #0078d4;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 600;
  margin-bottom: 4px;
}

.tool-card__arrow {
  margin-left: 4px;
}

.tool-card__cta-sub {
  display: block;
  font-size: clamp(16px, 3.5vw, 24px);
  font-weight: 600;
  color: #323130;
}

/* ==========================================================================
   Modal (Auth Dialog)
   ========================================================================== */

html.modal-active body {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-panel {
  width: 100%;
  max-width: 360px;
  padding: 36px 32px 32px;
  background-color: #fff;
  border-radius: 25px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .modal-panel {
    max-width: min(360px, calc(100vw - 32px));
    padding: 28px 22px 26px;
    border-radius: 22px;
    margin-inline: auto;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .modal-panel {
    padding: 32px 26px 28px;
  }
}

.modal-panel__title {
  margin-bottom: 10px;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.modal-panel__subtitle {
  margin-bottom: 28px;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: #000;
}

@media (max-width: 480px) {
  .modal-panel__subtitle {
    margin-bottom: 22px;
  }
}

/* ==========================================================================
   Auth Providers
   ========================================================================== */

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.provider-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e1e1e1;
  border-radius: 24px;
  background-color: #fff;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.provider-btn:hover {
  background-color: #f8f8f8;
  border-color: #14a3f1;
  box-shadow: 0 0 0 2px rgba(20, 163, 241, 0.2);
}

.provider-btn:focus {
  outline: none;
}

.provider-btn:focus-visible {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.provider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(100%);
  position: relative;
}

.provider-btn:disabled:hover {
  background-color: #ffebee;
  border-color: #ef5350;
  box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.25);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

@media (max-width: 480px) {
  .provider-btn {
    padding: 12px 14px;
    border-radius: 18px;
  }
}

.provider-btn__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
}

.provider-btn__inner--ms img {
  width: auto;
  max-width: 100%;
  max-height: 28px;
}

@media (max-width: 380px) {
  .provider-btn__inner--ms img {
    max-height: 24px;
  }
}

.provider-btn__inner--ggl,
.provider-btn__inner--fb {
  gap: 14px;
}

.provider-btn__label {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 300;
  color: #212121;
}

/* ==========================================================================
   Fullscreen Iframe Overlay
   ========================================================================== */

.iframe-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: #fff;
}

.iframe-overlay--hidden {
  display: none !important;
}

.iframe-overlay__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
