/*
Theme Name: Asphalt Dreams
Theme URI: https://asphaltdreams.dev
Author: Asphalt Dreams
Description: Studio site for Asphalt Dreams: home page, app pages (Dramix) with privacy policy and support.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: asphaltdreams
*/

:root {
  --bg: #07060d;
  --bg-2: #0e0c18;
  --card: #13101f;
  --card-2: #1a1630;
  --border: rgba(160, 130, 255, 0.16);
  --text: #f1eff8;
  --muted: #a39fb6;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: "Exo 2", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Logos have black backgrounds: blend them into the dark page. */
.blend { mix-blend-mode: screen; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 6, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.current { color: #fff; background: rgba(139, 92, 246, .14); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero .logo { width: min(420px, 82vw); margin: 0 auto 18px; position: relative; }
.hero p.lead { color: var(--muted); font-size: 1.2rem; max-width: 640px; margin: 0 auto 28px; position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; box-shadow: 0 8px 30px var(--accent-glow);
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--muted); margin-bottom: 0; }

.app-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.app-card img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.app-card .info { flex: 1 1 260px; }
.app-card .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent-2); background: rgba(139,92,246,.14); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.app-card .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.feature .icon { font-size: 1.6rem; margin-bottom: 8px; }

/* Legal / docs pages */
.doc { padding: 48px 0 72px; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc h2 { margin-top: 1.8em; font-size: 1.35rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .summary { background: rgba(139,92,246,.10); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 8px; }
.lang-switch { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 8px 0 24px; }
.lang-switch a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.lang-switch a:hover { color: #fff; background: rgba(139,92,246,.18); }
.lang-block + .lang-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Generic WP content */
.entry { padding: 48px 0 72px; }
.entry-content a { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); margin-left: 16px; }
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { color: #fff; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .container { flex-direction: column; align-items: center; padding-top: 10px; padding-bottom: 8px; gap: 4px; }
  .brand img { height: 36px; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 48px 0; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
