/* ==========================================================================
   Morfo Studio — Design tokens
   ========================================================================== */

:root {
  --ink:        #12141A;
  --ink-raised: #1B1E27;
  --ink-line:   #2A2E3A;
  --paper:      #ECEAE3;
  --paper-dim:  #A7A79E;
  --brass:      #C99B4A;
  --brass-dim:  #8E6E37;
  --teal:       #4A7C82;

  --font-fa: 'Vazirmatn', sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;

  --wrap: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-fa);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; color: var(--paper-dim); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* subtle grain so the dark field doesn't feel flat/digital */
.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brass);
  color: #16130B;
}
.btn-primary:hover { background: #DBAE63; }

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

.btn-ghost {
  border: 1px solid var(--ink-line);
  color: var(--paper);
  padding: 9px 20px;
  font-size: 0.9rem;
}
.btn-ghost:hover { border-color: var(--brass-dim); }

.btn-text {
  padding: 13px 4px;
  color: var(--paper-dim);
}
.btn-text:hover { color: var(--paper); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 20, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-brand);
}

.brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
}
.brand-mark.small { font-size: 1.1rem; }

.brand-suffix {
  font-size: 0.85rem;
  color: var(--brass);
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--paper-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--paper); }

.header-cta { display: none; }
@media (min-width: 860px) { .header-cta { display: inline-flex; } }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.28;
}

.hero-line-break { display: block; color: var(--brass); }

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--paper-dim);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 420px;
}

.morph-shape {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  height: 78%;
  background: linear-gradient(155deg, var(--brass-dim), var(--teal) 130%);
  opacity: 0.28;
  filter: blur(2px);
  border-radius: 42% 58% 63% 37% / 41% 47% 53% 59%;
  animation: morph 14s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 47% 53% 59%; }
  50%      { border-radius: 60% 40% 38% 62% / 55% 40% 60% 45%; }
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 168px;
  padding: 14px 18px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  font-size: 0.9rem;
}

.hero-card-1 { top: 6%;  left: 2%; }
.hero-card-2 { top: 42%; left: 46%; }
.hero-card-3 { top: 74%; left: 8%; }

.hero-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
}

/* ==========================================================================
   Section head
   ========================================================================== */

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.section-head p { font-size: 1.02rem; }

section { padding: 100px 0; }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 22px;
}

.step { max-width: 280px; }

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--brass-dim);
  color: var(--brass);
  border-radius: 50%;
  font-family: var(--font-brand);
  font-weight: 600;
  margin-bottom: 22px;
}

.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.96rem; }

.step-connector {
  align-self: center;
  height: 1px;
  width: 100%;
  min-width: 24px;
  background: var(--ink-line);
  margin-top: 20px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-connector { display: none; }
  .step { max-width: none; }
}

/* ==========================================================================
   Business types
   ========================================================================== */

.businesses { background: var(--ink-raised); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}

.biz-item {
  background: var(--ink-raised);
  padding: 30px 26px;
  font-size: 1.02rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.biz-item:hover { background: var(--ink); color: var(--brass); }

@media (max-width: 760px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .biz-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Philosophy / compare
   ========================================================================== */

.philosophy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.philosophy-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; }
.philosophy-copy p { font-size: 1.03rem; max-width: 42ch; }

.compare { display: flex; flex-direction: column; gap: 18px; }

.compare-row {
  padding: 24px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-line);
}

.compare-old { background: transparent; }
.compare-new { background: var(--ink-raised); border-color: var(--brass-dim); }

.compare-label {
  display: block;
  font-size: 0.85rem;
  color: var(--paper-dim);
  margin-bottom: 10px;
}
.compare-new .compare-label { color: var(--brass); }

.compare-row p { color: var(--paper); font-size: 0.98rem; }

@media (max-width: 860px) {
  .philosophy-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.plan {
  position: relative;
  padding: 30px 22px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan h3 { font-family: var(--font-brand); font-size: 1.15rem; }
.plan-desc { font-size: 0.88rem; }
.plan-feature { font-size: 0.9rem; color: var(--paper); flex-grow: 1; }

.plan .btn { margin-top: 6px; justify-content: center; }

.plan-featured {
  background: var(--ink-raised);
  border-color: var(--brass);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--brass);
  color: #16130B;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-raised) 100%);
  border-top: 1px solid var(--ink-line);
  text-align: center;
}

.final-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.final-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 20ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--ink-line); padding: 40px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-brand); }

.footer-nav { display: flex; gap: 26px; }
.footer-nav a { font-size: 0.9rem; color: var(--paper-dim); }
.footer-nav a:hover { color: var(--paper); }

.footer-credit { font-size: 0.85rem; color: var(--paper-dim); }
.footer-credit a { color: var(--brass); }
.footer-credit a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; margin-top: 20px; }
  section { padding: 70px 0; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-inner { height: 66px; }
  .hero { padding: 70px 0 60px; }
}
