:root {
  --landing-ink: #16322f;
  --landing-green: #1f5a50;
  --landing-green-dark: #123b37;
  --landing-mint: #dcebe5;
  --landing-paper: #f6f3ec;
  --landing-paper-deep: #ece7dc;
  --landing-coral: #c65f45;
  --landing-line: rgba(22, 50, 47, 0.16);
}

html {
  scroll-behavior: smooth;
}

.landing-page {
  margin: 0;
  background: var(--landing-paper);
  color: var(--landing-ink);
  overflow-x: hidden;
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  pointer-events: none;
  background-image: radial-gradient(rgba(22, 50, 47, 0.16) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
}

.landing-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: white;
  color: var(--landing-green-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(246, 243, 236, 0.94);
  box-shadow: 0 1px 0 var(--landing-line);
  backdrop-filter: blur(14px);
}

.navbar-container {
  width: min(1180px, calc(100% - 40px));
  height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--landing-green-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.navbar-logo img,
.footer-brand img {
  width: 36px;
  height: 36px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  position: relative;
  color: #38514d;
  font-size: 0.92rem;
  font-weight: 600;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 2px;
  background: var(--landing-coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.navbar-links a:hover::after,
.navbar-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--landing-green);
  border-radius: 8px;
  color: var(--landing-green-dark);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-login:hover {
  background: var(--landing-green-dark);
  color: white;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 120px 0 76px;
  isolation: isolate;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  z-index: -1;
  opacity: 0.65;
  background:
    linear-gradient(135deg, transparent 45%, rgba(31, 90, 80, 0.08) 45% 55%, transparent 55%) 0 0 / 38px 38px,
    linear-gradient(45deg, transparent 45%, rgba(198, 95, 69, 0.08) 45% 55%, transparent 55%) 0 0 / 38px 38px;
  mask-image: linear-gradient(to right, black, transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.hero-copy {
  padding-top: 1rem;
}

.hero-kicker,
.section-heading > p,
.themes-copy > p,
.showcase-copy > p,
.contact-layout > div > p {
  margin: 0 0 1rem;
  color: var(--landing-coral);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--landing-green-dark);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 610px;
  margin: 1.6rem 0 0;
  color: #4e6661;
  font-size: 1.12rem;
  line-height: 2;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.4rem;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.landing-btn:active {
  transform: translateY(0);
}

.landing-btn-primary {
  color: white;
  background: var(--landing-green-dark);
  box-shadow: 0 12px 28px rgba(18, 59, 55, 0.18);
}

.landing-btn-primary:hover {
  background: var(--landing-green);
}

.landing-btn-light {
  color: var(--landing-green-dark);
  background: white;
}

.landing-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--landing-green-dark);
  font-weight: 800;
}

.landing-text-link span {
  transition: transform 0.2s ease;
}

.landing-text-link:hover span {
  transform: translateX(-4px);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-top: 2.4rem;
  color: #5d716d;
  font-size: 0.8rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-notes span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--landing-coral);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-arch {
  position: relative;
  width: min(440px, 100%);
  min-height: 590px;
  display: grid;
  place-items: end center;
  padding: 54px 35px 0;
  overflow: hidden;
  border-radius: 220px 220px 18px 18px;
  background:
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.02)),
    var(--landing-green);
  box-shadow: 28px 30px 0 var(--landing-mint);
}

.hero-arch::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 200px 200px 10px 10px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 285px;
  min-height: 520px;
  padding: 12px;
  color: #173a35;
  background: #fbfaf6;
  border: 6px solid #153d38;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 25px 60px rgba(9, 36, 33, 0.35);
}

.phone-top {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 4px;
  font-size: 0.65rem;
}

.phone-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--landing-coral);
}

.phone-top i {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #cad6d2;
}

.phone-cover {
  height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 22px 22px 8px 8px;
  color: white;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,.18) 0 18%, transparent 19%),
    linear-gradient(145deg, #296e63, #16463f);
}

.phone-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-weight: 900;
}

.phone-cover small {
  color: rgba(255,255,255,.7);
  font-size: 0.6rem;
}

.phone-categories {
  display: flex;
  gap: 7px;
  padding: 14px 0 10px;
  overflow: hidden;
}

.phone-categories span {
  white-space: nowrap;
  padding: 5px 9px;
  border: 1px solid #d5dfdb;
  border-radius: 7px;
  color: #4d6560;
  font-size: 0.57rem;
}

