/* Diwan Enterprise Consulting — Product Website */
/* Pure HTML5 + CSS, no frameworks */

:root {
  --primary: #0f2b46;
  --primary-light: #1a4d7d;
  --accent: #2196f3;
  --accent-dark: #1565c0;
  --teal: #00897b;
  --orange: #ff6f00;
  --surface: #f8fafb;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6577;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15,43,70,0.08);
  --shadow-hover: 0 8px 32px rgba(15,43,70,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--surface); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
nav { background: var(--primary); padding: 24px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
nav .container { display: flex; justify-content: space-between; align-items: center; }
nav .logo { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; }
nav .logo img { width: 66px; height: 66px; border-radius: 50%; object-fit: contain; padding: 3px; }
nav .logo .logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
nav .logo .logo-name { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; }
nav .logo .logo-squiggle { display: block; height: 6px; width: 80px; margin: 2px auto; }
nav .logo .logo-slogan { font-size: 1rem; opacity: 0.9; font-weight: 800; font-style: italic; letter-spacing: 0.05em; }
nav ul { list-style: none; display: flex; gap: 24px; }
nav ul a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }
nav ul a:hover { color: #fff; text-decoration: none; }
nav .nav-cta { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 8px; font-weight: 700; }
nav .nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* === HERO === */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; opacity: 0.85; max-width: 700px; margin: 0 auto 32px; }
.hero .cta { display: inline-block; background: var(--accent); color: #fff; padding: 14px 32px; border-radius: 8px; font-weight: 700; font-size: 1.05rem; }
.hero .cta:hover { background: var(--accent-dark); text-decoration: none; }
.hero .cta-secondary { display: inline-block; border: 2px solid rgba(255,255,255,0.4); color: #fff; padding: 12px 28px; border-radius: 8px; font-weight: 600; margin-left: 12px; }
.hero .cta-secondary:hover { border-color: #fff; text-decoration: none; }

/* === SECTION === */
section { padding: 64px 0; }
section h2 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--primary); }
section .subtitle { text-align: center; color: var(--text-muted); max-width: 650px; margin: 0 auto 40px; }

/* === PRODUCT GRID === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.product-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; color: var(--primary); }
.product-card .tagline { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.product-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.product-card .badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-commercial { background: #e3f2fd; color: var(--accent-dark); }
.badge-opensource { background: #e8f5e9; color: #2e7d32; }
.product-card .btn { display: inline-block; padding: 8px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* === PRICING === */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 2px solid var(--border); text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.pricing-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--primary); }
.pricing-card .price { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin: 16px 0; }
.pricing-card .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; text-align: left; margin: 20px 0; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.pricing-card ul li::before { content: '✓ '; color: var(--teal); font-weight: 700; }
.pricing-card .btn-full { display: block; width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; }

/* === OPEN SOURCE === */
.oss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.oss-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.oss-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.oss-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

/* === ABOUT === */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-content img { border-radius: var(--radius); }

/* === CONTACT === */
.contact-info { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.contact-item { text-align: center; }
.contact-item h4 { color: var(--primary); margin-bottom: 4px; }

/* === FOOTER === */
footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 40px 0; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: rgba(255,255,255,0.85); }
footer .footer-links { display: flex; gap: 20px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hero h1 { font-size: 2rem; }
  .about-content { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer .container { flex-direction: column; text-align: center; }
}
