/* ==========================================================================
   IstanbulCats Masking Portal - Stylesheet
   Modern Glassmorphic Dark UI for AmneziaWG Masquerading
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --accent-gold: #fbbf24;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glows */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  z-index: -2;
}

.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.ambient-1 {
  top: 15%;
  left: -100px;
  background: radial-gradient(circle, #f59e0b, #b45309);
}

.ambient-2 {
  top: 60%;
  right: -100px;
  background: radial-gradient(circle, #8b5cf6, #3b82f6);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--border-glass);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
}

.brand b {
  color: var(--primary);
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover {
  color: #fff;
}

.nav-btn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold) !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.nav-btn:hover {
  background: var(--primary);
  color: #0b0f19 !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 850px;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #0b0f19;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 800px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Section Common */
.section {
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.sub-badge {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Tombili Card */
.tombili-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.tombili-visual {
  display: flex;
  justify-content: center;
}

.cat-statue-box {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.tombili-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.statue-tag {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.tombili-info h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.tombili-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.quote-card {
  margin-top: 24px;
  padding: 18px 24px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-pill {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Source Box */
.source-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.source-icon {
  font-size: 1.8rem;
}

.source-box a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-weight: 600;
}

.source-box a:hover {
  color: #fff;
}

/* Interactive Box */
.interactive-box {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
}

.interactive-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.interactive-header p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cat-interaction-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.big-pet-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.big-pet-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.55);
}

.big-pet-btn:active {
  transform: scale(0.95);
}

.btn-bounce {
  transform: scale(1.15) !important;
}

.cat-emoji {
  font-size: 1.8rem;
}

.counter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-label {
  font-size: 1rem;
  color: var(--text-muted);
}

.counter-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.wisdom-box {
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  font-style: italic;
  font-size: 1.1rem;
  color: #cbd5e1;
  transition: var(--transition);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-pop {
  transform: scale(1.02);
  color: #fef08a;
}

/* Footer */
footer {
  margin-top: 80px;
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 40px 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand strong {
  font-size: 1.1rem;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 860px) {
  .tombili-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 20px;
  }
  .tombili-visual {
    margin-bottom: 12px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  nav ul {
    display: none;
  }
  .hero {
    padding: 60px 16px 40px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
