/* =========================================================
   COMPONENTS.CSS
   - Cards
   - Buttons
   - Modals
   - UI blocks
   ========================================================= */

/* Demo card */
.demo-card {
    max-width: 100%;
    padding: 24px;
    border-radius: 16px;
    background-color: rgba(144, 238, 144, 0.2);
    border: 1px solid rgba(0,0,0,0.08);
    box-sizing: border-box;
}

/* Button */
.demo-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Text cards */
.text_card_section,
.big_text_card_section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 2rem auto;
    padding: 0 1rem;
}

.text_cards {
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: 5vh;
    margin: 1rem;
    flex: 1;
    min-width: 250px;
    max-width: 30%;
    text-align: center;
}

/* Big cards */
.big_text_cards {
    background-color: #F0F8FF;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: 50vh;
    margin: 1rem;
    flex: 1;
    max-width: 250px;
    text-align: center;
}

/* Patent card */
.patent-card {
  background-color: #F0F8FF;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 65vh;
  margin: 1rem;
  flex: 1;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}


.top-half {
  flex: 4; /* 80% equivalent */
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bottom-half {
  flex: 1; /* 20% equivalent */
  padding: 0 1.5rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  border-top: 1px solid rgba(0,0,0,0.05); /* Optional subtle separator */
}


/* Demo hover behavior (kept, no layout change) */
.demo-card:hover,
.text_cards:hover,
.patent-card:hover {
    transform: translateY(-10px);
}

/* Modal (overlay.css merged lightly) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    position: relative;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}


/* =========================================================
   DIOS — GET STARTED
   All styles are scoped to .dios-get-started
   ========================================================= */

.dios-get-started {
  --dios-gs-text: #17202a;
  --dios-gs-muted: #68727d;
  --dios-gs-border: #e3e8ec;
  --dios-gs-surface: #ffffff;
  --dios-gs-soft: #f7f9fa;
  --dios-gs-accent: #1c6e8c;
  --dios-gs-accent-soft: #e8f3f7;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--dios-gs-text);
  box-sizing: border-box;
}

.dios-get-started *,
.dios-get-started *::before,
.dios-get-started *::after {
  box-sizing: border-box;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.dios-get-started__header {
  max-width: 700px;
  margin-bottom: 28px;
}

.dios-get-started__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--dios-gs-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dios-get-started__header h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dios-get-started__header p {
  margin: 0;
  color: var(--dios-gs-muted);
  font-size: 15px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   THREE-COLUMN GRID
   --------------------------------------------------------- */

.dios-get-started__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.dios-get-started__card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;

  border: 1px solid var(--dios-gs-border);
  border-radius: 14px;

  background: var(--dios-gs-surface);
  color: var(--dios-gs-text);

  text-decoration: none;

  box-shadow: 0 5px 20px rgba(23, 32, 42, 0.035);

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.dios-get-started__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;

  background: var(--dios-gs-accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 220ms ease;
}

.dios-get-started__card:hover {
  transform: translateY(-4px);
  border-color: #cfd9df;
  box-shadow: 0 14px 32px rgba(23, 32, 42, 0.08);
}

.dios-get-started__card:hover::after {
  transform: scaleX(1);
}


/* ---------------------------------------------------------
   NUMBER
   --------------------------------------------------------- */

.dios-get-started__number {
  position: absolute;
  top: 20px;
  right: 22px;

  color: #aeb8c1;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}


/* ---------------------------------------------------------
   ICON
   --------------------------------------------------------- */

.dios-get-started__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  margin-bottom: 28px;

  border: 1px solid var(--dios-gs-border);
  border-radius: 10px;

  background: var(--dios-gs-soft);
  color: var(--dios-gs-accent);

  font-size: 18px;
  font-weight: 700;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.dios-get-started__card:hover .dios-get-started__icon {
  border-color: #c9dce4;
  background: var(--dios-gs-accent-soft);
  transform: translateY(-2px);
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.dios-get-started__content {
  flex: 1;
}

.dios-get-started__content h3 {
  margin: 0 0 10px;

  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.dios-get-started__content p {
  margin: 0;

  color: var(--dios-gs-muted);

  font-size: 14px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   LINK
   --------------------------------------------------------- */

.dios-get-started__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 24px;

  color: var(--dios-gs-accent);

  font-size: 13px;
  font-weight: 700;
}

.dios-get-started__link span {
  display: inline-block;

  transition: transform 180ms ease;
}

.dios-get-started__card:hover .dios-get-started__link span {
  transform: translateX(4px);
}


/* ---------------------------------------------------------
   KEYBOARD ACCESSIBILITY
   --------------------------------------------------------- */

.dios-get-started__card:focus-visible {
  outline: 3px solid rgba(28, 110, 140, 0.25);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   TABLET / MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

  .dios-get-started__grid {
    grid-template-columns: 1fr;
  }

  .dios-get-started__card {
    min-height: 240px;
  }
}


@media (max-width: 480px) {

  .dios-get-started__card {
    min-height: 0;
    padding: 20px;
  }

  .dios-get-started__icon {
    margin-bottom: 22px;
  }
}