/* CloudSync Solutions S.R.L. — Global Styles */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #22c55e;
  --orange: #f97316;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--gray-50); color: var(--gray-700); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Header */
.header { background: var(--navy); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 100; }
.header .logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.header .logo svg { width: 28px; height: 28px; }
.header .logo span { color: var(--gray-200); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.header nav { display: flex; gap: 0.25rem; }
.header nav a { color: var(--gray-400); text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; transition: all 0.15s; }
.header nav a:hover, .header nav a.active { color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 5rem 2rem 4rem; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); color: white; }
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.03em; }
.hero p { font-size: 1.125rem; color: var(--gray-400); max-width: 640px; margin: 0 auto 2.5rem; }
.btn { display: inline-block; background: var(--blue); color: white; padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.95rem; transition: background 0.15s; border: none; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid var(--gray-400); color: var(--gray-300); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.05); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Section */
.section { padding: 4rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--gray-900); }
.section-sub { text-align: center; color: var(--gray-500); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: 0.75rem; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04); border: 1px solid var(--gray-200); transition: box-shadow 0.15s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.card p { color: var(--gray-500); font-size: 0.875rem; line-height: 1.7; }

/* Footer */
.footer { background: var(--navy); color: var(--gray-400); padding: 3rem 2rem 2rem; margin-top: 4rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: var(--gray-200); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer p, .footer a { font-size: 0.8125rem; color: var(--gray-400); line-height: 1.8; }
.footer a:hover { color: var(--gray-200); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; }
.footer-bottom a { color: var(--gray-500); margin-left: 1.5rem; }

/* Pricing */
.pricing-card { text-align: center; padding: 2.5rem 2rem; position: relative; }
.pricing-card.featured { border: 2px solid var(--blue); }
.pricing-card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 1rem; border-radius: 1rem; text-transform: uppercase; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin: 1rem 0 0.25rem; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-card .period { color: var(--gray-500); font-size: 0.8125rem; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-card ul li { padding: 0.4rem 0; font-size: 0.875rem; color: var(--gray-600); }
.pricing-card ul li::before { content: "\2713"; color: var(--green); font-weight: 700; margin-right: 0.5rem; }

/* Docs sidebar */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; min-height: 60vh; }
.docs-sidebar { border-right: 1px solid var(--gray-200); padding-right: 1.5rem; }
.docs-sidebar h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--gray-400); letter-spacing: 0.05em; margin: 1.5rem 0 0.5rem; }
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a { display: block; padding: 0.35rem 0.75rem; font-size: 0.8125rem; color: var(--gray-600); border-radius: 0.25rem; margin-bottom: 0.125rem; }
.docs-sidebar a:hover, .docs-sidebar a.active { background: var(--blue); color: white; text-decoration: none; }
.docs-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 0.75rem; }
.docs-content h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-800); margin: 2rem 0 0.75rem; }
.docs-content p { color: var(--gray-600); margin-bottom: 1rem; font-size: 0.9375rem; }
.docs-content code { background: var(--gray-100); padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.85rem; color: var(--gray-800); }
.docs-content pre { background: var(--navy); color: var(--gray-300); padding: 1rem 1.25rem; border-radius: 0.5rem; overflow-x: auto; margin-bottom: 1.5rem; font-size: 0.8125rem; line-height: 1.7; }

/* Team avatars */
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; margin: 0 auto 0.75rem; }

/* Contact form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 0.375rem; font-size: 0.875rem; font-family: inherit; background: white; color: var(--gray-800); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 0; }
.faq-item h4 { font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.875rem; color: var(--gray-500); }

/* Mobile hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-400); margin: 5px 0; transition: 0.3s; border-radius: 1px; }

/* Cookie banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: var(--gray-300); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; z-index: 200; font-size: 0.8125rem; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 -2px 12px rgba(0,0,0,0.25); }
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--blue); }
.cookie-btn { background: var(--blue); color: white; border: none; padding: 0.5rem 1.5rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; transition: background 0.15s; }
.cookie-btn:hover { background: var(--blue-dark); }

/* Form success toast */
.form-toast { display: none; padding: 1rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; margin-top: 1rem; text-align: center; }
.form-toast.success { display: block; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Social links */
.social-links { display: flex; gap: 0.25rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 0.375rem; background: rgba(255,255,255,0.06); color: var(--gray-400); transition: background 0.15s; }
.social-links a:hover { background: rgba(255,255,255,0.12); color: var(--gray-200); text-decoration: none; }
.social-links svg { width: 16px; height: 16px; fill: currentColor; }

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 0 1rem; }
  .hamburger { display: block; }
  .header nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 0.5rem 1rem 1rem; border-top: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
  .header nav.open { display: flex; }
  .header nav a { padding: 0.75rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 3rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { border-right: none; border-bottom: 1px solid var(--gray-200); padding-right: 0; padding-bottom: 1rem; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
