/* Page sections: hero, ecosystem, product, why, CTA, SMS, coming-soon */

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(29, 78, 216, 0.35), transparent 60%),
    radial-gradient(ellipse 45% 40% at 20% 70%, rgba(34, 211, 238, 0.12), transparent 55%);
}

.hero-orbit {
  position: absolute;
  width: min(90vw, 640px);
  aspect-ratio: 1;
  inset-inline-end: -8%;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  pointer-events: none;
  animation: hero-orbit-spin 80s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
}

.hero-orbit::before {
  width: 8px;
  height: 8px;
  top: 12%;
  inset-inline-start: 50%;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.hero-orbit::after {
  width: 5px;
  height: 5px;
  bottom: 20%;
  inset-inline-end: 18%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.hero-orbit-inner {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  animation: ring-rotate 50s linear infinite reverse;
}

@keyframes hero-orbit-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-brand img {
  width: clamp(72px, 12vw, 110px);
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(37, 99, 235, 0.45));
}

.hero-brand-name {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.1;
}

.hero-brand-tag {
  color: var(--primary-light);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  margin: 0.35rem 0 0;
}

.hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.hero .lead {
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-copy {
  max-width: 540px;
}

/* —— Ecosystem —— */
.ecosystem {
  position: relative;
}

.orbit-map {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto 2.5rem;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  animation: ring-rotate 90s linear infinite;
}

.orbit-ring-inner {
  position: absolute;
  inset: 28%;
  border: 1px dashed rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  animation: ring-rotate 60s linear infinite reverse;
}

@keyframes ring-rotate {
  to {
    transform: rotate(360deg);
  }
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
  text-align: center;
  z-index: 2;
}

.orbit-core img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.orbit-core span {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  margin-left: -64px;
  margin-top: -48px;
  transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
  z-index: 3;
}

.orbit-node a,
.orbit-node button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  text-decoration: none;
}

.orbit-node a:hover,
.orbit-node button:hover,
.orbit-node a:focus-visible,
.orbit-node button:focus-visible {
  border-color: var(--primary-light);
  background: rgba(29, 78, 216, 0.25);
  transform: scale(1.05);
  outline: none;
}

.orbit-node .node-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.orbit-node .node-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-node .node-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.ecosystem-list {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ecosystem-list a,
.ecosystem-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.ecosystem-list a:hover,
.ecosystem-list button:hover {
  border-color: var(--primary-light);
  background: rgba(29, 78, 216, 0.18);
  color: var(--text);
}

.ecosystem-quote {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* —— Product spotlight —— */
.product-spotlight {
  position: relative;
}

.product-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(29, 78, 216, 0.15));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.product-panel h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.product-visual {
  position: relative;
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.2), transparent 50%),
    rgba(2, 6, 23, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone-mock {
  position: relative;
  width: min(100%, 200px);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
  padding: 0.55rem 0.45rem 0.5rem;
  box-shadow:
    0 0 0 3px rgba(2, 6, 23, 0.85),
    0 24px 50px rgba(2, 6, 23, 0.65),
    inset 0 1px 0 rgba(125, 211, 252, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 10px;
  border-radius: 999px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
  z-index: 2;
}

.sms-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.55rem 0.15rem;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.sms-signal {
  width: 14px;
  height: 8px;
  border-radius: 1px;
  background:
    linear-gradient(to top, currentColor 35%, transparent 35%) 0 0 / 2.5px 100% no-repeat,
    linear-gradient(to top, currentColor 55%, transparent 55%) 4px 0 / 2.5px 100% no-repeat,
    linear-gradient(to top, currentColor 75%, transparent 75%) 8px 0 / 2.5px 100% no-repeat,
    linear-gradient(to top, currentColor 100%, transparent 100%) 12px 0 / 2.5px 100% no-repeat;
  color: var(--text-muted);
}

.sms-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.sms-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-mid), var(--accent));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.sms-header-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.sms-header-meta strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
}

.sms-header-meta span {
  font-size: 0.52rem;
  color: var(--text-dim);
}

.sms-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.35rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    rgba(2, 6, 23, 0.35);
}

