/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #131210;
  --bg-2:      #1c1a16;
  --bg-card:   #211f1a;
  --bg-card-2: #282420;
  --gold:      #C8A05A;
  --gold-light:#e0bc7a;
  --gold-dim:  rgba(200,160,90,0.15);
  --text:      #f0ebe0;
  --text-2:    #a89e88;
  --text-3:    #6b6354;
  --border:    rgba(200,160,90,0.18);
  --border-2:  rgba(255,255,255,0.06);
  --radius:    12px;
  --radius-lg: 20px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19,18,16,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'MedievalSharp', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── Hero — split layout ────────────────────────────────────────────── */
.hero {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* Left half — stone cross photo */
.hero-bg {
  flex: 1;
  background: url('../img/bg.jpg') 15% center / cover no-repeat;
  position: relative;
}
/* Dark vignette on right edge so it bleeds into panel */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, #0e0d0b 100%);
}

/* Right half — black panel */
.hero-panel {
  width: 46%;
  flex-shrink: 0;
  background: #0e0d0b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
  border-left: 1px solid rgba(200,160,90,0.1);
}
.hero-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 380px;
  width: 100%;
}

/* Logo image — square, fills nicely */
.hero-logo-img {
  width: min(280px, 80%);
  height: auto;
  border-radius: 12px;
  margin-bottom: 28px;
  display: block;
}

.hero-brand {
  font-family: 'MedievalSharp', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  width: 100%;
}
.hero-actions .btn {
  flex: 1;
  min-width: 120px;
}
.hero-verse {
  font-size: 0.75rem;
  color: var(--text-3);
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* Mobile: logo-only splash, no stone wall */
@media (max-width: 768px) {
  .hero { flex-direction: column; min-height: 100vh; background: #131210; }
  .hero-bg { display: none; }
  .hero-panel {
    width: 100%;
    flex: 1;
    border-left: none;
    padding: 60px 32px 64px;
    background: #131210;
    justify-content: center;
  }
  .hero-panel-inner { max-width: 420px; }
  .hero-logo-img { width: min(260px, 78%); border-radius: 20px; margin-bottom: 32px; }
  .hero-brand { font-size: 2.6rem; }
  .hero-tagline { font-size: 1.05rem; margin-bottom: 40px; }
  .hero-actions .btn { font-size: 1rem; padding: 14px 20px; }
  .hero-verse { font-size: 0.8rem; }
}



/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; border-radius: var(--radius); }

/* ── Stats ────────────────────────────────────────────────────────── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
  gap: 4px;
}
.stat-num {
  font-family: 'MedievalSharp', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-2);
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 96px 24px; }
.section-dark { background: var(--bg-2); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'MedievalSharp', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}


/* ── App Grid ──────────────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Each card: phone mockup left, details right */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 340px;
}
.app-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.app-card.featured {
  grid-column: span 2;
  border-color: rgba(200,160,90,0.3);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
  flex-direction: row;
  align-items: stretch;
}
.app-card.featured .app-card-body {
  min-width: 220px;
  max-width: 260px;
  justify-content: center;
  border-right: 1px solid var(--border-2);
}
.featured-phones {
  display: flex;
  flex: 1;
  gap: 14px;
  padding: 20px 20px;
  align-items: center;
  justify-content: center;
  background: #0d0c0a;
}
.featured-phones .phone-frame {
  flex: 1;
  min-width: 0;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8), 0 8px 32px rgba(0,0,0,0.6);
  position: relative;
}
.featured-phones .phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 16px;
  background: #000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
}
.featured-phones .phone-frame img {
  width: 100%;
  display: block;
}

/* Phone mockup panel */
.app-card-phone {
  flex-shrink: 0;
  width: 160px;
  background: #0d0c0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border-2);
}
.app-card.featured .app-card-phone {
  width: 200px;
  padding: 20px 16px;
}
.phone-frame {
  position: relative;
  width: 100%;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8), 0 8px 32px rgba(0,0,0,0.6);
}
/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 16px;
  background: #000;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
}
.phone-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Details panel */
.app-card-body {
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.app-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  width: fit-content;
}
.app-card-title {
  font-family: 'MedievalSharp', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.app-card.featured .app-card-title {
  font-size: 1.5rem;
}
.app-card-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.app-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.app-card-stack span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  padding: 3px 9px;
  border-radius: 99px;
}
.app-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 4px;
}
.app-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.6);
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── About ────────────────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text .section-eyebrow { text-align: left; }
.about-text .section-title { text-align: left; margin-bottom: 8px; }
.about-text p { color: var(--text-2); font-size: 0.95rem; line-height: 1.75; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
}
.value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-icon svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.value div { display: flex; flex-direction: column; gap: 2px; }
.value strong { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.value span { font-size: 0.82rem; color: var(--text-3); }

.services-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.services-card h3 {
  font-family: 'MedievalSharp', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.services-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}
.services-card li {
  font-size: 0.88rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.services-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.services-stack-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(200,160,90,0.2);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner .section-header { margin-bottom: 48px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border-2);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'MedievalSharp', serif;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
}
.footer-logo .nav-logo-img {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-50% - 3.8em));
}
.footer-logo .logo-mark { width: 28px; height: 28px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-3); text-align: center; }
.footer-copy { font-size: 0.75rem; color: var(--text-3); opacity: 0.6; text-align: center; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .stat { padding: 10px 20px; }
  .stat-divider { display: none; }
  .app-card.featured { grid-column: span 1; flex-direction: column; }
  .app-card.featured .app-card-body { max-width: 100%; border-right: none; border-bottom: 1px solid var(--border-2); }
  .featured-phones { padding: 16px 12px; gap: 8px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { flex-direction: column; min-height: unset; }
  .app-card-phone { width: 100%; border-right: none; border-bottom: 1px solid var(--border-2); padding: 20px; justify-content: center; }
  .phone-frame { max-width: 200px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .btn { padding: 13px 24px; font-size: 0.85rem; }
}
