/* ==========================================================================
   D-SPACE LiveCam — Modern Design System (Version 2.0.0)
   ========================================================================== */

:root {
  --primary: #128055;
  --primary-hover: #169b67;
  --primary-glow: rgba(18, 128, 85, 0.4);
  --dark-bg: #f4faf7;
  --dark-surface: rgba(255,255,255,0.85);
  --dark-card: rgba(255,255,255,0.92);
  --dark-border: rgba(255, 255, 255, 0.10);
  --text-main: #1a2e26;
  --text-muted: #4a7060;
  --text-dim: #6d847a;
  --accent-live: #ef4444;
  --accent-live-glow: rgba(239, 68, 68, 0.5);
  --gold: #eab308;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Georgian", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: #f4faf7;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Scenic Landscape Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(18,128,85,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(18,128,85,0.07) 0%, transparent 65%),
        linear-gradient(160deg, #eaf6f0 0%, #f4faf7 50%, #ffffff 100%);
    pointer-events: none;
}

/* Top Navigation Bar */
.topbar {
  height: 72px;
  background: rgba(7, 19, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #128055 0%, #0a4f34 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 8px var(--accent-live-glow);
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--accent-live); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: #ffffff; }

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
}

.lang-selector a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.lang-selector a.is-active, .lang-selector a:hover { color: #ffffff; }

/* Main Shell */
.shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* Hero Section */
.hero-wrapper {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(18, 128, 85, 0.15);
  border: 1px solid rgba(18, 128, 85, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #5eead4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #cbe3d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #128055 0%, #0d6140 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 128, 85, 0.6);
}

.btn-secondary, .button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--dark-border);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover, .button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Live Showcase Cards Grid */
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 60px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dark-border);
}

.showcase-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.cam-card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.cam-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 128, 85, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.cam-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.cam-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cam-card:hover .cam-preview img {
  transform: scale(1.04);
}

.cam-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cam-viewers {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #d1fae5;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cam-info {
  padding: 18px 20px;
}

