/* Dhanish Software Solutions — site styles */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --tint: #EAF0FF;
  --border: #DCE3F0;
  --ink: #14213D;
  --muted: #4B5878;
  --accent: #3D5BC9;
  --accent-hover: #2A43A0;
  --on-blue: #FFFFFF;
  --on-blue-soft: #EEF3FA;
  --on-blue-highlight: #D4F1FF;
  --radius: 16px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #8FB4FF; outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 64px; }
.section:last-of-type { padding-bottom: 64px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.blue-bg {
  background-color: #3A68B0;
  background-image: linear-gradient(135deg, #4A5FC9 0%, #3A68B0 50%, #22707F 100%);
  color: var(--on-blue);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s;
}
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--border); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav {
  position: absolute; right: 0; top: 52px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 200px; display: flex; flex-direction: column;
  box-shadow: 0 12px 32px rgba(20,33,61,.12);
}
.mobile-menu nav a { padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-menu nav a:hover { background: var(--tint); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 48px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
}
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 74px); line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 span { color: var(--on-blue-highlight); }
.hero-lead { max-width: 580px; font-size: 19px; color: var(--on-blue-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.ways {
  flex: 1 1 340px; min-width: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); padding: 28px; margin: 0;
}
.ways-title { font-family: var(--display); font-weight: 600; font-size: 15px; padding-bottom: 12px; }
.ways ol { list-style: none; margin: 0; padding: 0; }
.ways li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.3); }
.ways li:last-child { padding-bottom: 0; }
.ways .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--on-blue-highlight); }
.ways strong { display: block; font-size: 17px; font-weight: 600; }
.ways span.desc { font-size: 15px; color: var(--on-blue-soft); line-height: 1.5; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 56px; font-family: var(--display); font-weight: 500; font-size: 15px; list-style: none; margin: 0; padding-left: 0; }
.stack-label { font-weight: 700; margin-right: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }

/* Section headings */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 32px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); }
.section-head h2, .about-copy h2 { font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { font-size: 17px; color: var(--muted); }

/* Grids & cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s; }
.card:hover { border-color: var(--accent); }

.product { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); }
.product:hover { color: var(--ink); }
.product-shot { background: var(--tint); padding: 16px 16px 0; }
.product-shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 8px 8px 0 0; border: 1px solid var(--border); border-bottom: none;
}
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); flex-grow: 1; }
.product-body h3 { font-size: 21px; font-weight: 600; }
.product-body p { font-size: 15px; color: var(--muted); }
.product-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--accent); overflow-wrap: anywhere; }

.service { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.service h3 { font-size: 23px; font-weight: 600; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-top: 1px solid var(--border); }
.text-link { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }

.step { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.step h3 { font-size: 20px; font-weight: 600; padding-top: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.about-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-copy > p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 8px 0 0; margin: 0; list-style: none; }
.values li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.values svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.founder { flex: 1 1 320px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.founder-top { display: flex; gap: 16px; align-items: center; }
.founder-photo {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 999px; object-fit: cover;
  background: var(--tint); border: 1px dashed #B9C5DD; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--muted);
}
.founder h3 { font-size: 20px; font-weight: 600; }
.founder-role { font-size: 15px; color: var(--muted); }
.founder p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.founder .btn { align-self: flex-start; }

/* Careers */
.careers { background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.careers-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.careers h2 { font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.careers p { color: var(--muted); }

/* Contact */
.contact-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.contact-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-copy h2 { font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.contact-copy > p { font-size: 17px; color: var(--on-blue-soft); }
.contact-list { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 0; margin: 0; list-style: none; font-size: 17px; font-weight: 500; }
.contact-list li, .contact-list a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-copy .btn { align-self: flex-start; margin-top: 8px; }

.form {
  flex: 1 1 480px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  border: 1px solid #C3CCDD; border-radius: 10px; background: var(--bg); padding: 0 14px; height: 48px; width: 100%;
}
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,91,201,.2); }
.form .btn { grid-column: 1 / -1; height: 52px; border: none; }
.form-status { grid-column: 1 / -1; font-size: 15px; font-weight: 500; margin: 0; min-height: 1px; }
.form-status.ok { color: #116B3A; }
.form-status.err { color: #B42318; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--border); }
.footer-inner { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; font-size: 15px; }
.footer-brand strong { font-family: var(--display); font-size: 18px; color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ink); }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal p + p { margin-top: 12px; }
.legal .updated { font-size: 14px; }
.notice { background: #FFF6E5; border: 1px solid #F2D49B; color: #6B4A00; border-radius: 12px; padding: 14px 18px; font-size: 15px; margin: 20px 0 8px; }

@media (max-width: 560px) {
  .hero-inner { padding-top: 56px; }
  .careers, .form { padding: 24px; }
  .service { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
