/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;

  /* Brand Colors */
  --brand: #ff3a00;
  --brand-hover: #e03200;
  --brand-light: rgba(255, 58, 0, 0.1);

  /* Light Theme */
  --bg: #f8f9fc;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(255, 58, 0, 0.05) 0%, transparent 50%), linear-gradient(135deg, #f8f9fc 0%, #e2e8f0 100%);
  --card: rgba(255, 255, 255, 0.7);
  --card-hover: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.5);
  --text: #1a202c;
  --text-muted: #64748b;
  --shadow-color: rgba(148, 163, 184, 0.15);
  --glass-bg: rgba(248, 249, 252, 0.85);
  --icon-bg: #f1f5f9;
  
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-gradient: radial-gradient(circle at 50% 0%, rgba(255, 58, 0, 0.15) 0%, transparent 60%), linear-gradient(135deg, #181b21 0%, #0a0b0d 100%);
    --card: rgba(30, 34, 43, 0.4);
    --card-hover: rgba(30, 34, 43, 0.8);
    --card-border: rgba(255, 255, 255, 0.06);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 17, 21, 0.85);
    --icon-bg: rgba(255, 255, 255, 0.05);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f9fc;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(255, 58, 0, 0.05) 0%, transparent 50%), linear-gradient(135deg, #f8f9fc 0%, #e2e8f0 100%);
  --card: rgba(255, 255, 255, 0.7);
  --card-hover: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.5);
  --text: #1a202c;
  --text-muted: #64748b;
  --shadow-color: rgba(148, 163, 184, 0.15);
  --glass-bg: rgba(248, 249, 252, 0.85);
  --icon-bg: #f1f5f9;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1115;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(255, 58, 0, 0.15) 0%, transparent 60%), linear-gradient(135deg, #181b21 0%, #0a0b0d 100%);
  --card: rgba(30, 34, 43, 0.4);
  --card-hover: rgba(30, 34, 43, 0.8);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(15, 17, 21, 0.85);
  --icon-bg: rgba(255, 255, 255, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Layout */
.app-container {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px 100px; /* bottom padding for sticky CTA */
  position: relative;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform var(--transition), background var(--transition);
  z-index: 10;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: var(--card-hover);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.icon-moon, .icon-sun {
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

/* Show/hide logic */
html:not([data-theme="dark"]) .icon-moon {
  opacity: 1;
  transform: rotate(0);
}

html:not([data-theme="dark"]) .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

html[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

html[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: rotate(0);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-moon { opacity: 0; transform: rotate(-90deg); }
  html:not([data-theme="light"]) .icon-sun { opacity: 1; transform: rotate(0); }
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 32px;
}

.brand-mark-card {
  width: 132px;
  height: 132px;
  border-radius: 34px;
  padding: 8px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 40px var(--shadow-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.brand-subtitle {
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trust-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 280px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Primary Actions */
.primary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 58, 0, 0.3);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 10px 24px rgba(255, 58, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

/* Contact Cards */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  background: var(--card);
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 8px 24px var(--shadow-color);
}

.contact-card:active {
  transform: scale(0.98);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition);
}

.card-icon.telegram { background: linear-gradient(135deg, #229ED9, #38BDF8); }
.card-icon.phone { background: linear-gradient(135deg, #16A34A, #22C55E); }
.card-icon.map { background: linear-gradient(135deg, #FF3A00, #FF6A00); }
.card-icon.youtube { background: linear-gradient(135deg, #FF0000, #CC0000); }
.card-icon.instagram { 
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.card-text {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
}

.chevron {
  color: var(--text-muted);
  opacity: 0.5;
  transition: transform var(--transition);
}

.contact-card:hover .chevron {
  transform: translateX(4px);
  opacity: 1;
}

/* Info Blocks */
.info-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-link {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}

.phone-link:last-child {
  margin-bottom: 0;
}

.phone-link:hover {
  color: var(--brand);
}

.time-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.time-highlight {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* Trust Block */
.trust-block {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px var(--shadow-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.trust-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Footer */
footer {
  text-align: center;
  padding: 16px 0 24px;
}

footer p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-muted {
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

.creator-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.creator-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: fit-content;
  min-width: unset;
  height: 48px;
  padding: 0 16px;

  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;

  background: rgba(16, 18, 26, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.creator-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.creator-badge > span {
  position: relative;
  z-index: 1;
}

.border-base {
  fill: none;
  stroke: rgba(212, 175, 55, 0.42);
  stroke-width: 1.3;
}

.border-runner {
  fill: none;
  stroke: #f6d66f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 0;
  animation: borderRunner 2.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(246, 214, 111, 0.6));
}

@keyframes borderRunner {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -100;
  }
}

.creator-badge .telegram-icon {
  color: #55acee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.creator-badge .label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1;
  transition: color 0.3s ease;
}

.creator-badge .username {
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s ease;
}

/* Hover effects */
.creator-badge:hover {
  transform: translateY(-1px);
}
.creator-badge:hover .telegram-icon {
  transform: scale(1.05) rotate(2deg);
}
[data-theme="dark"] .creator-badge:hover .label {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="light"] .creator-badge:hover .label {
  color: rgba(30, 34, 42, 0.85);
}

/* Light mode */
[data-theme="light"] .creator-badge {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .creator-badge .label {
  color: rgba(30, 34, 42, 0.68);
}

[data-theme="light"] .creator-badge .username {
  color: rgba(20, 24, 32, 0.96);
}

[data-theme="light"] .border-base {
  stroke: rgba(184, 134, 11, 0.48);
}

[data-theme="light"] .border-runner {
  stroke: #d4a017;
  filter: drop-shadow(0 0 3px rgba(212, 160, 23, 0.42));
}

/* Sticky CTA */
.sticky-cta-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.sticky-cta-container {
  width: 100%;
  max-width: 400px; /* Aligns with app-container max-width accounting for padding */
}

.sticky-btn {
  margin: 0;
}

@media (max-width: 380px) {
  .info-blocks {
    grid-template-columns: 1fr;
  }
}
