/* ============================================================
   GhostDesk / YV17labs — Main stylesheet
   ============================================================ */

:root {
  --bg: #0e0a1f;
  --bg-elevated: #17122e;
  --surface: #1e1838;
  --surface-2: #2a2348;
  --purple: #7c6bd1;
  --purple-bright: #a599ea;
  --green: #4ade80;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green-mac: #28c840;
  --text: #f5f5f7;
  --text-muted: #9d99b8;
  --text-dim: #6b6790;
  --border: rgba(165, 153, 234, 0.12);
  --border-strong: rgba(165, 153, 234, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(14, 10, 31, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  transition: all 0.2s;
}
.lang-switch:hover { color: var(--text); border-color: var(--purple); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--purple); color: white;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: all 0.2s; border: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--purple-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124, 107, 209, 0.35); }
.btn-outline {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--purple); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; padding: 140px 24px 80px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 107, 209, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(74, 222, 128, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(124, 107, 209, 0.12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(165, 153, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 153, 234, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 900px; margin: 0 auto; z-index: 1; }
.hero-logo {
  width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(124, 107, 209, 0.4);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 66px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple-bright), var(--green));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-muted); max-width: 680px; margin: 0 auto 40px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }

/* Hero animation lives in views/partials/automation-scene.php (scoped styles). */

/* ===== Sections ===== */
section { padding: 120px 24px; position: relative; }
.section-heading { max-width: 800px; margin: 0 auto 70px; text-align: center; }
.section-label {
  font-size: 13px; font-weight: 600; color: var(--purple-bright);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 46px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px;
}
.section-heading p { font-size: 18px; color: var(--text-muted); }

.promise { background: var(--bg); }
.compare {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 24px; max-width: 1050px; margin: 0 auto; align-items: stretch;
}
.compare-card {
  padding: 36px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
}
.compare-card.bad { opacity: 0.85; }
.compare-card.good {
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  box-shadow: 0 20px 60px -20px rgba(124, 107, 209, 0.4);
}
.compare-card h3 {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
}
.compare-card.good h3 { color: var(--purple-bright); }
.compare-card ul { list-style: none; }
.compare-card li {
  padding: 12px 0; color: var(--text-muted);
  display: flex; gap: 12px; align-items: start; font-size: 15px;
}
.compare-card.bad li::before { content: "✗"; color: #ef4444; font-weight: 600; flex-shrink: 0; }
.compare-card.good li::before { content: "✓"; color: var(--green); font-weight: 600; flex-shrink: 0; }
.compare-card.good li { color: var(--text); }
.compare-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--purple);
}
.compare-quote {
  max-width: 700px; margin: 50px auto 0; text-align: center;
  font-size: 18px; color: var(--text-muted); line-height: 1.7;
}
.compare-quote strong { color: var(--text); font-weight: 600; }

.how { background: var(--bg-elevated); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: 1100px; margin: 0 auto;
}
.step {
  padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  transition: all 0.3s;
}
.step:hover { border-color: var(--purple); transform: translateY(-4px); }
.step-number {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  color: white; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.step p { color: var(--text-muted); font-size: 15px; }

.features-section { background: var(--bg); }
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1200px; margin: 0 auto;
}
.feature {
  padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s;
}
.feature:hover {
  border-color: var(--purple); transform: translateY(-4px);
  background: var(--surface-2);
  box-shadow: 0 20px 40px -20px rgba(124, 107, 209, 0.3);
}
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(124, 107, 209, 0.25), rgba(124, 107, 209, 0.1));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
  border: 1px solid var(--border-strong);
}
.feature h3 { font-size: 19px; margin-bottom: 10px; font-weight: 600; }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.community { background: var(--bg-elevated); text-align: center; position: relative; overflow: hidden; }
.community::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 107, 209, 0.15), transparent 70%);
  pointer-events: none;
}
.community-content { position: relative; z-index: 1; }
.stars-row {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 100px;
  margin-bottom: 40px; font-size: 15px;
}
.stars-row .stars { color: #fbbf24; letter-spacing: 1px; }

.enterprise { background: var(--bg); position: relative; }
.enterprise::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 80% 50%, rgba(74, 222, 128, 0.05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 50%, rgba(124, 107, 209, 0.08), transparent 70%);
  pointer-events: none;
}
.enterprise-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; max-width: 1100px; margin: 0 auto;
  align-items: start; position: relative; z-index: 1;
}
.enterprise-list { list-style: none; }
.enterprise-list li {
  padding: 20px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: start;
}
.enterprise-list li:last-child { border-bottom: none; }
.enterprise-list .icon {
  width: 36px; height: 36px;
  background: rgba(124, 107, 209, 0.15);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.enterprise-list strong { display: block; margin-bottom: 6px; font-size: 16px; }
.enterprise-list span { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.enterprise-cta {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  padding: 36px; border-radius: 20px;
  border: 1px solid var(--border-strong); position: sticky; top: 100px;
}
.enterprise-cta .badge-sm {
  display: inline-block; padding: 4px 12px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 100px; font-size: 12px; color: var(--green);
  margin-bottom: 20px; font-weight: 500;
}
.enterprise-cta h3 { margin-bottom: 14px; font-size: 22px; font-weight: 600; }
.enterprise-cta p { color: var(--text-muted); margin-bottom: 26px; font-size: 15px; }
.enterprise-cta .btn { width: 100%; justify-content: center; }

/* ===== Contact ===== */
.contact { background: var(--bg-elevated); text-align: center; }
.contact-card {
  max-width: 680px; margin: 0 auto;
  padding: 48px 40px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 24px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(124, 107, 209, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(74, 222, 128, 0.08), transparent 60%);
  pointer-events: none;
}
.contact-card-content { position: relative; z-index: 1; }
.contact-card h3 { font-size: 30px; margin-bottom: 14px; font-weight: 700; letter-spacing: -0.01em; }
.contact-card .lead { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }

.contact-form {
  text-align: left;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 28px;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px; font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(124, 107, 209, 0.15);
}
.contact-form textarea { min-height: 110px; line-height: 1.5; }
.contact-form .submit-row {
  display: flex; gap: 12px; align-items: center; margin-top: 4px;
}
.contact-form button[type="submit"] {
  flex: 1; padding: 14px 24px; font-size: 15px;
  border-radius: 10px; justify-content: center;
}

.form-status {
  padding: 14px 16px; border-radius: 10px;
  font-size: 14px; display: none; text-align: left;
}
.form-status.success {
  display: block;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}
.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ===== Footer ===== */
footer { padding: 50px 24px 40px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-muted); }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px; color: var(--text-dim);
  margin-top: 24px; text-align: center;
  border-top: 1px solid var(--border); padding-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .enterprise-grid { grid-template-columns: 1fr; }
  .enterprise-cta { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .compare { grid-template-columns: 1fr; gap: 20px; }
  .compare-arrow { transform: rotate(90deg); height: 20px; }
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .hero { padding: 110px 24px 60px; }
  .contact-card { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .app-window { width: 70%; height: 60%; }
  .dock-icon { width: 38px; height: 38px; }
  .dock { gap: 8px; padding: 6px 10px; }
  .menu-bar { font-size: 10px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 36px 24px; }
}

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
