/* ----------------------------------
   Iran IP Connect - Stylesheet
   Light Mode Priority, Deep Blue Sea Palette
   Architecture: Vanilla CSS, RTL
------------------------------------- */

:root {
  /* Deep Blue Sea Color Palette - Light Theme */
  --bg-color: #fcfcfc; /* surface */
  --bg-alt: #f3f6f9; /* derived lighter background for contrast sections */
  --text-main: #111111; /* onSurface */
  --text-muted: #556b82; /* adjusted readability for light mode */
  
  --primary: #223a5e; /* Cello */
  --primary-container: #97baea; /* Jordy Blue */
  --secondary: #144955; /* Blue Dianne */
  --tertiary: #208399; /* Jelly Bean */
  
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  --accent-error: #B00020; /* Error color from palette */
  
  /* Glassmorphism -> Adjusted for Light Mode */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(34, 58, 94, 0.15); /* primary color transparent */
  
  /* Typography */
  --font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --section-pad: 5rem 1rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* Typography Classes */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-tertiary { color: var(--tertiary) !important; }
.fw-bold { font-weight: bold; }
.mx-auto { margin-inline: auto; }

/* Dynamic Backgrounds */
.primary-bg { background-color: var(--primary); color: #fff; }
.secondary-bg { background-color: var(--secondary); color: #fff; }
.tertiary-bg { background-color: var(--tertiary); color: #fff; }

.primary-bg h2, .primary-bg h3, .primary-bg p,
.secondary-bg h2, .secondary-bg p,
.tertiary-bg h2, .tertiary-bg p {
  color: #fff;
}

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Container & Sections */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: var(--section-pad);
}
.section-header {
  margin-bottom: 4rem;
}
.bg-alt {
  background-color: var(--bg-alt);
}
.config-max-width { max-width: 800px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: 1rem;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.2rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 58, 94, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #1c2f4d;
  box-shadow: 0 8px 25px rgba(34, 58, 94, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.btn-outline:hover {
  background: var(--primary-container);
  color: var(--primary);
  border-color: var(--primary-container);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-icon { font-size: 1.3rem; }

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease, color 0.3s ease;
}

.glass-nav.scrolled {
  background: var(--primary);
  border-bottom: none;
  box-shadow: 0 4px 15px rgba(34, 58, 94, 0.3);
}

.glass-nav.scrolled .gradient-text {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.glass-nav.scrolled .desktop-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.glass-nav.scrolled .desktop-nav a:hover {
  color: #fff;
}

.glass-nav.scrolled .btn-primary {
  background: #fff;
  color: var(--primary);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.desktop-nav ul {
  display: flex;
  gap: 2rem;
}
.desktop-nav a {
  font-weight: 600;
  color: var(--text-muted);
}
.desktop-nav a:hover {
  color: var(--primary);
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--primary-container) 0%, var(--bg-color) 40%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}
.shape-1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: var(--tertiary);
  bottom: 100px; left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-text {
  padding-top: 4rem; /* Adds padding from the top */
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 500px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 992px) {
  .hero-buttons { justify-content: center; }
}

/* Mockup Visual */
.mockup-container {
  perspective: 1000px;
}
.mockup-screen {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: -15px 15px 40px rgba(34, 58, 94, 0.15);
  transition: var(--transition-normal);
}
.mockup-screen:hover {
  transform: rotateY(-5deg) rotateX(2deg);
  box-shadow: -10px 10px 30px rgba(34, 58, 94, 0.2);
}

.mockup-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.connection-status {
  position: relative;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
}
.pulse-ring {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid var(--tertiary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.status-icon {
  font-size: 3rem;
  background: rgba(32, 131, 153, 0.1);
  color: var(--tertiary);
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.status-text { margin-bottom: 0.5rem; color: var(--tertiary); }
.ip-text { color: var(--text-muted); margin-bottom: 2rem; }
.fake-btn {
  background: var(--primary-container);
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--primary);
  font-weight: bold;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(34, 58, 94, 0.08);
}
.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Use Cases Sections */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.case-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.case-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.case-card h3 { margin-bottom: 1rem; color: var(--primary); }
.case-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.case-features {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}
.case-features li { 
  padding: 0.3rem 0; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-box {
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition-normal);
}
.feature-box:hover {
  transform: translateY(-5px);
  background: #fff;
  box-shadow: 0 10px 20px rgba(34, 58, 94, 0.05);
}
.f-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.feature-box p { color: var(--text-muted); }

/* How It Works */
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    gap: 3rem;
  }
}
.step-num {
  width: 80px; height: 80px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: bold;
  box-shadow: 0 10px 20px rgba(34, 58, 94, 0.1);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.faq-question {
  width: 100%;
  text-align: right;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--secondary);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
}
.faq-answer-inner p { margin-bottom: 1rem; }
.faq-answer-inner ul {
  padding-right: 1.5rem;
  list-style: disc;
}

/* CTA Footer Section */
.cta-box {
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(34, 58, 94, 0.2);
}

.cta-actions { margin-bottom: 2rem; }
.cta-trust {
  display: flex; justify-content: center; gap: 2rem;
  color: rgba(255,255,255,0.9); font-size: 0.9rem;
}
@media (max-width: 600px) {
  .cta-trust { flex-direction: column; gap: 0.5rem; }
}

/* Footer Element */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h3, .footer h4 { color: #fff; margin-bottom: 1rem; }
.footer p { color: rgba(255,255,255,0.7); }

.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: #fff; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
}
.contact-link:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-in-right {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Floating Telegram Button */
.floating-telegram {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #0088cc;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  z-index: 9999;
  transition: var(--transition-normal);
  animation: hoverFloat 3s infinite ease-in-out;
}
.floating-telegram:hover {
  transform: scale(1.1);
  background-color: #0077b5;
  color: #fff;
  animation: none;
}
@keyframes hoverFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
