/* ══════════════════════════════════════════
   iClinicOS — Landing Page Styles
   ══════════════════════════════════════════ */

:root {
  --dark: #050D1A;
  --dark2: #0A1628;
  --dark3: #0D1F35;
  --blue: #0A6EBD;
  --blue2: #1A8FE3;
  --green: #00C9A7;
  --green2: #00A886;
  --orange: #F59E0B;
  --white: #FFFFFF;
  --gray: #7A9AB5;
  --gray2: #4A6A8A;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 6%; display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px); background: rgba(5, 13, 26, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: all 0.3s;
}
.nav-logo { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 12px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green); color: var(--dark); padding: 8px 18px; border-radius: 10px;
  font-family: 'Cairo', sans-serif; font-size: 11px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.nav-cta:hover { background: var(--green2); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 6% 80px; position: relative; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); animation: float 8s ease-in-out infinite; pointer-events: none; }
.orb1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,201,167,0.12) 0%, transparent 70%); top: -200px; left: -200px; }
.orb2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(10,110,189,0.15) 0%, transparent 70%); bottom: -150px; right: -150px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%); top: 40%; right: 20%; animation-delay: 5s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.hero-content { position: relative; z-index: 1; max-width: 680px; animation: heroIn 1s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.3);
  color: var(--green); padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; margin-bottom: 24px; animation: heroIn 1s ease 0.1s both;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px; animation: heroIn 1s ease 0.2s both; }
.hero h1 .accent { color: var(--green); }
.hero h1 .accent2 { color: var(--blue2); }
.hero-sub { font-size: 17px; color: var(--gray); line-height: 1.7; margin-bottom: 36px; max-width: 520px; animation: heroIn 1s ease 0.3s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: heroIn 1s ease 0.4s both; }

.btn-hero { padding: 14px 28px; border-radius: 12px; font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; border: none; transition: all 0.25s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--green); color: var(--dark); box-shadow: 0 8px 32px rgba(0,201,167,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,201,167,0.4); }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--white); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); animation: heroIn 1s ease 0.5s both; }
.hero-stat-val { font-size: 28px; font-weight: 900; color: var(--white); }
.hero-stat-val span { color: var(--green); }
.hero-stat-lbl { font-size: 12px; color: var(--gray); margin-top: 2px; font-weight: 600; }

/* ─── HERO VISUAL (WhatsApp mockup) ─── */
.hero-visual { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); width: 45%; max-width: 600px; animation: heroIn 1s ease 0.3s both; z-index: 1; }
.phone-mockup { background: var(--dark2); border-radius: 24px; border: 1px solid rgba(255,255,255,0.08); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05); transform: perspective(1000px) rotateY(8deg) rotateX(2deg); transition: transform 0.5s; }
.phone-mockup:hover { transform: perspective(1000px) rotateY(4deg) rotateX(1deg); }
.wa-header { background: #128C7E; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.wa-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wa-name { font-size: 13px; font-weight: 700; color: #fff; }
.wa-status { font-size: 10px; color: rgba(255,255,255,0.7); }
.wa-msgs { background: #E5DDD5; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; direction: rtl; }
.msg { max-width: 78%; padding: 9px 12px; border-radius: 10px; font-size: 12px; line-height: 1.5; color: #1A1A1A; position: relative; }
.msg-time { font-size: 9px; color: rgba(0,0,0,0.4); margin-top: 3px; text-align: left; }
.msg-in { background: #fff; align-self: flex-end; border-radius: 10px 0 10px 10px; animation: msgIn 0.3s ease both; }
.msg-bot { background: #E8F5E9; align-self: flex-start; border-radius: 0 10px 10px 10px; border-right: 3px solid #128C7E; animation: msgIn 0.3s ease both; }
@keyframes msgIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ─── SECTIONS ─── */
section { padding: 100px 6%; position: relative; z-index: 1; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,201,167,0.08); border: 1px solid rgba(0,201,167,0.2); color: var(--green); padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.5px; }
.section-sub { font-size: 16px; color: var(--gray); line-height: 1.7; max-width: 500px; }

/* ─── HOW IT WORKS ─── */
.how { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%); }
.how-header { text-align: center; margin-bottom: 64px; }
.how-header .section-sub { margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 40px; right: 10%; left: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--green), var(--blue2), var(--green), transparent); opacity: 0.3; }
.step { text-align: center; padding: 0 16px; position: relative; }
.step-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--dark3); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px; position: relative; z-index: 1; transition: all 0.3s; }
.step:hover .step-icon { border-color: var(--green); box-shadow: 0 0 30px rgba(0,201,167,0.2); transform: translateY(-4px); }
.step-num { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; background: var(--green); color: var(--dark); border-radius: 50%; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.step-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 11px; color: var(--gray); line-height: 1.5; }

/* ─── FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature-card { background: var(--dark2); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 28px; transition: all 0.3s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: rgba(0,201,167,0.2); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 0.05; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }
.feature-tag { display: inline-block; margin-top: 14px; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ─── PRICING ─── */
.pricing { background: var(--dark2); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; max-width: 900px; margin-left: auto; margin-right: auto; }
.plan-card { background: var(--dark); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px; transition: all 0.3s; position: relative; }
.plan-card.featured { background: var(--dark3); border-color: var(--green); box-shadow: 0 0 40px rgba(0,201,167,0.1); transform: scale(1.04); }
.plan-badge { position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--green); color: var(--dark); font-size: 10px; font-weight: 700; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.plan-name { font-size: 14px; color: var(--gray); font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 40px; font-weight: 900; margin-bottom: 4px; }
.plan-price sup { font-size: 18px; vertical-align: top; margin-top: 10px; display: inline-block; color: var(--gray); }
.plan-period { font-size: 12px; color: var(--gray); margin-bottom: 24px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-features li { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.btn-plan { width: 100%; padding: 12px; border-radius: 12px; font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: var(--white); transition: all 0.2s; }
.btn-plan:hover { background: rgba(255,255,255,0.08); }
.btn-plan.featured-btn { background: var(--green); color: var(--dark); border-color: var(--green); }
.btn-plan.featured-btn:hover { background: var(--green2); }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.testimonial-card { background: var(--dark2); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 28px; }
.stars { color: var(--orange); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-av { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; }
.author-name { font-size: 13px; font-weight: 700; }
.author-title { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ─── CTA ─── */
.cta-section { padding: 120px 6%; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,201,167,0.08) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-size: clamp(32px, 5vw, 52px); font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.cta-sub { font-size: 16px; color: var(--gray); margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─── */
footer { background: var(--dark2); border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-size: 18px; font-weight: 900; }
.footer-logo span { color: var(--green); }
.footer-text { font-size: 12px; color: var(--gray); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── SCROLL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; }
}
