/* ═══════════════════════════════════════════════════════════
   LAYOUT — Hero, Dashboard, Devices, Features, Benefits,
            Pricing, Blog Grid Structures
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.hero {
  padding: 140px 24px 60px;
  text-align: center;
  max-width: 800px; margin: 0 auto;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: heroWordIn 0.6s cubic-bezier(0.12, 0.23, 0.5, 1) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.15s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.25s; }
.hero h1 .word:nth-child(6) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(7) { animation-delay: 0.35s; }
.hero h1 .word:nth-child(8) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(9) { animation-delay: 0.45s; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 17px; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 32px;
  line-height: 1.65;
  opacity: 0; transform: translateY(20px);
  animation: fadeSlideUp 0.6s cubic-bezier(0.12, 0.23, 0.5, 1) 0.5s forwards;
}
.hero-buttons {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeSlideUp 0.6s cubic-bezier(0.12, 0.23, 0.5, 1) 0.6s forwards;
}

/* ─── Dashboard 3D Parallax Container ─── */
.dashboard-section {
  max-width: 1100px; margin: 40px auto 0;
  padding: 0 24px;
  perspective: 1000px;
}
.dashboard-img-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  will-change: transform;
  transform: perspective(1000px) translateY(0px) scale(1) rotateX(0deg);
  transition: box-shadow 0.4s ease;
}
.dashboard-img { width: 100%; display: block; }

/* ─── About App / Devices ─── */
.about-app {
  max-width: var(--max-width); margin: 60px auto;
  padding: 0 24px; text-align: center;
}
.about-app .section-label { color: var(--text-muted); }
.about-app-header { margin-bottom: 40px; }
.devices-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
}
.device-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.device-card:hover { transform: translateY(-4px); }
.device-card img { width: 100%; height: 100%; object-fit: cover; }
.device-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
}

/* ─── Features ─── */
.features {
  max-width: var(--max-width); margin: 80px auto;
  padding: 0 24px;
}
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-content {
  padding: 48px 40px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.feature-content .section-label { color: var(--accent-muted); }
.feature-content .section-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}
.feature-content p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 24px;
}
.feature-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.feature-tag {
  background: var(--bg-primary);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: background 0.3s ease;
}
.feature-tag:hover { background: var(--border); }
.feature-image {
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--bg-warm);
  min-height: 400px;
  overflow: hidden;
}
.feature-image.blue-bg { background: #e2ecf5; }
.feature-image img {
  width: 90%; max-width: 440px;
  border-radius: var(--radius-md);
  transition: transform 0.6s cubic-bezier(.12,.23,.5,1);
}
.feature-image:hover img { transform: scale(1.03); }

/* ─── Benefits ─── */
.benefits {
  max-width: var(--max-width); margin: 80px auto;
  padding: 0 24px;
}
.benefits-header { text-align: center; margin-bottom: 48px; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.benefit-card:hover { transform: translateY(-4px); }
.benefit-card.large { grid-column: span 1; }
.benefit-card-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.benefit-card-desc {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 20px;
}
.benefit-card-visual {
  border-radius: var(--radius-md);
  overflow: hidden; margin-top: 12px;
}
.benefit-card-visual img { width: 100%; }

/* Benefits bottom row */
.benefits-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 16px;
}
.benefit-small {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.benefit-small:hover { transform: translateY(-4px); }
.benefit-small-icon {
  width: 40px; height: 40px;
  background: var(--bg-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
}
.benefit-small h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.benefit-small p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ─── Pricing ─── */
.pricing {
  max-width: var(--max-width); margin: 80px auto;
  padding: 0 24px;
}
.pricing-header { text-align: center; margin-bottom: 48px; }
.pricing-toggle {
  display: flex; gap: 4px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content; margin: 20px auto 0;
}
.pricing-toggle button {
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  background: transparent; color: var(--text-muted);
  transition: all 0.3s cubic-bezier(.44,0,.56,1);
}
.pricing-toggle button.active {
  background: #fff; color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured { background: var(--text-primary); color: #fff; }
.pricing-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 4px;
}
.pricing-card.featured .pricing-card-eyebrow { color: rgba(255,255,255,0.5); }
.pricing-card-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-card-name .save-badge {
  display: inline-block;
  background: var(--accent-green);
  color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: var(--radius-full);
  margin-left: 8px; font-weight: 500;
  vertical-align: middle;
}
.pricing-card-price {
  font-size: 40px; font-weight: 700;
  margin: 12px 0 4px; letter-spacing: -1px;
}
.pricing-card-price .period {
  font-size: 16px; font-weight: 400; color: var(--text-muted);
}
.pricing-card.featured .pricing-card-price .period { color: rgba(255,255,255,0.5); }
.pricing-card-price .old-price {
  font-size: 18px; text-decoration: line-through;
  color: var(--text-muted); margin-right: 8px; font-weight: 400;
}
.pricing-card-desc {
  font-size: 14px; color: var(--text-muted); margin-bottom: 24px;
}
.pricing-card.featured .pricing-card-desc { color: rgba(255,255,255,0.5); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  font-size: 14px; padding: 8px 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--text-secondary);
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-features li::before {
  content: ''; width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230ea158' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center/contain;
}
.pricing-card.featured .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2384b9ef' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.pricing-card .btn-primary { width: 100%; text-align: center; justify-content: center; }
.pricing-card .btn-secondary { width: 100%; text-align: center; display: flex; justify-content: center; }

/* ─── Blog ─── */
.blog {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px 80px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-xl);
}
.blog-header { margin-bottom: 40px; padding-top: 60px; }
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.blog-card-big {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.blog-card-big:hover { transform: translateY(-4px); }
.blog-card-big img {
  width: 100%; height: 280px; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.12,.23,.5,1);
}
.blog-card-big:hover img { transform: scale(1.03); }
.blog-card-big-content { padding: 28px; }
.blog-badge {
  display: inline-block;
  background: var(--accent-red);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.blog-card-big h3 {
  font-size: 22px; font-weight: 600;
  line-height: 1.3; margin-bottom: 10px;
}
.blog-card-big p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 16px;
}
.blog-author {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.blog-author img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}
.blog-author-name { font-weight: 600; }
.blog-author-role { color: var(--text-muted); }
.blog-small-stack { display: flex; flex-direction: column; gap: 16px; }
.blog-card-small {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  display: flex; overflow: hidden;
  flex: 1;
  transition: transform 0.4s cubic-bezier(.44,0,.56,1);
}
.blog-card-small:hover { transform: translateX(4px); }
.blog-card-small img {
  width: 140px; min-height: 100%;
  object-fit: cover; flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(.12,.23,.5,1);
}
.blog-card-small:hover img { transform: scale(1.05); }
.blog-card-small-content {
  padding: 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-tag {
  display: inline-block; font-size: 11px;
  color: var(--accent-blue-dark); font-weight: 600;
  margin-bottom: 6px;
}
.blog-card-small h4 {
  font-size: 15px; font-weight: 600; line-height: 1.35;
}
