/* ── Pragmacars Design System ─────────────────────────────────────────────── */

@font-face {
  font-family: PragmaFont;
  src: url('../fonts/OpenSans-Regular.ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0f1628;
  --color-bg-elevated: #141d31;
  --color-bg-card: #1a2438;
  --color-bg-card-hover: #1f2d45;
  --color-surface: #1a2130;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(173, 195, 78, 0.35);
  --color-text: #e8ecf4;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-accent: #adc34e;
  --color-accent-light: #c5d96e;
  --color-accent-dark: #8fa83a;
  --font-family: PragmaFont, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(173, 195, 78, 0.12);
  --header-height: 72px;
  --container-max: 1140px;
  --content-max: 780px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--color-accent-light); }

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

.container--narrow { max-width: var(--content-max); }

/* ── Navigation ───────────────────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav .container {
  position: relative;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  position: relative;
}

.site-nav__logo img { height: 40px; width: auto; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 8px 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link--active { color: var(--color-accent); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-bg) !important;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.site-nav__cta:hover {
  background: var(--color-accent-light);
  color: var(--color-bg) !important;
  transform: translateY(-1px);
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.site-nav__toggle:hover { background: rgba(255, 255, 255, 0.06); }

/* ── Hero (Home) ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(173, 195, 78, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(173, 195, 78, 0.12);
  border: 1px solid var(--color-border-accent);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero__title-accent { color: var(--color-accent); }

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__stores {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.hero__content .hero__stores {
  justify-content: flex-start;
}

.cta-banner__inner .hero__stores {
  justify-content: center;
}

.hero__stores a {
  display: block;
  line-height: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.hero__stores a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero__stores img.store-badge {
  width: 160px;
  height: 48px;
  max-width: none;
  max-height: none;
  flex-shrink: 0;
  display: block;
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__phone-wrap {
  position: relative;
  padding: 16px;
}

.hero__phone-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(173, 195, 78, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(48px);
}

/* ── iPhone Mockup ────────────────────────────────────────────────────────── */

.iphone-mockup {
  position: relative;
  width: 220px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

.iphone-mockup__frame {
  position: relative;
  background: linear-gradient(145deg, #3a3a3c 0%, #1c1c1e 40%, #2c2c2e 100%);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 2px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.iphone-mockup__frame::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 90px;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, #4a4a4c, #2c2c2e);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 62px 0 #3a3a3c, 0 100px 0 #3a3a3c;
}

.iphone-mockup__frame::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 76px;
  width: 3px;
  height: 26px;
  background: linear-gradient(180deg, #4a4a4c, #2c2c2e);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 38px 0 #3a3a3c, 0 70px 0 #3a3a3c;
}

.iphone-mockup__screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 472 / 1024;
}

.iphone-mockup__screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.iphone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero__phone {
  position: relative;
  width: 280px;
  filter: drop-shadow(var(--shadow-lg));
}

/* ── Features ─────────────────────────────────────────────────────────────── */

.features {
  padding: 80px 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-header__desc {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(173, 195, 78, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card__title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--color-text);
}

.feature-card__text {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── CTA Banner ───────────────────────────────────────────────────────────── */

.cta-banner {
  padding: 80px 0;
  scroll-margin-top: var(--header-height);
}

.cta-banner__inner {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(173, 195, 78, 0.08) 100%);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.cta-banner__text {
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Page Header (inner pages) ────────────────────────────────────────────── */

.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.page-header__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-header__subtitle {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* ── Content / Prose ──────────────────────────────────────────────────────── */

main { flex: 1; }

.page-content {
  padding: 48px 0 80px;
}

.prose { color: var(--color-text-muted); }

.prose h3 {
  color: var(--color-text);
  font-size: 1.05rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.02em;
}

.prose p {
  margin: 0 0 1.25rem;
  text-align: justify;
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.65;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* ── About page cards ─────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.about-card__title {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.about-card__text {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

.page-content .section-header {
  text-align: center;
  margin-top: 48px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.service-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition);
}

.service-item:hover { border-color: var(--color-border-accent); }

.service-item__icon { font-size: 2rem; margin-bottom: 12px; }

.service-item__title {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0 8px;
}

.service-item__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand img { height: 36px; width: auto; margin-bottom: 16px; }

.site-footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 280px;
  line-height: 1.6;
}

.site-footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
  margin: 0 0 16px;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li { margin-bottom: 10px; }

.site-footer__links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.site-footer__links a:hover { color: var(--color-accent); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

/* ── Legacy class aliases (other pages) ───────────────────────────────────── */

.title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  border-bottom: none;
  text-transform: none;
}

.text { color: var(--color-text-muted); }

.text h3 {
  color: var(--color-text);
  font-size: 1.05rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.text p {
  margin: 0 0 1.25rem;
  text-align: justify;
  line-height: 1.75;
}

.text ul {
  margin: 0 0 1.25rem;
  padding-left: 0;
  list-style: none;
}

.text ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
}

section {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: var(--content-max);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__content .hero__stores { justify-content: center; }
  .features__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media screen and (max-width: 768px) {
  .site-nav__toggle { display: block; }

  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 22, 40, 0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 16px;
  }

  .site-nav__links.is-open { display: flex; }

  .site-nav__link { width: 100%; text-align: center; }

  .hero { padding: 48px 0 64px; }

  .iphone-mockup { width: 190px; }

  .iphone-mockup__frame { border-radius: 32px; padding: 8px; }

  .iphone-mockup__screen { border-radius: 26px; }

  .iphone-mockup__screen::before { width: 64px; height: 18px; top: 6px; }

  .cta-banner__inner { padding: 40px 24px; }

  .site-footer__bottom { flex-direction: column; text-align: center; }
}
