/* ========================================
   STELLA READY — Main Stylesheet
   stellaready.beupsoft.pl
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --blue-50: #EFF6FF;
  --navy: #0F1B2D;
  --navy-800: #1A2744;
  --navy-700: #243352;
  --navy-600: #2E4066;
  --green: #10B981;
  --green-dark: #059669;
  --green-light: #34D399;
  --green-50: #ECFDF5;
  --purple: #8B5CF6;
  --purple-50: #EDE9FE;
  --red: #EF4444;
  --red-50: #FEF2F2;
  --amber: #F59E0B;
  --amber-50: #FFFBEB;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all .2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,27,45,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: -.02em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; color: var(--white);
}
.nav-logo .badge { 
  font-size: .65rem; font-weight: 700; color: var(--green); 
  background: rgba(16,185,129,.12); padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--gray-400); font-size: .875rem; font-weight: 500;
  padding: 8px 14px; border-radius: 6px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang {
  font-size: .8rem; font-weight: 500; color: var(--gray-400);
  padding: 6px 10px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; background: transparent; cursor: pointer;
  transition: var(--transition);
}
.nav-lang:hover { border-color: rgba(255,255,255,.2); color: var(--white); }
.nav-lang option { background: var(--navy); color: var(--white); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .875rem; font-weight: 600;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.4); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.05); }
.btn-ghost { background: transparent; color: var(--gray-400); }
.btn-ghost:hover { color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--navy); overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(59,130,246,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(139,92,246,.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 70%, rgba(16,185,129,.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .04;
  background-image: 
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-text h1 {
  font-size: 3.5rem; font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -.03em; margin-bottom: 20px;
}
.hero-text h1 .gradient {
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .subtitle {
  font-size: 1.15rem; color: var(--gray-400); line-height: 1.7; margin-bottom: 36px; max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06);
}
.hero-stat .number { font-size: 1.8rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.hero-stat .number span { color: var(--blue-light); }
.hero-stat .label { font-size: .78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }

/* Hero visual */
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-dashboard {
  width: 100%; max-width: 560px; background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.dash-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #ff5f57; }
.dash-dot.y { background: #febc2e; }
.dash-dot.g { background: #28c840; }
.dash-url {
  flex: 1; text-align: center; font-size: .72rem; color: var(--gray-500);
  font-family: var(--mono);
}
.dash-body { padding: 20px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dash-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 16px;
}
.dash-card .card-label { font-size: .7rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.dash-card .card-value { font-size: 1.5rem; font-weight: 700; color: var(--white); }
.dash-card .card-value.green { color: var(--green); }
.dash-card .card-value.blue { color: var(--blue-light); }
.dash-card .card-value.amber { color: var(--amber); }
.dash-card .card-trend { font-size: .72rem; color: var(--green); margin-top: 4px; }
.dash-chart {
  height: 120px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.dash-chart svg { width: 100%; height: 100%; }

/* Floating elements */
.hero-float {
  position: absolute; background: var(--navy-700); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 10px 14px; font-size: .78rem;
  color: var(--white); box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.hero-float.f1 { top: 10%; right: -20px; animation-delay: 0s; }
.hero-float.f2 { bottom: 15%; left: -20px; animation-delay: 2s; }
.hero-float .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ========== SECTIONS ========== */
section { padding: 100px 0; }
section.dark { background: var(--navy); color: var(--white); }
section.gray { background: var(--gray-50); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.section-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.section-header h2 {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: 16px;
}
section.dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; }

/* ========== FEATURE CARDS ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0; transition: var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.feature-icon.blue { background: var(--blue-50); color: var(--blue); }
.feature-icon.green { background: var(--green-50); color: var(--green); }
.feature-icon.purple { background: var(--purple-50); color: var(--purple); }
.feature-icon.amber { background: var(--amber-50); color: var(--amber); }
.feature-icon.red { background: var(--red-50); color: var(--red); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.feature-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.6; }
.feature-card .tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; margin-top: 14px;
  text-transform: uppercase; letter-spacing: .04em;
}
.tag-blue { background: var(--blue-50); color: var(--blue); }
.tag-green { background: var(--green-50); color: var(--green-dark); }
.tag-purple { background: var(--purple-50); color: var(--purple); }

/* ========== ARCHITECTURE ========== */
.arch-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  position: relative; padding: 20px 0;
}
.arch-layer {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 28px 20px; text-align: center;
  position: relative; transition: var(--transition);
}
.arch-layer:hover { border-color: var(--blue); transform: translateY(-4px); }
.arch-layer .layer-num {
  font-size: .65rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.arch-layer h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.arch-layer p { font-size: .78rem; color: var(--gray-400); line-height: 1.5; }
.arch-layer .tech-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.tech-tag {
  font-size: .65rem; font-weight: 600; color: var(--blue-light); font-family: var(--mono);
  background: rgba(59,130,246,.1); padding: 3px 8px; border-radius: 4px;
}
.arch-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.2rem; z-index: 2; right: -12px;
}

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.price-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: var(--transition); position: relative;
}
.price-card.featured {
  border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue);
  transform: scale(1.02);
}
.price-card.featured::before {
  content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white); font-size: .65rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .06em;
}
.price-card .plan-name { font-size: .85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.price-card .plan-price { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); letter-spacing: -.03em; margin-bottom: 4px; }
.price-card .plan-period { font-size: .8rem; color: var(--gray-400); margin-bottom: 20px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.price-card li { font-size: .82rem; color: var(--gray-600); padding: 6px 0; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 8px; }
.price-card li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: .75rem; }
.price-card .btn { width: 100%; justify-content: center; }

/* ========== PROTOCOLS ========== */
.protocols-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.protocol-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
  border-radius: 40px; padding: 10px 20px; transition: var(--transition);
}
.protocol-chip:hover { border-color: var(--blue); transform: translateY(-2px); }
.protocol-chip .proto-dot { width: 8px; height: 8px; border-radius: 50%; }
.protocol-chip .proto-dot.native { background: var(--green); }
.protocol-chip .proto-dot.plugin { background: var(--amber); }
.protocol-chip .proto-dot.edge { background: var(--purple); }
.protocol-chip span { font-size: .85rem; font-weight: 600; color: var(--white); }

/* ========== COMPARISON ========== */
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.comparison-table thead th {
  background: var(--navy); color: var(--white); padding: 14px 16px;
  font-weight: 600; text-align: left; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.comparison-table thead th:nth-child(2) { background: var(--blue-dark); }
.comparison-table thead th:nth-child(3) { background: #BF360C; }
.comparison-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.comparison-table tbody tr:hover { background: var(--gray-50); }
.comparison-table .badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FECACA; color: #991B1B; }
.badge-yellow { background: #FEF3C7; color: #92400E; }

/* ========== USE CASES ========== */
.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase-card {
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg); padding: 28px 22px;
  transition: var(--transition);
}
.usecase-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.usecase-card .uc-icon { font-size: 2rem; margin-bottom: 14px; }
.usecase-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.usecase-card p { font-size: .82rem; color: var(--gray-400); line-height: 1.5; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  text-align: center; padding: 100px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.08) 0%, transparent 60%);
}
.cta-section h2 { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -.03em; position: relative; }
.cta-section p { font-size: 1.1rem; color: var(--gray-400); margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; position: relative; }

/* ========== FOOTER ========== */
.footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 0 30px; color: var(--gray-400);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }
.footer h5 { font-size: .78rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--gray-500); font-size: .85rem; }
.footer li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; color: var(--gray-600);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text .subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-flow { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .section-header h2 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .arch-flow { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .1s; }
.fade-up.d2 { transition-delay: .2s; }
.fade-up.d3 { transition-delay: .3s; }
.fade-up.d4 { transition-delay: .4s; }
.fade-up.d5 { transition-delay: .5s; }

/* Live indicator */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 2s infinite; }