.sms-bubble {
  max-width: 88%;
  padding: 0.4rem 0.5rem 0.28rem;
  border-radius: 12px;
  font-size: 0.58rem;
  line-height: 1.55;
  animation: sms-pop 0.55s var(--ease) both;
}

.sms-bubble p {
  margin: 0;
  color: var(--text);
}

.sms-bubble b {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.sms-bubble time {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.48rem;
  color: var(--text-dim);
  text-align: start;
}

.sms-in {
  align-self: flex-start;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-end-start-radius: 4px;
  animation-delay: 0.15s;
}

.sms-in:nth-child(3) {
  animation-delay: 0.55s;
}

.sms-out {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.75));
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-end-end-radius: 4px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
  animation-delay: 0.35s;
}

.sms-out time {
  color: rgba(226, 232, 240, 0.7);
}

.sms-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.7rem;
  max-width: none;
  width: fit-content;
  animation-delay: 0.75s;
}

.sms-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.75);
  animation: sms-dot 1.2s ease-in-out infinite;
}

.sms-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.sms-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.sms-composer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-dim);
  font-size: 0.52rem;
}

.sms-composer > span:first-child {
  flex: 1;
  padding-inline: 0.25rem;
}

.sms-send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--primary-mid), var(--accent));
  position: relative;
  flex-shrink: 0;
}

.sms-send::before {
  content: "";
  position: absolute;
  inset: 5px 4px 5px 6px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 20% 50%);
}

@keyframes sms-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sms-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sms-bubble,
  .sms-typing span {
    animation: none;
  }
}

/* —— Why us —— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  margin: 0;
  font-size: 0.95rem;
}

.why-intro {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1rem;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.contact-link:hover {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.45);
  transform: translateY(-3px);
}

.contact-link .icon-box {
  margin-bottom: 0.65rem;
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-link:hover .contact-value {
  color: var(--primary-light);
}

/* —— Newsletter CTA —— */
.cta-banner {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(37, 99, 235, 0.28), transparent 60%),
    rgba(15, 23, 42, 0.7);
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  margin-bottom: 0.65rem;
}

.cta-banner > p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.cta-banner .form-row {
  margin-inline: auto;
}

/* —— SMS page —— */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  max-width: 22ch;
  margin-inline: auto;
}

.page-hero .lead {
  max-width: 40ch;
  margin: 0 auto 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-item h3 {
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.highlight-item {
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  height: 100%;
}

.highlight-item h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.highlight-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: var(--shadow-soft);
}

.plan-card-featured {
  border-color: var(--border-strong);
  background:
    linear-gradient(165deg, rgba(29, 78, 216, 0.22), transparent 55%),
    rgba(15, 23, 42, 0.85);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.22);
}

.plan-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.plan-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.plan-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.plan-discount {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.plan-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.plan-price del {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.plan-price strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-inline-start: 1.15rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

/* —— Coming soon —— */
.soon-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.soon-card {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.soon-card .badge {
  margin-bottom: 1.25rem;
}

.soon-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.soon-card .form-row {
  margin-inline: auto;
  margin-top: 1.5rem;
}

/* —— 404 —— */
.error-page {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

/* —— Responsive —— */
@media (max-width: 1100px) and (min-width: 769px) {
  .orbit-node {
    --radius: 175px !important;
    width: 112px;
    margin-left: -56px;
  }

  .orbit-node .node-name {
    font-size: 0.75rem;
  }
}

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

@media (max-width: 960px) {
  .product-panel {
    grid-template-columns: 1fr;
  }

  .product-visual {
    order: -1;
    min-height: 280px;
    padding: 1.25rem 0;
  }

  .phone-mock {
    width: 170px;
  }

  .why-grid,
  .contact-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .orbit-map {
    display: none;
  }

  .ecosystem-list {
    display: flex;
  }

  .hero-orbit,
  .hero-orbit-inner {
    opacity: 0.35;
    inset-inline-end: -30%;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .product-panel {
    padding: 1.5rem;
  }

  .highlight-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-orbit-inner,
  .orbit-ring,
  .orbit-ring-inner {
    animation: none;
  }
}
