:root {
  --brand: #c2580a;
  --brand-dark: #7a3a04;
  --brand-light: #fdefd8;
  --blue: #1a6fd4;
  --blue-light: #e8f1fb;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0d5cc;
  --card-bg: #fff;
  --page-bg: #f8f4f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, #4a2202 0%, #8a3a05 40%, #c2580a 100%);
  color: white;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.07) 0%, transparent 60%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-runner {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  flex-shrink: 0;
}

.hero-brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-brand span {
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.hero-tagline {
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ── APPS GRID ── */
.apps-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* ── APP CARD ── */
.app-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.card-header {
  padding: 28px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
}

.platform-ios  { background: #e8f5e9; color: #2e7d32; }
.platform-macos { background: #e3f2fd; color: #1565c0; }

.card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.card-body {
  padding: 0 28px 24px;
  flex: 1;
}

.card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  margin-bottom: 24px;
}

.card-features li {
  font-size: 0.88rem;
  color: #444;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.card-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.card-screenshot {
  padding: 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 260px;
  overflow: hidden;
}

.card-screenshot img.ss-ios {
  height: 210px;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 7px solid #1c1c1e;
  outline: 1px solid rgba(0,0,0,0.08);
  display: block;
}

.card-screenshot img.ss-mac {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  border: 1px solid var(--border);
  display: block;
}

.card-actions {
  padding: 0 28px 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-primary-blue { background: var(--blue); color: white; }
.btn-primary-blue:hover { background: #1558b0; }

.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand-light); }

.btn-outline-blue { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue-light); }

.accent-bar { height: 4px; width: 100%; }

/* ── INFO LEISTE ── */
.info-section {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.info-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.info-item p  { font-size: 0.88rem; color: var(--muted); }
.info-icon    { font-size: 2rem; margin-bottom: 12px; }

/* ── FOOTER ── */
footer {
  background: #2a1505;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 48px 24px;
}

.footer-runner {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.6;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

footer h4 { color: white; font-size: 1rem; margin-bottom: 6px; }
footer p  { font-size: 0.85rem; margin-bottom: 4px; }
footer a  { color: #f5a96e; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 28px auto;
  max-width: 400px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 20px;
}

/* ── MODALS ── */
.trp-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.trp-overlay.open { display: flex; }

.trp-dialog {
  background: white;
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.trp-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 1.1rem;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.trp-close:hover { color: var(--text); }

.trp-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.trp-sub   { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

.trp-field { margin-bottom: 14px; }
.trp-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; }
.trp-field input,
.trp-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.92rem; font-family: inherit;
  outline: none; resize: vertical;
}
.trp-field input:focus,
.trp-field textarea:focus { border-color: var(--blue); }

/* ── LANGUAGE TOGGLE ── */
.lang-toggle { display: flex; gap: 6px; margin-left: auto; }
.lang-btn {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9); padding: 4px 10px; border-radius: 5px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.25); }
.lang-btn.active { background: #fff; color: #8a3a05; border-color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .apps-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .card-screenshot--mac { margin-bottom: 16px; }
}
