/* HabeshaFeed marketing — product-forward, Mercury structure + device mockups */
:root {
  /* Match HabeshaFeed app sphere palette */
  --bg: #f7f6f2;
  --bg-soft: #efece4;
  --surface: #ffffff;
  --ink: #050505;
  --ink-soft: #2a2a2a;
  --muted: #6e6e6e;
  --line: #e5e0d4;
  --gold: #d4af37;
  --gold-bright: #e8c547;
  --gold-deep: #9a7b2c;
  --green: #153d30;
  --green-soft: #1f4f3e;
  --phone-black: #050505;
  --phone-card: #14141a;
  --phone-border: #2e2e38;
  --phone-muted: #9e9ea8;
  --phone-text: #f5f5f5;
  --titanium: #3a3a3c;
  --titanium-hi: #6e6e70;
  --titanium-lo: #1c1c1e;
  --max: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --font: "Inter", system-ui, sans-serif;
  --display: "Instrument Sans", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 245, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: none;
  gap: 1.6rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 0.3rem;
  background: var(--gold);
  color: #050505;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #050505;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.88;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(21, 61, 48, 0.08), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }
}

.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-tagline {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-deep);
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust li {
  padding-left: 0.85rem;
  position: relative;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Devices — iPhone 17 Pro Max inspired */
.hero-devices {
  position: relative;
  min-height: 34rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.phone {
  width: min(100%, 18.25rem);
}

.phone-pro {
  aspect-ratio: 9 / 19.5;
}

.phone-bezel {
  position: relative;
  height: 100%;
  border-radius: 3.05rem;
  padding: 0.42rem;
  background:
    linear-gradient(145deg, var(--titanium-hi) 0%, var(--titanium) 28%, var(--titanium-lo) 72%, #0e0e10 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

/* Flat titanium sides / hardware cues */
.phone-pro .phone-bezel::before,
.phone-pro .phone-bezel::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #8a8a8e, #3a3a3c 40%, #2a2a2c);
  border-radius: 2px;
  z-index: 3;
}

.phone-pro .phone-bezel::before {
  left: -0.14rem;
  top: 22%;
  width: 0.14rem;
  height: 18%;
  box-shadow: 0 2.6rem 0 0 #5c5c60, 0 4.4rem 0 0 #5c5c60;
}

.phone-pro .phone-bezel::after {
  right: -0.14rem;
  top: 28%;
  width: 0.14rem;
  height: 12%;
}

.dynamic-island {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 6.1rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.dynamic-island::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a3a4a, #050505 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  background: var(--phone-black);
  border-radius: 2.65rem;
  height: 100%;
  min-height: 32rem;
  padding: 2.55rem 0.7rem 0.55rem;
  overflow: hidden;
  color: var(--phone-text);
}

.phone-front {
  position: relative;
  z-index: 2;
  animation: float-a 5.5s ease-in-out infinite;
}

.phone-back {
  position: absolute;
  width: min(88%, 15.75rem);
  left: 2%;
  bottom: 1.25rem;
  z-index: 1;
  transform: rotate(-7deg);
  opacity: 0.96;
  animation: float-b 6.2s ease-in-out infinite;
}

.phone-back .phone-screen {
  min-height: 28rem;
}

@media (max-width: 959px) {
  .phone-back {
    display: none;
  }

  .hero-devices {
    min-height: 0;
  }

  .phone-front {
    width: min(100%, 17.5rem);
  }
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55rem); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-0.35rem); }
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.app-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-brand span {
  color: var(--gold);
}

.chip-row {
  display: flex;
  gap: 0.35rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.chip {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--phone-muted);
  border: 1px solid var(--phone-border);
  background: transparent;
}

.chip.on {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
}

.card {
  background: var(--phone-card);
  border: 1px solid var(--phone-border);
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.55rem;
}

.card-meta {
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--phone-muted);
}

.tab-bar {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.45rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.25rem;
  border-top: 1px solid var(--phone-border);
  background: linear-gradient(transparent, var(--phone-black) 30%);
  font-size: 0.52rem;
  color: var(--phone-muted);
  text-align: center;
}

.tab-bar .on {
  color: var(--gold);
  font-weight: 650;
}

.tab-bar .fab {
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
}

.msg-row {
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem;
  margin-bottom: 0.45rem;
  border-radius: 0.7rem;
  background: var(--phone-card);
  border: 1px solid var(--phone-border);
}

.msg-row .dot {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a6b52, #153d30);
  flex-shrink: 0;
}

.msg-row .dot.gold {
  background: linear-gradient(135deg, #e8c547, #9a7b1c);
}

.msg-row .dot.green {
  background: linear-gradient(135deg, #4a9, #153d30);
}

.msg-row b {
  display: block;
  font-size: 0.72rem;
}

.msg-row p {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--phone-muted);
}

/* Band */
.band {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: #0c0c0e;
  color: #f5f5f5;
  border-top: 3px solid var(--gold);
}

.band-grid {
  display: grid;
  gap: 1rem 3rem;
}

@media (min-width: 800px) {
  .band-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }
}

.band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.band p {
  margin: 0;
  color: rgba(245, 245, 245, 0.86);
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background: var(--bg-soft);
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Feature showcase */
.feature-showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.feature-item {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 0.55;
}

.feature-item:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-item.is-active {
  opacity: 1;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-item.is-active h3 {
  color: var(--gold-deep);
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.feature-phone-wrap {
  display: flex;
  justify-content: center;
}

.phone-solo {
  width: min(100%, 18.25rem);
  animation: float-a 5.5s ease-in-out infinite;
}

.phone-solo .phone-screen {
  min-height: 32rem;
}

.feature-panels {
  position: relative;
  min-height: 11.5rem;
}

.feature-panel {
  display: none;
}

.feature-panel.is-visible {
  display: block;
  animation: panel-in 0.35s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* How */
.how-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .how-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.85rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.step-n {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Why */
.why {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 860px) {
  .why {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: end;
  }
}

.stats {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.stats > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.stats dt {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-deep);
}

.stats dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--ink);
  color: #f5f5f5;
}

.cta-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .cta-grid {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0;
  color: rgba(245, 245, 245, 0.75);
}

.cta .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #050505;
}

.cta .btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #050505;
}

.cta .btn-outline {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(245, 245, 245, 0.28);
}

.cta .btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

/* Footer */
.foot {
  padding: 1.75rem 0 2.25rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.foot nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.foot nav a:hover {
  color: var(--ink);
}

.copy {
  margin: 0;
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Inner pages */
.page-hero {
  padding: clamp(3rem, 7vw, 4.25rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem var(--pad) 4rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--gold-deep);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.15rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--gold-deep);
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .phone-front,
  .phone-back,
  .phone-solo,
  .feature-panel.is-visible {
    animation: none;
  }
}
