/*
Theme Name: Smart IG DM
Theme URI: https://robogress.com
Author: Robogress
Author URI: https://robogress.com
Description: Landing theme for Instagram DM automation — hero with video or image, pricing plans, crypto checkout note. Built by Robogress.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-ig-dm
*/

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --muted: #9898a8;
  --accent: #e1306c;
  --accent-2: #833ab4;
  --gradient: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fd1d1d 100%);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-header__bar {
  flex-wrap: wrap;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: rgba(225, 48, 108, 0.35);
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header__bar .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-title {
  margin: 0;
  min-width: 0;
}

.site-title__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  text-decoration: none;
  color: var(--text);
}

.site-title__link:hover {
  text-decoration: none;
}

.site-title__link:hover .site-title__text {
  text-decoration: underline;
}

.site-title__logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.site-title__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-title__text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(131, 58, 180, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-media {
  min-width: 0;
}

.hero-media-frame {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-video,
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-video {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #000;
}

.hero-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-media-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0 0.5rem 1rem;
}

.hero-media-caption {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

.blog-archive-hero {
  padding-bottom: 0;
}

.blog-archive-hero .hero-badge {
  margin-bottom: 1rem;
}

.blog-archive-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-archive-hero__intro {
  margin-bottom: 0;
  max-width: 62ch;
}

.post-list__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.post-list__title a {
  color: var(--text);
  text-decoration: none;
}

.post-list__title a:hover {
  text-decoration: underline;
}

.post-list__more {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

.post-list__more a {
  font-weight: 600;
}

/* Decorative chat mockup (no media uploaded) */
.hero-chat-mockup {
  text-align: left;
  background: linear-gradient(180deg, #1a1a24 0%, #12121a 100%);
  min-height: 360px;
}

.hero-chat-mockup__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-chat-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

.hero-chat-mockup__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-chat-mockup__body {
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-chat-bubble--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.hero-chat-bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.35) 0%, rgba(225, 48, 108, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-right-radius: 4px;
}

.hero-chat-typing {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.hero-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: hero-typing 1.2s ease-in-out infinite;
}

.hero-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hero-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Pricing */
.pricing-crypto {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  background: rgba(131, 58, 180, 0.12);
  border: 1px solid rgba(131, 58, 180, 0.25);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-crypto__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--gradient);
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.plan-card.is-featured {
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow: 0 0 0 1px rgba(225, 48, 108, 0.2), 0 20px 50px rgba(225, 48, 108, 0.12);
}

.plan-card__ribbon {
  position: absolute;
  top: 0;
  right: 1rem;
  transform: translateY(-50%);
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--gradient);
}

.plan-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.plan-card__price {
  margin: 0 0 1.25rem;
  line-height: 1;
}

.plan-card__amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-card__period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-card__list {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.plan-card__list li {
  margin-bottom: 0.45rem;
}

.plan-card__list li:last-child {
  margin-bottom: 0;
}

.plan-card__cta {
  margin-top: auto;
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 60ch;
}

.section-intro--tight {
  margin-bottom: 1.5rem;
}

.section--blog__heading {
  margin: 0 0 0.5rem;
}

.blog-front__actions {
  margin: 2rem 0 0;
  text-align: center;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer__primary {
  margin: 0;
  max-width: 42rem;
}

.site-footer__email {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__email:hover {
  text-decoration: underline;
}

.site-footer__credit {
  margin: 0;
  text-align: right;
  max-width: 36rem;
}

.site-footer__credit a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__credit a:hover {
  text-decoration: underline;
}

.site-footer__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Blog / archive */
.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: rgba(225, 48, 108, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0d12;
  border-bottom: 1px solid var(--border);
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__img {
  transform: scale(1.04);
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: linear-gradient(145deg, rgba(131, 58, 180, 0.2) 0%, rgba(225, 48, 108, 0.12) 50%, rgba(13, 13, 18, 1) 100%);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
  gap: 0.5rem;
}

.post-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card__excerpt {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.post-card__excerpt p {
  margin: 0;
}

.post-card__more {
  margin: 0.25rem 0 0;
}

.post-card__read {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.post-card__read:hover {
  text-decoration: underline;
}

.post-pagination {
  margin-top: 2.5rem;
}

.post-pagination .navigation.pagination {
  margin: 0;
}

.post-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.post-pagination .nav-links a,
.post-pagination .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.post-pagination .nav-links a:hover {
  border-color: rgba(225, 48, 108, 0.4);
  text-decoration: none;
}

.post-pagination .nav-links span.current {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.35) 0%, rgba(225, 48, 108, 0.35) 100%);
  border-color: rgba(225, 48, 108, 0.35);
}

.post-pagination .nav-links .prev,
.post-pagination .nav-links .next {
  min-width: auto;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list h2:not(.post-list__title) {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.post-list h2:not(.post-list__title) a {
  color: var(--text);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.entry-content {
  max-width: 68ch;
}

.entry-content p {
  color: var(--muted);
}

/* WordPress blocks */
.wp-block-image {
  margin: 1.5rem 0;
}

.alignwide {
  max-width: min(100%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .site-footer__credit {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-title {
    flex: 1;
    min-width: 0;
  }

  .main-nav {
    flex-basis: 100%;
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.is-open {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.35rem 0 0.5rem;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  body.nav-drawer-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .main-nav:not(.is-open) ul {
    padding-bottom: 0;
  }

  .site-title__logo-wrap {
    width: 38px;
    height: 38px;
  }

  .site-title__text {
    font-size: 1.05rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
