/*
  Domaintico — Home Page (Premium Minimal)
  File: domaintico-home.css
  Scope: Only the / (home) view (wrapped in .dm-homev2).
*/

.dm-homev2{
  /* local rhythm tweaks (keeps home a bit tighter than other pages) */
}

.dm-homev2 .dm-section{
  padding-top: 44px;
  padding-bottom: 44px;
}

/* HERO */
.dm-homev2 .dm-section.dm-page-hero{
  padding-top: 72px;
  padding-bottom: 56px;
}

.dm-homev2 .dm-hero__inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 46px;
  align-items: start;
}

.dm-homev2 .dm-hero__title{
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 10px 0 0;
  font-weight: 950;
}

.dm-homev2 .dm-hero__lead{
  font-size: 18px;
  max-width: 62ch;
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--dm-muted);
  font-weight: 700;
  line-height: 1.6;
}

.dm-homev2 .dm-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dm-homev2 .dm-trust{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dm-text);
}

.dm-homev2 .dm-trust__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--dm-surface-2);
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 800;
  font-size: 13px;
}

.dm-homev2 .dm-trust__item i{
  font-size: 16px;
  opacity: .9;
}

/* Side card */
.dm-homev2 .dm-sidecard{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(2,6,23,.06);
  padding: 18px;
}

.dm-homev2 .dm-sidecard__title{
  font-weight: 950;
  margin: 0 0 8px 0;
  font-size: 18px;
}

.dm-homev2 .dm-sidecard__muted{
  color: var(--dm-muted);
  margin: 0 0 14px 0;
  font-weight: 700;
}

