/*
Theme Name: Yoelix Android
Theme URI: https://yoelix.com/
Author: Yoelix
Author URI: https://yoelix.com/
Description: A focused landing page theme for an Android application developer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: yoelix-android
*/

:root {
  --bg: #f7f9fb;
  --ink: #14213d;
  --muted: #566274;
  --line: #d9e0e8;
  --surface: #ffffff;
  --brand: #21a67a;
  --brand-dark: #0d6b58;
  --accent: #ffb84d;
  --code: #202533;
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(33, 166, 122, 0.28);
}

.btn-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

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

.hero-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 770px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 650px;
}

.metric {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.phone-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.phone {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18;
  padding: 14px;
  border: 10px solid #111827;
  border-radius: 38px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #f8fafc;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: var(--brand);
  color: #ffffff;
}

.app-title {
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.app-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.app-card {
  min-height: 86px;
  padding: 16px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #ffffff;
}

.app-card strong {
  display: block;
  margin-bottom: 8px;
}

.bar {
  display: block;
  height: 8px;
  margin-top: 8px;
  border-radius: 6px;
  background: #dbe4ee;
}

.bar.short {
  width: 58%;
}

.bar.medium {
  width: 76%;
}

.code-panel {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: min(310px, 80vw);
  padding: 18px;
  border-radius: 8px;
  background: var(--code);
  color: #d8f3dc;
  box-shadow: var(--shadow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.code-panel .accent {
  color: var(--accent);
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #ffffff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

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

.card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

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

.work-list {
  display: grid;
  gap: 14px;
}

.work-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.work-step {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 850;
}

.cta {
  background: var(--ink);
  color: #ffffff;
}

.cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.cta p {
  max-width: 650px;
  margin-bottom: 0;
  color: #cbd5e1;
}

.site-footer {
  padding: 28px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  font-size: 14px;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 750;
}

.page-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.content-page {
  color: var(--ink);
}

.page-title {
  margin-bottom: 28px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.page-content {
  color: var(--muted);
  font-size: 17px;
}

.page-content h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.page-content p,
.page-content ul,
.page-content ol {
  margin-bottom: 18px;
}

.page-content a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-inner,
  .cta .section-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .phone-scene {
    min-height: 520px;
  }

  .code-panel {
    right: 50%;
    transform: translateX(50%);
  }

  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .cta .section-inner {
    align-items: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-inner,
  .section-inner,
  .nav,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .phone-scene {
    min-height: 470px;
  }

  .phone {
    width: min(280px, 82vw);
  }

  .code-panel {
    width: min(292px, 92vw);
    bottom: 6px;
  }

  .work-item {
    grid-template-columns: 1fr;
  }
}