.cam-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.cam-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.cam-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* Feature Highlights Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.feature-box {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.15s;
}
.feature-box:hover { border-color: rgba(255, 255, 255, 0.25); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(18, 128, 85, 0.2);
  border: 1px solid rgba(18, 128, 85, 0.4);
  color: #5eead4;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Auth Cards */
.auth-card {
  width: min(100%, 480px);
  margin: 40px auto;
  padding: 36px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 800;
}

.auth-card label, .panel label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-card input, .panel input {
  width: 100%;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font: inherit;
}

.auth-card input:focus, .panel input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Auth forms use a light surface; typed and autofilled text must stay legible. */
.auth-card input:not([type="hidden"]) {
  color-scheme: light;
  background: #ffffff;
  border-color: #8aa899;
  color: #1a2e26;
  -webkit-text-fill-color: #1a2e26;
  caret-color: #1a2e26;
  font-size: 16px;
  line-height: 1.5;
}

.auth-card input:not([type="hidden"])::placeholder {
  color: #4a7060;
  opacity: 1;
}

.auth-card input:not([type="hidden"]):focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.auth-card input:not([type="hidden"]):autofill {
  background: #ffffff;
  color: #1a2e26;
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.auth-card input:not([type="hidden"]):-webkit-autofill {
  -webkit-text-fill-color: #1a2e26;
  caret-color: #1a2e26;
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.notice {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #fef08a;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  margin: 16px 0;
}

/* Footer */
.livecam-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  .nav-links { display: none; }
  .shell { width: calc(100% - 24px); }
  .hero-title { font-size: 32px; }
  .auth-card { padding: 24px; }
}

/* Pricing and payment terms */
.topbar .nav-links a, .lang-selector a { color: #d0e4d9; }
.topbar .nav-links a:hover, .lang-selector a:hover { color: #fff; }
.hero-title { background-image: linear-gradient(160deg, #1a2e26, #128055); }
.hero-pill { color: #0d6140; }
.feature-title { color: var(--text-main); }
.hero-actions .btn-secondary { color: #0d6140; background: #fff; border-color: #bfd8ca; }

.pricing-hero { max-width: 820px; padding: 32px 0 8px; }
.pricing-hero h1 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.25; letter-spacing: -0.025em; margin: 12px 0 20px; }
.pricing-hero > p:last-child { color: var(--text-muted); line-height: 1.8; font-size: 17px; }
.pricing-section { margin: 48px 0; scroll-margin-top: 140px; }
.pricing-section-heading { margin-bottom: 24px; max-width: 840px; }
.pricing-section-heading h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.4; margin: 0 0 12px; }
.pricing-eyebrow { color: #0d6140; font-size: 12px; font-weight: 800; letter-spacing: .04em; margin: 0 0 12px; }
.pricing-muted { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.pricing-plans { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.pricing-card { min-width: 0; background: #fff; border: 1px solid #d7e6de; border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 8px 32px rgba(18, 70, 45, .035); }
.pricing-card h3 { font-size: 19px; line-height: 1.5; margin: 0 0 12px; }
.pricing-card > p:last-child { margin-bottom: 0; }
.pricing-table { width: 100%; border-collapse: collapse; margin: 24px 0 16px; text-align: left; font-size: 14px; }
.pricing-table th, .pricing-table td { padding: 15px 0; border-bottom: 1px solid #e3eee8; line-height: 1.5; }
.pricing-table thead th { font-size: 12px; color: var(--text-muted); font-weight: 600; padding-top: 0; }
.pricing-table tbody th { font-weight: 500; }
.pricing-table td, .pricing-table thead th:last-child { text-align: right; padding-left: 16px; }
.pricing-table td { font-weight: 800; color: #0d6140; }
.pricing-table tr:last-child th, .pricing-table tr:last-child td { border-bottom: 0; }
.pricing-footnote { color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.pricing-annual { background: linear-gradient(150deg, #e4f4eb, #f6fcf8); border-color: #a9d2bb; display: flex; flex-direction: column; align-items: flex-start; }
.pricing-amount, .pricing-card .pricing-amount { font-size: clamp(42px, 5vw, 64px); color: #0d6140; letter-spacing: -.04em; font-weight: 800; line-height: 1.2; margin: 4px 0 12px; }
.pricing-annual > .pricing-muted { margin: 0; }
.pricing-benefits { padding: 0; list-style: none; margin: 28px 0 12px; }
.pricing-benefits li { display: flex; gap: 10px; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.pricing-benefits li::before { content: '✓'; color: #128055; font-weight: 800; flex: 0 0 18px; }
.pricing-annual .button { margin-top: auto; font-size: 14px; padding: 12px 20px; text-align: center; }
.pricing-annual .pricing-footnote { margin: 0 0 28px; }
.pricing-availability { font-size: 13px; line-height: 1.8; color: #4a6256; background: #eaf2ed; border: 1px solid #d7e6de; border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.pricing-text-link { color: #0d6140; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; line-height: 1.8; }
.pricing-text-link:hover { color: #128055; }
.pricing-addons, .pricing-terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pricing-addon p { margin: 0; }
.pricing-addon strong { font-size: 28px; color: #0d6140; margin-right: 8px; }
.pricing-calculator { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pricing-form { min-width: 0; }
.pricing-form > label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.pricing-form > input[type="number"], .pricing-form select { width: 100%; min-height: 48px; border: 1px solid #b4cec0; border-radius: 10px; padding: 12px; background: #fff; color: var(--text-main); font: inherit; font-size: 14px; margin: 0 0 24px; }
.pricing-form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.pricing-form legend { padding: 0; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.pricing-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.6; cursor: pointer; }
.pricing-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #128055; flex: 0 0 18px; }
.pricing-estimate { min-width: 0; border-radius: 14px; padding: clamp(20px, 3vw, 32px); background: #eff8f3; border: 1px solid #d2e7db; }
.pricing-estimate h3 { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.pricing-estimate > p { line-height: 1.8; }
.pricing-estimate .pricing-amount { line-height: 1.2; }
.pricing-breakdown { border-top: 1px solid #c8ded1; margin: 24px 0 0; padding: 16px 0 0; }
.pricing-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 12px 0; font-size: 13px; line-height: 1.6; }
.pricing-breakdown dd { margin: 0; font-weight: 700; text-align: right; flex-shrink: 0; }
.pricing-quote { color: #0d6140; font-size: 24px; font-weight: 700; }
.pricing-error { color: #912c20; background: #fff0ec; border: 1px solid #ecc8bd; padding: 12px; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.pricing-example { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; border-left: 3px solid #128055; padding: 8px 24px; margin: 40px 0; }
.pricing-example h2 { font-size: 17px; line-height: 1.6; margin: 0; }
.pricing-example .pricing-muted { margin-bottom: 0; }
.pricing-equation { font-size: clamp(20px, 3vw, 28px); margin: 0; line-height: 1.6; }
.pricing-equation strong { color: #0d6140; }
.pricing-timeline { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pricing-timeline li { border-top: 3px solid #9ac8b0; padding-top: 18px; }
.pricing-timeline li:nth-child(2) { border-color: #d2a550; }
.pricing-timeline li:nth-child(3) { border-color: #c07c6c; }
.pricing-timeline strong, .pricing-timeline span { display: block; line-height: 1.7; font-size: 14px; }
.pricing-timeline span { color: var(--text-muted); margin-top: 8px; font-size: 13px; }
.pricing-currency { text-align: center; max-width: 800px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pricing-section :focus-visible, .topbar a:focus-visible, .pricing-text-link:focus-visible { outline: 3px solid #128055; outline-offset: 4px; }
.topbar a:focus-visible { outline-color: #83d8b0; }

@media (max-width: 1060px) {
  .topbar { height: auto; min-height: 72px; padding: 16px 20px; flex-wrap: wrap; gap: 16px; }
  .topbar-nav { width: 100%; justify-content: space-between; gap: 16px; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
}
@media (max-width: 760px) {
  .pricing-plans, .pricing-addons, .pricing-terms-grid, .pricing-calculator, .pricing-timeline { grid-template-columns: 1fr; }
  .pricing-hero { padding-top: 12px; }
  .pricing-section { margin: 32px 0; }
  .pricing-timeline { gap: 20px; }
}
@media (max-width: 480px) {
  .topbar { padding: 14px 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-live-badge { display: none; }
  .topbar-nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { width: 100%; gap: 10px 14px; }
  .nav-links a { font-size: 12px; }
  .pricing-table { font-size: 12px; }
  .pricing-table thead th { font-size: 11px; }
  .pricing-card { padding: 22px 18px; }
  .pricing-form .button, .pricing-annual .button { width: 100%; }
  .pricing-breakdown > div { flex-wrap: wrap; gap: 4px 12px; }
  .pricing-section { scroll-margin-top: 210px; }
}


/* Google OAuth Button */
.google-auth-wrap {
    margin: 14px 0 10px;
}
.google-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}
.google-divider::before,
.google-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.25);
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-google:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}
.btn-google svg {
    flex-shrink: 0;
}
.btn-google-hero {
    width: auto;
    padding: 12px 20px;
    border-radius: 12px;
}