.dm-homev2 .dm-kv{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.dm-homev2 .dm-kv:first-of-type{ border-top: 0; }

.dm-homev2 .dm-kv span{
  color: var(--dm-muted);
  font-weight: 700;
}

.dm-homev2 .dm-kv strong{
  font-weight: 950;
}

.dm-homev2 .dm-sidecard__note{
  margin-top: 10px;
  color: rgba(100,116,139,.9);
  font-size: 12px;
  font-weight: 700;
}

.dm-homev2 .dm-sidecard__actions{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

/* QUICK SEARCH CARD */
.dm-homev2 .dm-home-search__card{
  padding: 18px;
}

.dm-homev2 .dm-home-search__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
}

.dm-homev2 .dm-home-search__title{
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.dm-homev2 .dm-home-search__text{
  margin: 8px 0 0;
  color: var(--dm-muted);
  font-weight: 700;
}

.dm-homev2 .dm-home-search__tabs{
  display:flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.dm-homev2 .dm-home-search__tabs button{
  border: 1px solid rgba(2,6,23,.10);
  background: #fff;
  color: var(--dm-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  cursor: pointer;
}

.dm-homev2 .dm-home-search__tabs button.active{
  /* Fallback (for browsers that don't support color-mix) */
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .26);
  color: var(--dm-primary-color);

  /* Preferred (modern browsers) */
  background: color-mix(in srgb, var(--dm-primary-color) 10%, #fff);
  border-color: color-mix(in srgb, var(--dm-primary-color) 28%, rgba(0,0,0,.06));
}


.dm-homev2 .dm-home-search__form{ margin-top: 14px; }

/* Status line (used by home quick search JS) */
.dm-homev2 .dm-status{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: var(--dm-surface-2);
  color: var(--dm-text);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.45;
}
.dm-homev2 .dm-status.success{
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.dm-homev2 .dm-status.error{
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}


.dm-homev2 .dm-home-search__row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dm-homev2 .dm-home-search__row + .dm-home-search__row{
  margin-top: 10px;
}

/* important: hidden attribute must always win (mobile Safari sometimes loses vs display:flex) */
.dm-homev2 [data-dm-transfer-row][hidden]{
  display: none !important;
}

.dm-homev2 .dm-home-search__row .dm-input{
  flex: 1 1 260px;
  height: 54px;
  font-size: 16px;
}

.dm-homev2 .dm-home-search__row .btn{
  height: 54px;
  padding-left: 18px;
  padding-right: 18px;
  font-weight: 950;
}

.dm-homev2 .dm-home-search__result{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--dm-border-soft);
}

.dm-homev2 .dm-home-search__domain{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dm-homev2 .dm-home-search__domainName{
  font-weight: 950;
  letter-spacing: -0.01em;
}

.dm-homev2 .dm-home-search__price{
  margin-top: 6px;
  color: var(--dm-muted);
  font-weight: 900;
}

.dm-homev2 .dm-home-search__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dm-homev2 .dm-home-search__hint{
  margin-top: 10px;
  color: var(--dm-muted);
  font-weight: 700;
  line-height: 1.55;
}


/* WHY cards grid */
.dm-homev2 .dm-feature-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.dm-homev2 .dm-feature-title{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.dm-homev2 .dm-feature-text{
  margin-top: 6px;
  color: var(--dm-muted);
  font-weight: 700;
  line-height: 1.6;
}

/* HOW IT WORKS cards */
.dm-homev2 .dm-how-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.dm-homev2 .dm-how-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(2,6,23,.04);
}

.dm-homev2 .dm-how-card:hover{
  box-shadow: 0 16px 46px rgba(2,6,23,.06);
}

.dm-homev2 .dm-how-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #E5F0FF;
  color: #1D4ED8;
  font-weight: 950;
  margin-bottom: 12px;
}

.dm-homev2 .dm-how-card h3{
  font-size: 18px;
  margin: 0 0 6px 0;
  font-weight: 950;
}

.dm-homev2 .dm-how-card p{
  margin: 0;
  color: var(--dm-muted);
  font-weight: 700;
  line-height: 1.6;
}

/* CTA card */
.dm-homev2 .dm-cta-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 40px rgba(2,6,23,.06);
}

.dm-homev2 .dm-cta-card__title{
  font-size: 26px;
  margin: 0 0 6px 0;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.dm-homev2 .dm-cta-card__sub{
  margin: 0;
  color: var(--dm-muted);
  max-width: 62ch;
  font-weight: 700;
}

.dm-homev2 .dm-cta-card__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 991px){
  /* Mobile/tablet: tighten vertical rhythm to reduce long scroll. */
  .dm-homev2 .dm-section{
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* Avoid double-spacing between consecutive sections. */
  .dm-homev2 .dm-section + .dm-section{
    padding-top: 24px;
  }

  .dm-homev2 .dm-feature-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dm-homev2 .dm-section.dm-page-hero{
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .dm-homev2 .dm-hero__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dm-homev2 .dm-hero__title{
    font-size: clamp(34px, 6vw, 42px);
  }
  .dm-homev2 .dm-how-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 575px){
  /* Phones: slightly tighter again for compact sections. */
  .dm-homev2 .dm-section{
    padding-top: 28px;
    padding-bottom: 28px;
  }

  /* Even tighter on phones. */
  .dm-homev2 .dm-section + .dm-section{
    padding-top: 18px;
  }

  .dm-homev2 .dm-hero__actions .btn{
    width: 100%;
  }
  .dm-homev2 .dm-home-search__head{
    flex-direction: column;
    align-items: stretch;
  }
  .dm-homev2 .dm-home-search__head .btn{
    width: 100%;
  }
  .dm-homev2 .dm-home-search__row .btn{
    width: 100%;
  }
  .dm-homev2 .dm-home-search__actions .btn{
    width: 100%;
  }
  .dm-homev2 .dm-cta-card{
    padding: 18px;
  }
  .dm-homev2 .dm-cta-card__title{
    font-size: 22px;
  }
  .dm-homev2 .dm-cta-card__actions{
    width: 100%;
  }
  .dm-homev2 .dm-cta-card__actions .btn{
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------
   Brand Identity Enhancements
   ------------------------------------------------------------------ */
.dm-homev2 .dm-page-hero{
  position: relative;
  overflow: hidden;
}

.dm-homev2 .dm-page-hero::before,
.dm-homev2 .dm-page-hero::after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:999px;
  filter: blur(10px);
}

.dm-homev2 .dm-page-hero::before{
  width: 320px;
  height: 320px;
  top: -110px;
  right: -80px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, rgba(37,99,235,0) 68%);
}

.dm-homev2 .dm-page-hero::after{
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 20px;
  background: radial-gradient(circle, rgba(56,189,248,.16) 0%, rgba(56,189,248,0) 72%);
}

.dm-homev2 .dm-hero__content,
.dm-homev2 .dm-hero__media{
  position: relative;
  z-index: 1;
}

.dm-homev2 .dm-section__kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dm-primary-color) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--dm-primary-color) 16%, rgba(15,23,42,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.dm-homev2 .dm-hero__title{
  max-width: 17ch;
}

.dm-homev2 .dm-hero__actions .btn{
  min-width: 168px;
}

.dm-homev2 .dm-trust{
  gap: 10px;
}

.dm-homev2 .dm-trust__item{
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}

.dm-homev2 .dm-trust__icon{
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.dm-homev2 .dm-sidecard{
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.95));
  border-color: rgba(15,23,42,.08);
}

.dm-homev2 .dm-sidecard::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--dm-primary-color), var(--dm-brand-accent, #38BDF8));
}

.dm-homev2 .dm-sidecard__title{
  margin-top: 8px;
}

.dm-homev2 .dm-kv--icon span:first-child{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dm-homev2 .dm-kv__icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.dm-homev2 .dm-home-search__card{
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow: 0 18px 44px rgba(15,23,42,.07);
}

.dm-homev2 .dm-home-search__tabs button{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.dm-homev2 .dm-home-search__tabs button.active{
  box-shadow: 0 10px 24px rgba(37,99,235,.12);
}

.dm-homev2 .dm-feature{
  padding: 18px;
}

.dm-homev2 .dm-feature__icon{
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
}

.dm-homev2 .dm-how-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dm-homev2 .dm-how-icon{
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.dm-homev2 .dm-how-step{
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dm-primary-color) 18%, #fff), color-mix(in srgb, var(--dm-brand-accent, #38BDF8) 16%, #fff));
  color: var(--dm-primary-color);
}

.dm-homev2 .dm-cta-card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}

@media (max-width: 575px){
  .dm-homev2 .dm-trust__item{
    width: 100%;
    justify-content: flex-start;
  }
  .dm-homev2 .dm-kv--icon span:first-child{
    align-items: flex-start;
  }
}
