/* =========================================
   COPISRAD.CLOUD - CSS Global
   Automation-as-a-Service | Argentina
   ========================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ---- Variables ---- */
:root {
  --bg-deep:     #060b18;
  --bg-dark:     #0a0e1a;
  --bg-card:     #0f1629;
  --bg-card2:    #141c35;
  --primary:     #00d4ff;
  --primary-dim: #0097b8;
  --secondary:   #7c3aed;
  --accent:      #22d3ee;
  --green:       #10b981;
  --orange:      #f59e0b;
  --red:         #ef4444;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --border:      rgba(0, 212, 255, 0.15);
  --border-card: rgba(255,255,255,0.07);
  --shadow:      0 4px 32px rgba(0,212,255,0.08);
  --radius:      12px;
  --radius-lg:   20px;
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --max-w:       1200px;
  --nav-h:       72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---- Utility ---- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,255,0.1); border: 1px solid var(--border);
  color: var(--primary); border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 14px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: all .2s;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0097b8);
  color: #000;
  box-shadow: 0 0 24px rgba(0,212,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.5);
  transform: translateY(-1px);
  color: #000;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,212,255,0.05);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.card-glow:hover {
  box-shadow: 0 0 32px rgba(0,212,255,0.08);
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label { margin-bottom: 16px; }
.section-title { margin-bottom: 20px; }
.section-desc  { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  transition: box-shadow .3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
}
.nav-logo span { color: var(--primary); }
.logo-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
  box-shadow: 0 0 10px var(--primary); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,0.05);
}
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-deep); border-bottom: 1px solid var(--border-card);
  padding: 20px 24px 32px; z-index: 999; flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-muted); padding: 12px 16px; border-radius: 8px;
  font-weight: 500; transition: all .2s;
}
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

/* ========== HERO ========== */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero-desc {
  font-size: 1.2rem; color: var(--text-muted);
  max-width: 620px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-meta {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-size: 2rem; font-weight: 800;
  color: var(--primary);
}
.hero-stat span { font-size: .85rem; color: var(--text-muted); }

/* ========== FEATURES / ICONS ========== */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.icon-box.cyan   { background: rgba(0,212,255,0.12); }
.icon-box.purple { background: rgba(124,58,237,0.15); }
.icon-box.green  { background: rgba(16,185,129,0.12); }
.icon-box.orange { background: rgba(245,158,11,0.12); }

/* ========== HOW IT WORKS ========== */
.steps { counter-reset: step-counter; }
.step { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border-card); }
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,212,255,0.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
}

/* ========== PRICING ========== */
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(0,212,255,0.12);
  transform: scale(1.02);
}
.pricing-card:hover { border-color: var(--border); transform: translateY(-3px); }
.pricing-card.featured:hover { border-color: var(--primary); transform: scale(1.02) translateY(-3px); }
.price-tag { font-size: 2.8rem; font-weight: 800; color: var(--text); }
.price-tag span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-features { flex: 1; margin: 24px 0; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: var(--text-muted); font-size: .9rem;
}
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.badge-featured {
  background: var(--primary); color: #000;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
  display: inline-block; margin-bottom: 16px;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--border-card);
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-size: 1rem; font-weight: 600;
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-chevron { color: var(--primary); font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-answer-inner { padding-bottom: 20px; color: var(--text-muted); line-height: 1.75; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(124,58,237,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.05) 0%, transparent 70%);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-card);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-card);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: .85rem; }
.footer-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: .8rem;
}
.footer-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 6px var(--green); }

/* ========== PAGE HEADER ========== */
.page-header {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  position: relative;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-header h1 { margin-bottom: 20px; }
.page-header p  { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ========== TECH BADGE / STACK ========== */
.tech-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 8px; padding: 6px 12px;
  font-size: .8rem; color: var(--text-muted);
}

/* ========== BLOG CARDS ========== */
.blog-card img, .blog-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 8px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
}
.blog-card-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.blog-meta .tag { font-size: .7rem; }
.blog-date { color: var(--text-dim); font-size: .8rem; }

/* ========== CONTACT FORM ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 8px; padding: 12px 16px; color: var(--text);
  font-family: var(--font); font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control option { background: var(--bg-dark); }

/* ========== ALERTS / NOTICES ========== */
.notice {
  background: rgba(0,212,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 20px; color: var(--text-muted);
  font-size: .9rem;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .pricing-card.featured { transform: none; }
  .cta-banner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 20px; }
}
