/*
Theme Name: Doctree Landing
Theme URI: https://doctree.app/
Author: mkdev-agency
Description: SEO-focused multilingual landing page theme for the Doctree app.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: doctree-landing
*/

:root {
  --dt-bg: #08030e;
  --dt-panel: #190022;
  --dt-panel-2: #26003a;
  --dt-text: #f7f2ff;
  --dt-muted: #c9bbd7;
  --dt-pink: #ff2b9b;
  --dt-pink-2: #ff72bf;
  --dt-violet: #342ba0;
  --dt-cyan: #42e5f0;
  --dt-mint: #89f5c2;
  --dt-line: rgba(255, 43, 155, 0.45);
  --dt-max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dt-bg);
  color: var(--dt-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.doctree-light {
  --dt-bg: #fff5ef;
  --dt-panel: #ffffff;
  --dt-panel-2: #f4ecff;
  --dt-text: #3f385d;
  --dt-muted: #625a78;
  --dt-line: rgba(255, 43, 155, 0.24);
  color-scheme: light;
}

a {
  color: inherit;
}

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

.dt-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 3, 14, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

body.doctree-light .dt-site-header {
  background: rgba(255, 245, 239, 0.9);
}

.dt-nav {
  width: min(100% - 32px, var(--dt-max));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.dt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.dt-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(255, 43, 155, 0.45);
  flex: 0 0 auto;
}

.dt-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dt-menu a,
.dt-lang a {
  text-decoration: none;
  color: var(--dt-muted);
  font-size: 0.95rem;
}

.dt-menu a:hover,
.dt-lang a:hover {
  color: var(--dt-text);
}

.dt-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.dt-lang a {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.dt-lang a.is-active {
  color: var(--dt-text);
  border-color: var(--dt-line);
  background: rgba(255, 43, 155, 0.12);
}

.dt-main {
  overflow: hidden;
}

.dt-wrap {
  width: min(100% - 32px, var(--dt-max));
  margin: 0 auto;
}

.dt-hero {
  min-height: calc(100vh - 74px);
  padding: 58px 0 44px;
  display: grid;
  align-items: center;
  position: relative;
}

.dt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 43, 155, 0.2), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(66, 229, 240, 0.14), transparent 30%),
    linear-gradient(180deg, transparent 72%, rgba(52, 43, 160, 0.22));
  pointer-events: none;
}

.dt-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
}

.dt-hero-copy {
  min-width: 0;
  max-width: 760px;
}

.dt-eyebrow {
  margin: 0 0 14px;
  color: var(--dt-cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  max-width: 620px;
  overflow-wrap: anywhere;
}

.dt-hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.dt-hero h1 span {
  color: var(--dt-pink);
}

.dt-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--dt-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
}

.dt-hero-actions,
.dt-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.dt-hero-actions {
  margin-top: 30px;
}

.dt-store-row {
  align-items: stretch;
}

.dt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.dt-button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--dt-pink), #f05);
  box-shadow: 0 18px 44px rgba(255, 43, 155, 0.28);
}

.dt-store-button {
  width: 176px;
  min-height: 54px;
}

.dt-hero-visual {
  min-width: 0;
}

.dt-hero-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 43, 155, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(255, 43, 155, 0.2), 0 24px 80px rgba(0, 0, 0, 0.46);
}

.dt-language-claim {
  max-width: 860px;
  margin: 26px 0 30px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 43, 155, 0.34);
  border-radius: 8px;
  color: var(--dt-text);
  background: linear-gradient(135deg, rgba(255, 43, 155, 0.16), rgba(66, 229, 240, 0.08));
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
}

.dt-phone-stack {
  min-height: 760px;
  position: relative;
}

.dt-phone {
  position: absolute;
  width: min(52vw, 300px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: #09020d;
}

.dt-phone img {
  width: 100%;
}

.dt-phone-one {
  right: 70px;
  top: 0;
  transform: rotate(-6deg);
}

.dt-phone-two {
  right: 0;
  top: 110px;
  transform: rotate(6deg);
}

.dt-section {
  padding: 76px 0;
}

.dt-section-alt {
  background: linear-gradient(180deg, rgba(255, 43, 155, 0.08), rgba(66, 229, 240, 0.04));
}

.dt-section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.dt-section-intro {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--dt-muted);
  font-size: 1.08rem;
}

