/*
Theme Name: Smydev One-Pager
Theme URI: https://smydev.com
Author: smydev
Description: A minimal one-page WordPress theme for showcasing a mobile app. Content is fully editable from Appearance → Customize.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: smydev
*/

:root {
  --bg: #0b0d14;
  --bg-soft: #11141d;
  --surface: #161a26;
  --text: #e7ebf3;
  --text-dim: #9aa3b8;
  --accent: #6c7bff;
  --accent-soft: rgba(108, 123, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --max: 1120px;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --text: #0b0d14;
  --text-dim: #5b6478;
  --accent: #5b6cff;
  --accent-soft: rgba(91, 108, 255, 0.10);
  --border: rgba(15, 20, 35, 0.08);
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --surface: #ffffff;
    --text: #0b0d14;
    --text-dim: #5b6478;
    --accent: #5b6cff;
    --accent-soft: rgba(91, 108, 255, 0.10);
    --border: rgba(15, 20, 35, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 70vh;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 28px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img {
  max-height: 40px;
  width: auto;
  display: block;
}
.site-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 64px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 32ch;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.store-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge-text small {
  font-size: 11px;
  color: #bfc4d1;
  font-weight: 400;
}
.store-badge-text strong {
  font-size: 16px;
  font-weight: 600;
}

/* Phone mockup */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}
.phone {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 38px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 13px;
  padding: 24px;
  text-align: center;
}

.phone-stack .phone {
  position: absolute;
  transition: transform 0.4s ease;
}
.phone-stack .phone:nth-child(1) {
  transform: translateX(-110px) rotate(-6deg);
  z-index: 1;
  opacity: 0.85;
}
.phone-stack .phone:nth-child(2) {
  transform: translateY(-10px);
  z-index: 3;
}
.phone-stack .phone:nth-child(3) {
  transform: translateX(110px) rotate(6deg);
  z-index: 1;
  opacity: 0.85;
}

/* Features */
.features {
  padding: 32px 0 80px;
}
.features-heading {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  max-width: 24ch;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-desc {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    padding: 32px 0 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .store-badges {
    justify-content: center;
  }
  .phones {
    min-height: 480px;
  }
  .phone {
    width: 220px;
  }
  .phone-stack .phone:nth-child(1) {
    transform: translateX(-80px) rotate(-6deg);
  }
  .phone-stack .phone:nth-child(3) {
    transform: translateX(80px) rotate(6deg);
  }
}

@media (max-width: 480px) {
  .phone-stack .phone:nth-child(1),
  .phone-stack .phone:nth-child(3) {
    display: none;
  }
}
