/* ============================================================
   chillworks-apps — landing
   Paleta de marca (ChillPocket): dark theme, Inter / Inter Tight
   ============================================================ */
:root {
  --bg: #14181b;
  --bg-2: #0f1316;
  --card: #1d2428;
  --card-alt: #222a2e;
  --border: #2f3a40;
  --teal: #39d2c0;
  --red: #ff5963;
  --purple: #4b39ef;
  --yellow: #f9cf58;
  --text: #e0e3e7;
  --text-bright: #f1f4f8;
  --text-dim: #9aa7b2;
  --text-faint: #6b7780;
  --maxw: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Inter Tight", "Inter", sans-serif; color: var(--text-bright); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─────────── Nav ─────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 40px);
  background: rgba(20, 24, 27, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-text { font-family: "Inter Tight", sans-serif; font-weight: 800; font-size: 17px; color: var(--text-bright); letter-spacing: -0.02em; }
.brand-accent { color: var(--teal); }
.nav-right { display: flex; align-items: center; gap: clamp(12px, 3vw, 22px); }
.nav-link { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--text-bright); }

.lang-wrap { display: inline-flex; }
#lang {
  appearance: none; -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239aa7b2' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 30px 8px 12px; font-family: inherit; font-size: 13px; cursor: pointer;
}
#lang:hover { border-color: var(--purple); }

/* ─────────── Buttons ─────────── */
.btn { display: inline-block; border-radius: 12px; padding: 13px 26px; font-weight: 600; font-size: 15px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 24px rgba(75, 57, 239, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(75, 57, 239, .45); }

/* ─────────── Hero ─────────── */
.hero { position: relative; padding: clamp(56px, 11vw, 120px) clamp(16px, 5vw, 40px) clamp(40px, 7vw, 80px); text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 480px; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(75, 57, 239, .28), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(57, 210, 192, .18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-title { font-size: clamp(30px, 6vw, 54px); font-weight: 800; letter-spacing: -0.03em; }
.hero-desc { margin: 20px auto 0; max-width: 560px; color: var(--text-dim); font-size: clamp(15px, 2vw, 18px); }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.value-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text);
}
.value-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero-cta { margin-top: 34px; }

/* ─────────── Sections ─────────── */
.section-title { text-align: center; font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-dim); margin: 10px auto 0; max-width: 520px; }

.apps { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px, 6vw, 60px) clamp(16px, 5vw, 40px); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 34px; }

.app-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: transform .18s, border-color .2s, background .2s;
}
.app-card:not(.app-card-soon):hover { transform: translateY(-3px); border-color: rgba(75, 57, 239, .55); background: var(--card-alt); }
.app-card-soon { opacity: .7; }
.app-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; }
.app-badge-cp { background: linear-gradient(135deg, #4b39ef, #39d2c0); }
.app-badge-soon { background: var(--card-alt); border: 1px solid var(--border); }
.app-badge-lg { width: 60px; height: 60px; border-radius: 16px; }
.app-card-body { flex: 1; min-width: 0; }
.app-card-name { font-size: 18px; font-weight: 700; }
.app-card-tag { color: var(--text-dim); font-size: 13.5px; margin-top: 3px; }
.app-card-arrow { color: var(--text-dim); font-size: 20px; transition: transform .2s; }
.app-card:hover .app-card-arrow { transform: translateX(4px); color: var(--teal); }

/* ─────────── App detail ─────────── */
.app-detail {
  max-width: var(--maxw); margin: 0 auto; scroll-margin-top: 80px;
  padding: clamp(30px, 6vw, 64px) clamp(16px, 5vw, 40px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.detail-visual { display: flex; justify-content: center; }
.phone { width: min(280px, 72vw); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); }
.detail-name { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 16px; letter-spacing: -0.02em; }
.detail-tag { color: var(--teal); font-weight: 600; margin-top: 6px; }
.detail-desc { color: var(--text-dim); margin-top: 16px; font-size: 15.5px; }

.feature-list { list-style: none; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(57, 210, 192, .12); color: var(--teal); font-size: 13px; font-weight: 700;
}

.get-title { font-size: 16px; font-weight: 700; margin: 30px 0 14px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 18px; transition: transform .15s, border-color .2s, background .2s;
}
.store-btn:not(.store-btn-soon):hover { transform: translateY(-2px); border-color: rgba(57, 210, 192, .6); background: var(--card-alt); }
.store-btn-soon { opacity: .55; cursor: default; }
.store-btn-txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-txt small { color: var(--text-dim); font-size: 11px; }
.store-btn-txt strong { font-family: "Inter Tight", sans-serif; font-size: 16px; color: var(--text-bright); }

/* ─────────── Footer ─────────── */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px clamp(16px, 5vw, 40px) 30px; background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-tag { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-rights { max-width: var(--maxw); margin: 24px auto 0; color: var(--text-faint); font-size: 12.5px; }

/* ─────────── Responsive ─────────── */
@media (max-width: 760px) {
  .app-detail { grid-template-columns: 1fr; text-align: center; }
  .feature-list li { text-align: left; }
  .store-buttons { justify-content: center; }
  .detail-visual { order: -1; }
  .nav-link { display: none; }
}