.dt-feature-grid,
.dt-image-grid,
.dt-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dt-card {
  padding: 24px;
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 0, 58, 0.9), rgba(12, 0, 20, 0.9));
}

body.doctree-light .dt-card {
  background: rgba(255, 255, 255, 0.86);
}

.dt-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.dt-card p {
  margin: 0;
  color: var(--dt-muted);
}

.dt-screenshot-carousel {
  position: relative;
  max-width: 940px;
  margin: 30px auto 0;
  padding: 0 58px;
}

.dt-carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.dt-carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.dt-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  gap: 34px;
  align-items: center;
}

.dt-image-card {
  overflow: hidden;
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  background: var(--dt-panel);
  margin: 0;
}

.dt-image-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.dt-slide-copy {
  padding: 28px;
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 0, 58, 0.86), rgba(12, 0, 20, 0.86));
}

.dt-slide-copy h3 {
  margin: 0 0 12px;
  color: var(--dt-text);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.dt-slide-copy p {
  margin: 0;
  color: var(--dt-muted);
  font-size: 1.08rem;
}

body.doctree-light .dt-slide-copy {
  background: rgba(255, 255, 255, 0.86);
}

.dt-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dt-line);
  border-radius: 50%;
  color: var(--dt-text);
  background: rgba(18, 0, 28, 0.82);
  font-size: 1.85rem;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

body.doctree-light .dt-carousel-button {
  background: rgba(255, 255, 255, 0.9);
}

.dt-carousel-button:hover,
.dt-carousel-button:focus-visible {
  border-color: var(--dt-pink);
  color: #fff;
  background: var(--dt-pink);
}

.dt-carousel-prev {
  left: 0;
}

.dt-carousel-next {
  right: 0;
}

.dt-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.dt-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

body.doctree-light .dt-carousel-dots button {
  background: rgba(80, 69, 105, 0.28);
}

.dt-carousel-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--dt-pink);
}

.dt-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 18px;
  align-items: start;
}

.dt-qr {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: #20152c;
}

.dt-qr strong {
  display: block;
  margin-top: 10px;
}

.dt-keywords {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.dt-keywords li {
  border: 1px solid var(--dt-line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--dt-muted);
  background: rgba(255, 255, 255, 0.04);
}

.dt-page {
  padding: 70px 0;
}

.dt-page article {
  max-width: 880px;
}

.dt-page h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 22px;
}

.dt-page h2 {
  margin-top: 38px;
}

.dt-page p,
.dt-page li {
  color: var(--dt-muted);
}

.dt-post-list {
  display: grid;
  gap: 18px;
  padding: 70px 0;
}

.dt-post-list article {
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  padding: 24px;
  background: var(--dt-panel);
}

.dt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  color: var(--dt-muted);
}

.dt-footer-inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dt-footer a {
  color: var(--dt-muted);
  margin-right: 16px;
}

@media (max-width: 900px) {
  .dt-nav {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .dt-menu {
    margin-left: 0;
    gap: 12px;
  }

  .dt-lang {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .dt-hero {
    min-height: auto;
  }

  .dt-hero-grid,
  .dt-feature-grid,
  .dt-image-grid,
  .dt-blog-grid {
    grid-template-columns: 1fr;
  }

  .dt-hero-visual {
    order: -1;
  }

  .dt-hero-visual img {
    max-height: 58vh;
    object-fit: cover;
    object-position: center;
  }

  .dt-phone-stack {
    min-height: 780px;
  }

  .dt-phone {
    width: min(70vw, 300px);
  }

  .dt-phone-one {
    left: 0;
    right: auto;
  }

  .dt-phone-two {
    right: 0;
  }

  .dt-screenshot-carousel {
    max-width: 620px;
  }

  .dt-carousel-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dt-image-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .dt-section,
  .dt-page {
    padding: 50px 0;
  }

  .dt-phone-stack {
    min-height: 640px;
  }

  .dt-phone {
    width: min(70vw, 245px);
  }

  .dt-phone-two {
    top: 92px;
  }

  .dt-hero-visual {
    order: 0;
  }

  .dt-hero-visual img {
    max-height: none;
  }

  .dt-language-claim {
    padding: 18px;
    font-size: 1.18rem;
  }

  .dt-screenshot-carousel {
    padding: 0 42px;
  }

  .dt-slide-copy {
    padding: 20px;
  }

  .dt-carousel-button {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .dt-qr-grid {
    grid-template-columns: 1fr;
  }
}
