/*
Theme Name: Sky Linker
Theme URI: https://t.me/SL_PRO
Author: Sky Linker
Author URI: https://t.me/SL_PRO
Description: Минималистичная лендинг-тема для Sky Linker — менеджера освещения и окружения для 3ds Max + Corona Render.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skylinker
Tags: one-page, custom-logo, custom-colors, landing-page
*/

/* ========================================
   Reset & Base
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0a0a0a;
  --secondary: #555555;
  --muted: #999999;
  --subtle: #c8c8c8;
  --line: #e8e8e8;
  --surface: #f5f5f5;
  --bg: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max-w: 1152px;
  --max-w-sm: 896px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--subtle);
  border-radius: 10px;
}

/* ========================================
   Layout
   ======================================== */

.sl-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sl-section {
  padding: 112px 24px;
}

.sl-section--surface {
  background: var(--surface);
}

/* ========================================
   Typography
   ======================================== */

.sl-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.sl-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 16px;
}

.sl-subheading {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.7;
  max-width: 540px;
}

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

.sl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.sl-header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.sl-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.sl-header__logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.sl-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sl-header__link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.sl-header__link:hover {
  color: var(--primary);
}

.sl-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.sl-btn--primary {
  background: var(--primary);
  color: var(--bg);
}

.sl-btn--primary:hover {
  opacity: 0.8;
}

.sl-btn--outline {
  border: 1px solid var(--line);
  color: var(--primary);
}

.sl-btn--outline:hover {
  border-color: var(--primary);
}

.sl-btn--ghost {
  color: var(--muted);
}

.sl-btn--ghost:hover {
  color: var(--primary);
}

.sl-btn--lg {
  padding: 12px 32px;
  font-size: 14px;
}

.sl-btn--invert {
  background: var(--bg);
  color: var(--primary);
}

.sl-btn--invert:hover {
  opacity: 0.9;
}

.sl-header__lang-switch {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  transition: all 0.2s;
}

.sl-header__lang-switch:hover {
  color: var(--primary);
  border-color: var(--subtle);
}

.sl-header__burger {
  display: none;
  font-size: 14px;
  color: var(--muted);
}

.sl-mobile-nav {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.sl-mobile-nav.is-open {
  display: block;
}

.sl-mobile-nav a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
}

.sl-mobile-nav a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .sl-header__nav,
  .sl-header__actions {
    display: none;
  }
  .sl-header__burger {
    display: block;
  }
}

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

.sl-hero {
  padding-top: 96px;
  padding-bottom: 0;
}

.sl-hero--split .sl-hero__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 70svh;
  padding: 48px 0;
}

@media (max-width: 960px) {
  .sl-hero--split .sl-hero__row {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 32px 0;
  }
}

.sl-hero__text {
  max-width: 480px;
}

.sl-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 32px;
}

.sl-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.sl-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 24px;
}

.sl-hero__desc {
  font-size: 17px;
  color: var(--secondary);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
}

.sl-hero__buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sl-hero__image {
  display: flex;
  justify-content: flex-end;
}

.sl-hero__image img,
.interface {
  width: 100%;
  max-width: 380px;
}

@media (max-width: 960px) {
  .sl-hero__image {
    justify-content: center;
  }
}

.sl-hero__renders {
  margin-top: 48px;
}

.sl-hero__renders-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 0 24px;
}

.sl-hero__renders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sl-hero__renders-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 640px) {
  .sl-hero__renders-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Features
   ======================================== */

.sl-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 600px) {
  .sl-features__grid {
    grid-template-columns: 1fr;
  }
}

.sl-feature {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

/* On white section bg, cards are grey */
.sl-section:not(.sl-section--surface) .sl-feature {
  background: var(--surface);
}

.sl-feature:hover {
  border-color: var(--line);
}

.sl-feature__num {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}

.sl-feature__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin: 12px 0;
}

.sl-feature__desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
}

/* ========================================
   Workflow (How It Works)
   ======================================== */

.sl-workflow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .sl-workflow__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.sl-step__num {
  font-size: 56px;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  margin-bottom: 24px;
}

.sl-step__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.sl-step__desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* On grey section, tags become white */
.sl-section--surface .sl-tag {
  background: var(--bg);
  border: 1px solid var(--line);
}

/* ========================================
   Camera Properties
   ======================================== */

