/* ==========================================================================
   LocalCloud — Design Tokens
   קונספט: "ענן שמעביר נתונים" — בהשראת הלוגו (ענן עם קו מעגל/זרימת נתונים).
   מספרים וסטטיסטיקות מוצגים בגופן מונו כמו קריאת טרמינל/נתוני רשת חיים.
   ========================================================================== */
:root {
  /* Color */
  --bg: #060911;
  --bg-elevated: #0d1220;
  --panel: #101728;
  --panel-2: #141d33;
  --border: #212c47;
  --border-soft: #1a2338;
  --text: #eef2fb;
  --text-dim: #93a0c2;
  --text-faint: #5d6a8c;
  --accent: #38b6ff;
  --accent-2: #7fe0ff;
  --accent-deep: #1c5fe0;
  --accent-glow: rgba(56, 182, 255, 0.35);
  --good: #34d399;
  --danger: #ff6b6b;

  /* Type */
  --font-display: 'Rubik', 'Segoe UI', sans-serif;
  --font-body: 'Heebo', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-panel: 0 20px 60px -30px rgba(0, 0, 0, 0.7);
  --header-h: 76px;
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f3fa;
  --border: #dde3f0;
  --border-soft: #e5e9f4;
  --text: #101728;
  --text-dim: #4c5773;
  --text-faint: #8891ab;
  --accent-glow: rgba(28, 95, 224, 0.18);
}
html[data-theme="light"] .brand span {
  background: linear-gradient(90deg, #101728, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .btn-primary { color: #fff; }
html[data-theme="light"] .site-header { background: rgba(245, 247, 251, 0.85); }

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  background: rgba(56, 182, 255, 0.1);
  border: 1px solid rgba(56, 182, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 14px 0 12px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0;
}

/* אין טבעת מיקוד כחולה — במקום זאת האלמנטים גדלים קלות במעבר עכבר/מיקוד */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
}

/* ==========================================================================
   Signature: circuit trace divider (echoes the logo's cloud + data line)
   ========================================================================== */
.circuit-divider {
  width: 100%;
  height: 34px;
  color: var(--border);
  opacity: 0.9;
}
.circuit-divider path {
  stroke: currentColor;
}
.circuit-divider circle {
  fill: var(--accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 9, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a.contact-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text); background: var(--panel); transform: scale(1.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { transform: scale(1.04); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #061019;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px var(--accent-glow); }

.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--panel-2); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-outline:hover { color: var(--text); }

.btn-plan {
  background: #fff;
  color: #0b1220;
}
.btn-plan:hover, .btn-plan:focus-visible {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

.nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 70px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(600px 320px at 78% 10%, rgba(56, 182, 255, 0.22), transparent 70%),
    radial-gradient(480px 300px at 15% 30%, rgba(28, 95, 224, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.14;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  color: var(--text-dim);
  font-size: 17.5px;
  max-width: 560px;
  margin: 20px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero-visual .glow-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(6px);
}
.hero-visual img {
  position: relative;
  width: min(360px, 78%);
  filter: drop-shadow(0 30px 60px rgba(56, 182, 255, 0.25));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}

.hero-visual .trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--border);
}
.hero-visual .trace circle { fill: var(--accent-2); }


/* ==========================================================================
   Services / Tabs
   ========================================================================== */
.tabs {
  display: inline-flex;
  direction: ltr;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 4px;
  margin: 0 auto 44px;
  width: 100%;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.tab-btn:hover, .tab-btn:focus-visible { color: var(--text); transform: scale(1.03); }
.tab-btn.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.plans-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.plans-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }

.plan-card {
  direction: rtl;
  text-align: right;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.plan-card:hover { transform: translateY(-3px) scale(1.015); }
.plan-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(56, 182, 255, 0.12);
  color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.plan-name { font-size: 19px; margin-bottom: 6px; }
.plan-tagline { color: var(--text-dim); font-size: 13.5px; min-height: 38px; }
.plan-price {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  margin: 14px 0 20px;
  color: var(--text);
}
.plan-price span { font-family: var(--font-body); font-size: 14px; color: var(--text-dim); font-weight: 400; }
.plan-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-dim); }
.plan-features svg { flex-shrink: 0; margin-top: 2px; color: var(--good); }

.custom-plan-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.custom-plan-card .plan-icon { margin: 0 auto 18px; }
.custom-plan-card h3 { font-size: 22px; margin-bottom: 8px; }
.custom-plan-card p { color: var(--text-dim); margin: 0 0 26px; }
.assurance-box {
  background: rgba(56, 182, 255, 0.08);
  border: 1px solid rgba(56, 182, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.chip svg { color: var(--accent-2); }

/* ==========================================================================
   Discord CTA
   ========================================================================== */
.discord-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.discord-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: right;
}
.discord-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.discord-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.discord-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discord-name { font-weight: 700; font-size: 16.5px; display: flex; align-items: center; gap: 6px; }
.discord-counts {
  display: flex; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.discord-counts .online { color: var(--good); }
.discord-counts .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; margin-inline-end: 4px; }
.discord-counts .dot.grey { background: var(--text-faint); }
.discord-card p.desc { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .plan-icon { margin: 0; flex-shrink: 0; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--text-dim); font-size: 14.5px; }
.contact-card a:hover { color: var(--accent-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color .15s ease, transform .15s ease;
}
.footer-social a:hover { color: var(--accent-2); transform: scale(1.08); }

.footer-col h4 { font-size: 14.5px; margin-bottom: 16px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 14px; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 36px;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span.made { font-family: var(--font-mono); }

/* ==========================================================================
   Modal (purchase confirmation)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  animation: modal-in .18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #061019;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
}
.modal-close {
  background: rgba(6, 16, 25, 0.15);
  border: none;
  color: #061019;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 26px 24px; text-align: center; }
.modal-check {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--good);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.modal-body p.lead { color: var(--text-dim); font-size: 14.5px; margin: 0 0 4px; }
.modal-body .modal-plan { font-family: var(--font-mono); color: var(--accent-2); font-size: 18px; margin: 0 0 18px; }
.modal-invite-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(56, 182, 255, 0.08);
  border: 1px solid rgba(56, 182, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  text-align: right;
}
.modal-invite-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-invite-text { flex: 1; min-width: 0; }
.modal-invite-title { font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 3px; }
.modal-invite-text p { color: var(--text-dim); font-size: 13px; margin: 0 0 6px; }
.modal-invite-text a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  word-break: break-all;
}
.modal-invite-text a:hover { text-decoration: underline; }
.modal-actions { display: flex; gap: 10px; }

/* ==========================================================================
   Terms of Service page
   ========================================================================== */
.tos-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.tos-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.tos-wrap { max-width: 820px; margin: 0 auto; padding: 60px 28px 100px; }.tos-wrap h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.tos-updated { color: var(--text-faint); font-family: var(--font-mono); font-size: 13px; margin-bottom: 44px; }
.tos-wrap h2 {
  font-size: 21px;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.tos-wrap h3 { font-size: 16px; margin: 22px 0 8px; color: var(--accent-2); }
.tos-wrap p, .tos-wrap li { color: var(--text-dim); font-size: 15px; margin: 0 0 10px; }
.tos-wrap ul, .tos-wrap ol { padding-inline-start: 22px; margin-bottom: 14px; }
.tos-wrap ul li { list-style: disc; }
.tos-wrap ol li { list-style: decimal; }
.tos-wrap strong { color: var(--text); }
.tos-disclaimer {
  margin-top: 50px;
  padding: 18px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-height: 260px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .tos-header .brand span { display: none; }
  .tos-header .btn { padding: 9px 14px; font-size: 13.5px; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn-ghost, .header-actions #clientPanelBtn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-end;
    padding: 14px 20px 20px;
    gap: 4px;
    z-index: 90;
  }
  .main-nav a.contact-mobile {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: var(--accent);
    color: #061019;
    font-weight: 600;
  }
  .main-nav a.client-panel-mobile {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    margin-top: 10px;
  }
  .plans-grid, .plans-grid.cols-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: column; }
}
