/* ===========================================================================
   Droidra — shared styles (layered on top of the Tailwind CDN)
   Theme: deep space navy + Android emerald/teal, glassy surfaces.
   =========================================================================== */

:root {
  --cd-bg:        #070b12;
  --cd-bg-soft:   #0b111c;
  --cd-panel:     #101826;
  --cd-border:    rgba(148, 163, 184, 0.14);
  --cd-border-2:  rgba(148, 163, 184, 0.22);
  --cd-text:      #e6edf6;
  --cd-muted:     #93a4bb;
  --cd-emerald:   #34d399;
  --cd-teal:      #22d3ee;
  --cd-lime:      #a3e635;
  --cd-radius:    16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--cd-bg);
  color: var(--cd-text);
}

/* ---- Nav ---- */
.cd-nav {
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cd-border);
}

/* ---- Hero background ---- */
.cd-hero {
  background:
    radial-gradient(58rem 30rem at 12% -12%, rgba(52, 211, 153, 0.22), transparent 60%),
    radial-gradient(48rem 26rem at 92% 6%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(165deg, #070b12 0%, #0a1120 55%, #0b1526 100%);
}
.cd-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(62% 60% at 50% 30%, black, transparent);
  mask-image: radial-gradient(62% 60% at 50% 30%, black, transparent);
}

/* ---- Text accents ---- */
.cd-gradient-text {
  background: linear-gradient(92deg, var(--cd-emerald), var(--cd-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* ---- Surfaces ---- */
.cd-panel {
  background: linear-gradient(180deg, var(--cd-panel), var(--cd-bg-soft));
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
}
.cd-card {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.9), rgba(11, 17, 28, 0.9));
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cd-card:hover {
  transform: translateY(-4px);
  border-color: var(--cd-border-2);
  box-shadow: 0 18px 40px -20px rgba(52, 211, 153, 0.35);
}
.cd-card-pop {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), 0 24px 50px -24px rgba(52, 211, 153, 0.4);
}

/* ---- Buttons ---- */
.cd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; border-radius: 12px; padding: .8rem 1.35rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  cursor: pointer; white-space: nowrap;
}
.cd-btn-primary {
  color: #04231a;
  background: linear-gradient(92deg, var(--cd-emerald), var(--cd-teal));
  box-shadow: 0 10px 26px -12px rgba(52, 211, 153, 0.7);
}
.cd-btn-primary:hover { transform: translateY(-2px); }
.cd-btn-ghost {
  color: var(--cd-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--cd-border-2);
}
.cd-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---- Pills / badges ---- */
.cd-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(52, 211, 153, 0.1); color: var(--cd-emerald);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.cd-stat { font-variant-numeric: tabular-nums; }
.cd-muted { color: var(--cd-muted); }
.cd-divider { border-color: var(--cd-border); }

/* ---- Spec table ---- */
.cd-spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cd-spec-table th, .cd-spec-table td {
  padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--cd-border);
}
.cd-spec-table thead th { color: var(--cd-muted); font-weight: 600; }
.cd-yes { color: var(--cd-emerald); font-weight: 700; }
.cd-no  { color: #64748b; }

/* ---- FAQ accordion ---- */
.cd-faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.15rem 0; font-weight: 600; cursor: pointer; color: var(--cd-text);
}
.cd-faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; color: var(--cd-muted); }
.cd-faq-item.open .cd-faq-a { max-height: 520px; }
.cd-faq-item.open .cd-faq-icon { transform: rotate(45deg); }
.cd-faq-icon { transition: transform .2s ease; color: var(--cd-emerald); flex: none; }

/* ---- Language dropdown ---- */
.cd-lang { position: relative; }
.cd-lang-menu {
  position: absolute; right: 0; top: 120%; min-width: 190px; z-index: 60;
  background: var(--cd-panel); border: 1px solid var(--cd-border-2); border-radius: 12px;
  padding: .35rem; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  box-shadow: 0 20px 45px -20px rgba(0,0,0,.7);
}
.cd-lang.open .cd-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cd-lang-menu a {
  display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 8px;
  color: var(--cd-text); font-size: .9rem;
}
.cd-lang-menu a:hover { background: rgba(255,255,255,0.05); }
.cd-lang-menu a[aria-current="true"] { color: var(--cd-emerald); }

/* ---- Mobile menu ---- */
.cd-mobile-menu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.cd-mobile-menu.open { max-height: 620px; }

/* ---- Reveal on scroll ---- */
.cd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.cd-reveal.in { opacity: 1; transform: none; }

/* ---- Checkout modal ---- */
.cd-modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(2, 6, 12, 0.78); backdrop-filter: blur(5px);
  animation: cdFade .15s ease;
}
.cd-modal {
  width: 100%; max-width: 460px; background: var(--cd-panel);
  border: 1px solid var(--cd-border-2); border-radius: 18px; padding: 1.6rem;
  animation: cdRise .2s ease;
}
.cd-input {
  width: 100%; background: var(--cd-bg-soft); border: 1px solid var(--cd-border-2);
  border-radius: 10px; padding: .7rem .85rem; color: var(--cd-text); font-size: .95rem;
}
.cd-input:focus { outline: none; border-color: var(--cd-emerald); }
@keyframes cdFade { from { opacity: 0; } }
@keyframes cdRise { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---- Footer ---- */
.cd-footer { border-top: 1px solid var(--cd-border); background: var(--cd-bg-soft); }

/* ---- Marquee logos row ---- */
.cd-logos { filter: grayscale(1); opacity: .6; }

/* ---- Blog article prose ---- */
.cd-article { color: var(--cd-muted); line-height: 1.75; font-size: 1.02rem; }
.cd-article h2 { color: var(--cd-text); font-size: 1.5rem; font-weight: 700; margin: 2.2rem 0 .8rem; letter-spacing: -0.01em; }
.cd-article h3 { color: var(--cd-text); font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .6rem; }
.cd-article p { margin: 0 0 1.1rem; }
.cd-article ul, .cd-article ol { margin: 0 0 1.2rem 1.2rem; }
.cd-article li { margin-bottom: .5rem; }
.cd-article ul { list-style: disc; }
.cd-article ol { list-style: decimal; }
.cd-article a { color: var(--cd-emerald); }
.cd-article a:hover { text-decoration: underline; }
.cd-article strong { color: var(--cd-text); }
.cd-article blockquote { border-left: 3px solid var(--cd-emerald); padding-left: 1rem; margin: 1.3rem 0; color: var(--cd-text); }

a { text-decoration: none; }
::selection { background: rgba(52, 211, 153, 0.28); }