.sl-camera__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 960px) {
  .sl-camera__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.sl-props {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.sl-prop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.sl-prop:last-child {
  border-bottom: none;
}

.sl-prop:hover {
  background: var(--surface);
}

.sl-prop__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

.sl-prop__value {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* ========================================
   Formats
   ======================================== */

.sl-formats__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sl-format {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: border-color 0.2s;
}

.sl-format:hover {
  border-color: var(--subtle);
}

/* ---- Formats inline (inside Camera section) ---- */

.sl-formats-inline {
  margin-top: 32px;
}

.sl-formats-inline__desc {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sl-formats-inline__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-format-sm {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

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

.sl-pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-w-sm);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sl-pricing__grid {
    grid-template-columns: 1fr;
  }
}

.sl-plan {
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
}

.sl-plan--trial {
  background: var(--bg);
  border: 1px solid var(--line);
}

.sl-plan--pro {
  background: var(--primary);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.sl-plan__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.sl-plan__tier {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.sl-plan--trial .sl-plan__tier {
  color: var(--muted);
}

.sl-plan--pro .sl-plan__tier {
  color: rgba(255, 255, 255, 0.5);
}

.sl-plan__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sl-plan__sub {
  font-size: 13px;
  margin-bottom: 32px;
}

.sl-plan--trial .sl-plan__sub {
  color: var(--muted);
}

.sl-plan--pro .sl-plan__sub {
  color: rgba(255, 255, 255, 0.5);
}

.sl-plan__price {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sl-plan__price-sub {
  font-size: 12px;
  margin-bottom: 32px;
}

.sl-plan--trial .sl-plan__price-sub {
  color: transparent;
}

.sl-plan--pro .sl-plan__price-sub {
  color: rgba(255, 255, 255, 0.4);
}

.sl-plan__features {
  flex: 1;
  margin-bottom: 24px;
}

.sl-plan__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
}

.sl-plan--trial .sl-plan__feature {
  color: var(--secondary);
}

.sl-plan--pro .sl-plan__feature {
  color: rgba(255, 255, 255, 0.8);
}

.sl-plan__feature-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
  flex-shrink: 0;
}

.sl-plan__feature-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.sl-plan__limits {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-bottom: 24px;
}

.sl-plan__limits-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.sl-plan__limit {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

.sl-plan__cta {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  transition: all 0.2s;
}

.sl-plan--trial .sl-plan__cta {
  border: 1px solid var(--line);
  color: var(--primary);
}

.sl-plan--trial .sl-plan__cta:hover {
  border-color: var(--primary);
}

.sl-plan--pro .sl-plan__cta {
  background: var(--bg);
  color: var(--primary);
}

.sl-plan--pro .sl-plan__cta:hover {
  opacity: 0.9;
}

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

.sl-footer {
  border-top: 1px solid var(--line);
  padding: 64px 24px;
}

.sl-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.sl-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.sl-footer__brand {
  max-width: 280px;
}

.sl-footer__brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.sl-footer__brand-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sl-footer__brand-legal {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.5;
}

.sl-footer__cols {
  display: flex;
  gap: 64px;
}

@media (max-width: 600px) {
  .sl-footer__cols {
    gap: 32px;
  }
}

.sl-footer__col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin-bottom: 12px;
}

.sl-footer__col a,
.sl-footer__cols > div a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.sl-footer__col a:hover,
.sl-footer__cols > div a:hover {
  color: var(--primary);
}

.sl-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--subtle);
}

/* ========================================
   Scroll Animations
   ======================================== */

.sl-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.sl-reveal--delay-1 { transition-delay: 80ms; }
.sl-reveal--delay-2 { transition-delay: 160ms; }
.sl-reveal--delay-3 { transition-delay: 240ms; }
.sl-reveal--delay-4 { transition-delay: 320ms; }
.sl-reveal--delay-5 { transition-delay: 400ms; }

/* ========================================
   WordPress Core Overrides
   ======================================== */

.wp-block-image img {
  border-radius: var(--radius);
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ========================================
   Buy Modal
   ======================================== */

.sl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
}

.sl-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 40px;
  z-index: 1001;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.sl-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.sl-modal__close:hover {
  color: var(--primary);
  background: var(--surface);
}

.sl-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.sl-modal__desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.sl-modal__field {
  margin-bottom: 16px;
}

.sl-modal__field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 6px;
}

.sl-modal__field input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--primary);
  transition: border-color 0.2s;
}

.sl-modal__field input:focus {
  outline: none;
  border-color: var(--primary);
}

.sl-modal__field input::placeholder {
  color: var(--subtle);
}

.sl-modal__promo-row {
  display: flex;
  gap: 8px;
}

.sl-modal__promo-row input {
  flex: 1;
}

.sl-modal__promo-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.sl-modal__promo-btn:hover {
  border-color: var(--primary);
}

.sl-modal__promo-msg {
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}

.sl-modal__promo-msg--ok {
  color: #16a34a;
}

.sl-modal__promo-msg--err {
  color: #dc2626;
}

.sl-modal__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--secondary);
}

.sl-modal__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.sl-modal__submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 16px;
}

.sl-modal__submit:hover {
  opacity: 0.8;
}

.sl-modal__note {
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  margin-top: 12px;
}