.phone-categories span:first-child {
  color: white;
  border-color: var(--landing-green);
  background: var(--landing-green);
}

.phone-menu-list {
  display: grid;
  gap: 9px;
}

.phone-menu-list article {
  display: grid;
  grid-template-columns: 57px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid #e5e8e2;
  border-radius: 10px;
  background: white;
}

.food-thumb {
  height: 54px;
  border-radius: 8px;
}

.food-thumb-one {
  background:
    radial-gradient(circle at 48% 45%, #f0d077 0 13%, transparent 14%),
    radial-gradient(circle at 40% 55%, #547f4c 0 23%, transparent 24%),
    #d5b69c;
}

.food-thumb-two {
  background:
    linear-gradient(90deg, transparent 42%, rgba(255,255,255,.75) 42% 48%, transparent 48%),
    linear-gradient(#d68c61 0 72%, #ece5d7 72%);
}

.phone-menu-list article div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.phone-menu-list b {
  font-size: 0.65rem;
}

.phone-menu-list small {
  color: #87948f;
  font-size: 0.53rem;
}

.phone-menu-list strong {
  color: var(--landing-coral);
  font-size: 0.68rem;
}

.arch-stamp {
  position: absolute;
  right: 15px;
  bottom: 36px;
  z-index: 2;
  padding: 0.65rem 0.8rem;
  color: var(--landing-green-dark);
  border: 1px solid rgba(18,59,55,.18);
  border-radius: 7px;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(18, 59, 55, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(3deg);
}

.trust-strip {
  border-block: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.36);
}

.trust-strip .landing-container {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.trust-strip p {
  max-width: 440px;
  margin: 0;
  color: #506762;
}

.trust-strip div div {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  color: #38514d;
  font-size: 0.82rem;
  font-weight: 700;
}

.trust-strip b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--landing-green);
  font-size: 0.7rem;
}

.features-section,
.themes-section,
.showcase-section,
.contact-section {
  padding: 110px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 3.5rem;
}

.section-heading h2,
.themes-copy h2,
.showcase-copy h2,
.contact-layout h2 {
  margin: 0;
  color: var(--landing-green-dark);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.5rem;
}

.feature-primary {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem;
  overflow: hidden;
  border-radius: 18px;
  color: white;
  background: var(--landing-green-dark);
}

.feature-primary::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -100px;
  border: 55px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.feature-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 0.78rem;
}

.feature-primary h3,
.feature-row h3 {
  margin: 0;
}

.feature-primary h3 {
  max-width: 480px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.feature-primary p {
  max-width: 500px;
  color: rgba(255,255,255,.67);
  line-height: 1.9;
}

.mini-editor {
  position: relative;
  z-index: 1;
  max-width: 410px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}

.mini-editor span {
  height: 34px;
  border-radius: 5px;
  background: rgba(255,255,255,.12);
}

.mini-editor span:first-child {
  grid-column: 1 / -1;
}

.mini-editor button {
  grid-column: 2;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  color: var(--landing-green-dark);
  background: #d9a96a;
  font-family: inherit;
  font-weight: 800;
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-row {
  min-height: 148px;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--landing-line);
}

.feature-row:first-child {
  border-top: 1px solid var(--landing-line);
}

.feature-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 90, 80, 0.2);
  border-radius: 14px 4px 14px 4px;
  color: var(--landing-green);
  background: rgba(255,255,255,.4);
  font-weight: 900;
}

.feature-row h3 {
  color: var(--landing-green-dark);
  font-size: 1.12rem;
}

.feature-row p {
  margin: 0.45rem 0 0;
  color: #637873;
  line-height: 1.8;
  font-size: 0.9rem;
}

.themes-section {
  background: var(--landing-paper-deep);
}

.themes-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.themes-description {
  margin: 1.4rem 0 1.8rem;
  color: #5e736e;
  line-height: 2;
}

.theme-fan {
  position: relative;
  min-height: 460px;
}

.fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 380px;
  padding: 1.4rem;
  border: 7px solid rgba(255,255,255,.75);
  border-radius: 22px;
  box-shadow: 0 25px 55px rgba(41, 55, 51, 0.18);
  transition: transform 0.3s ease;
}

.fan-card span,
.fan-card b {
  display: block;
}

