/* ===== UCA Landing Page Custom Styles ===== */

/* --- Color variables --- */
:root {
  --uca-primary: #6C3CE1;
  --uca-primary-dark: #5228b8;
  --uca-secondary: #00C9A7;
  --uca-dark: #1a1a2e;
  --uca-text: #4a4a68;
  --uca-light-bg: #f5f3ff;
  --uca-border: #e5e5e5;
  --uca-gradient: linear-gradient(135deg, #6C3CE1 0%, #00C9A7 100%);
}

/* --- Global --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--uca-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--uca-dark);
  font-weight: 700;
}

a {
  color: var(--uca-primary);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--uca-primary-dark);
}

/* --- Header / Navbar --- */
.navbar-area {
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: all 0.3s;
  background: transparent;
}
.navbar-area.sticky {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 10px 0;
}
.navbar {
  position: relative;
}
.navbar-brand img {
  max-height: 36px;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff;
}
.navbar-toggler {
  border: none;
  padding: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Language switch (EN | PL) --- */
.lang-switch {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s;
}
.lang-switch:hover,
.lang-switch.active {
  opacity: 1;
  color: #fff;
}
.lang-divider {
  color: rgba(255,255,255,0.3);
  margin: 0 4px;
}

/* --- Hero Section --- */
.hero-section {
  background: var(--uca-gradient);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 .highlight {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 25px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.hero-badge i {
  color: var(--uca-secondary);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.btn-primary-uca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--uca-primary);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary-uca:hover {
  background: #f0f0f0;
  color: var(--uca-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-secondary-uca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-secondary-uca:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.hero-trust {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* Hero visual / code preview */
.hero-visual {
  position: relative;
  z-index: 1;
}
.code-preview {
  background: #1e1e3f;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.code-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-preview-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }
.code-preview-header span {
  margin-left: auto;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.code-preview-body {
  padding: 20px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
  overflow-x: auto;
}
.code-preview-body .comment { color: #6a9955; }
.code-preview-body .keyword { color: #c586c0; }
.code-preview-body .string { color: #ce9178; }
.code-preview-body .function { color: #dcdcaa; }
.code-preview-body .variable { color: #9cdcfe; }
.code-preview-body .number { color: #b5cea8; }

/* --- Problem Section --- */
.problem-section {
  padding: 80px 0;
  background: #fff;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--uca-light-bg);
  color: var(--uca-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--uca-text);
  max-width: 650px;
  margin: 0 auto 40px;
}
.problem-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: transform 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
}
.problem-card .icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 15px;
}
.problem-card .icon-box.red {
  background: #fff0f0;
  color: #dc3545;
}
.problem-card .icon-box.orange {
  background: #fff8e1;
  color: #ff9800;
}
.problem-card .icon-box.yellow {
  background: #fffde7;
  color: #ffc107;
}
.problem-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.problem-card p {
  color: var(--uca-text);
  font-size: 0.95rem;
  margin: 0;
}
.stat-highlight {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- How It Works Section --- */
.how-section {
  padding: 80px 0;
  background: var(--uca-light-bg);
}
.layer-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  height: 100%;
  position: relative;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}
.layer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.layer-card.layer-0 { border-left-color: var(--uca-primary); }
.layer-card.layer-1 { border-left-color: #6366f1; }
.layer-card.layer-2 { border-left-color: #06b6d4; }
.layer-card.layer-3 { border-left-color: var(--uca-secondary); }
.layer-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
}
.layer-0 .layer-number { background: rgba(108,60,225,0.1); color: var(--uca-primary); }
.layer-1 .layer-number { background: rgba(99,102,241,0.1); color: #6366f1; }
.layer-2 .layer-number { background: rgba(6,182,212,0.1); color: #06b6d4; }
.layer-3 .layer-number { background: rgba(0,201,167,0.1); color: var(--uca-secondary); }
.layer-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.layer-card p {
  font-size: 0.93rem;
  color: var(--uca-text);
  margin: 0;
}
.layer-card .layer-speed {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
}

/* --- CMP Support Section --- */
.cmp-section {
  padding: 80px 0;
  background: #fff;
}
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cmp-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}
.cmp-card:hover {
  border-color: var(--uca-primary);
  box-shadow: 0 4px 15px rgba(108,60,225,0.1);
}
.cmp-card .cmp-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--uca-dark);
  margin-bottom: 8px;
}
.cmp-card .cmp-features {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.cmp-card .cmp-features .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
}
.check.yes { background: #ecfdf5; color: #059669; }
.check.no { background: #fef2f2; color: #dc3545; }

/* --- Stats Section --- */
.stats-section {
  padding: 70px 0;
  background: var(--uca-gradient);
}
.stat-box {
  text-align: center;
  padding: 20px;
}
.stat-box .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* --- Features Section --- */
.features-section {
  padding: 80px 0;
  background: var(--uca-light-bg);
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  height: 100%;
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card .feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--uca-light-bg);
  color: var(--uca-primary);
  font-size: 22px;
  margin-bottom: 15px;
}
.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--uca-text);
  margin: 0;
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: 80px 0;
  background: #fff;
}
.newsletter-box {
  background: var(--uca-light-bg);
  border-radius: 20px;
  padding: 50px;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.newsletter-box p {
  color: var(--uca-text);
  margin-bottom: 25px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--uca-border);
  border-radius: 50px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter-form input:focus {
  border-color: var(--uca-primary);
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--uca-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: var(--uca-primary-dark);
}
.newsletter-success {
  display: none;
  padding: 20px;
  color: #059669;
  font-weight: 600;
}
.newsletter-error {
  display: none;
  padding: 10px;
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 0;
  background: var(--uca-light-bg);
}
.accordion-item {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  font-size: 1rem;
  color: var(--uca-dark);
  padding: 18px 24px;
  background: #fff;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: var(--uca-primary);
  background: #fff;
}
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236C3CE1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
  padding: 0 24px 18px;
  color: var(--uca-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--uca-dark);
  padding: 40px 0;
  text-align: center;
}
.footer p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 0;
}
.footer a {
  color: rgba(255,255,255,0.7);
  margin: 0 15px;
  font-size: 14px;
}
.footer a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-section { padding: 120px 0 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-visual { margin-top: 40px; }
  .cmp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .hero-section { padding: 100px 0 50px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { text-align: center; justify-content: center; }
  .cmp-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 30px 20px; }
  .stat-box .stat-number { font-size: 2.2rem; }
}
@media (max-width: 575px) {
  .hero-badges { flex-direction: column; }
  .cmp-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Utility --- */
.hidden { display: none !important; }
.text-gradient {
  background: var(--uca-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