.fan-card span {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.fan-card b {
  opacity: 0.66;
  font-size: 0.75rem;
}

.fan-card i {
  display: block;
  height: 92px;
  margin-top: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}

.fan-persian {
  color: #eaf5f1;
  background: #1e5a5b;
  transform: translate(-85%, -48%) rotate(-11deg);
}

.fan-cafe {
  z-index: 2;
  color: #4a3428;
  background: #d8c2a8;
  transform: translate(-50%, -55%);
}

.fan-minimal {
  color: #1f2937;
  background: #f8f8f5;
  transform: translate(-15%, -48%) rotate(11deg);
}

.theme-fan:hover .fan-persian {
  transform: translate(-92%, -48%) rotate(-14deg);
}

.theme-fan:hover .fan-minimal {
  transform: translate(-8%, -48%) rotate(14deg);
}

.showcase-panel {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 3rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 20px 20px 70px 20px;
  color: white;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.1) 0 18%, transparent 19%),
    var(--landing-green-dark);
}

.showcase-copy h2 {
  color: white;
}

.showcase-copy > p:nth-of-type(2) {
  max-width: 560px;
  margin: 1rem 0 1.7rem;
  color: rgba(255,255,255,.68);
  line-height: 1.9;
}

.showcase-details {
  display: grid;
  gap: 1rem;
}

.showcase-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.showcase-details span {
  color: rgba(255,255,255,.55);
  font-size: 0.78rem;
}

.showcase-details strong {
  font-size: 0.9rem;
}

.contact-section {
  padding-top: 35px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 4rem;
  padding-top: 75px;
  border-top: 1px solid var(--landing-line);
}

.contact-action {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
}

.contact-action span {
  color: #637873;
  font-size: 0.85rem;
}

.contact-action a {
  color: var(--landing-coral);
  font-size: 1.7rem;
  font-weight: 900;
}

.landing-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--landing-line);
}

.landing-footer .landing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.landing-footer p {
  margin: 0;
  color: #71827e;
  font-size: 0.78rem;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  color: var(--landing-green-dark);
  background: rgba(255,255,255,.35);
  font-family: inherit;
  cursor: pointer;
}

.user-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--landing-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  width: 190px;
  padding: 0.45rem;
  border: 1px solid var(--landing-line);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(18,59,55,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown.active .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 7px;
  color: #425b56;
  font-size: 0.84rem;
}

.dropdown-item:hover {
  background: var(--landing-mint);
}

.dropdown-item.logout {
  color: #a33d2f;
}

.dropdown-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--landing-line);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(198, 95, 69, 0.45);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .feature-layout,
  .themes-layout,
  .showcase-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-notes {
    justify-content: center;
  }

  .hero-arch {
    min-height: 520px;
    box-shadow: 18px 20px 0 var(--landing-mint);
  }

  .trust-strip .landing-container {
    padding-block: 1.5rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-primary {
    min-height: 430px;
  }

  .themes-copy {
    max-width: 620px;
  }

  .showcase-panel {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .landing-container,
  .navbar-container {
    width: min(100% - 28px, 1180px);
  }

  .navbar-container {
    height: 66px;
  }

  .user-name {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

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

  .hero-arch {
    min-height: 455px;
    padding-inline: 18px;
    border-radius: 180px 180px 14px 14px;
  }

  .phone-frame {
    width: 245px;
    min-height: 445px;
  }

  .phone-cover {
    height: 110px;
  }

  .arch-stamp {
    right: 4px;
    bottom: 24px;
  }

  .trust-strip div div {
    display: grid;
    gap: 0.8rem;
  }

  .features-section,
  .themes-section,
  .showcase-section,
  .contact-section {
    padding: 78px 0;
  }

  .feature-primary {
    min-height: 500px;
    padding: 1.5rem;
  }

  .mini-editor {
    grid-template-columns: 1fr;
  }

  .mini-editor span:first-child,
  .mini-editor button {
    grid-column: auto;
  }

  .feature-row {
    grid-template-columns: 48px 1fr;
    padding-inline: 0.4rem;
  }

  .feature-symbol {
    width: 44px;
    height: 44px;
  }

  .theme-fan {
    min-height: 385px;
    transform: scale(0.8);
    margin-inline: -55px;
  }

  .showcase-panel {
    padding: 2rem 1.4rem;
    border-radius: 16px 16px 42px 16px;
  }

  .contact-layout {
    gap: 2rem;
  }

  .landing-footer .landing-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
