/* TechUdyan — base + components (mobile-first). Breakpoints are in responsive.css. */
:root {
	--primary: #6558D3;
	--primary-dark: #4F43B8;
	--primary-light: #8B7CF6;
	--dark: #14213D;
	--text: #64748B;
	--background: #FFFFFF;
	--soft-background: #F7F8FC;
	--success: #25A879;
	--success-text: #17795a; /* darker green: passes AA as text on white */
	--border: #E3E6F0;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(20, 33, 61, .07);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--background); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { color: var(--dark); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--dark); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 8px; color: #fff; }

.td-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.td-narrow { max-width: 820px; }

/* Buttons */
.td-btn { display: inline-block; padding: 12px 24px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.td-btn-lg { padding: 15px 28px; }
.td-btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 20px rgba(101, 88, 211, .3); }
.td-btn-primary:hover { color: #fff; background: var(--primary-dark); transform: translateY(-1px); }
.td-btn-ghost { color: var(--primary); background: #fff; border-color: var(--primary); }
.td-btn-ghost:hover { color: var(--primary-dark); background: var(--soft-background); }
.td-btn-light { color: var(--primary-dark); background: #fff; }
.td-btn-light:hover { color: var(--dark); background: var(--soft-background); }
.td-btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.td-btn-outline-light:hover { color: var(--primary-dark); background: #fff; }
.td-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }

/* Header */
.td-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.td-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.td-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; color: var(--dark); text-decoration: none; letter-spacing: -.02em; }
.td-logo:hover { color: var(--dark); }
.td-logo strong { color: var(--primary); }
.td-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 10px; }
.custom-logo { max-height: 44px; width: auto; }

.td-nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.td-burger, .td-burger::before, .td-burger::after { display: block; width: 20px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.td-burger { position: relative; }
.td-burger::before, .td-burger::after { content: ""; position: absolute; left: 0; }
.td-burger::before { top: -6px; }
.td-burger::after { top: 6px; }
.td-nav-open .td-burger { background: transparent; }
.td-nav-open .td-burger::before { transform: translateY(6px) rotate(45deg); }
.td-nav-open .td-burger::after { transform: translateY(-6px) rotate(-45deg); }

.td-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 20px 24px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.td-nav-open .td-nav { display: block; }
html:not(.js) .td-nav { display: block; position: static; box-shadow: none; }
html:not(.js) .td-nav-toggle { display: none; }
.td-menu, .td-footer-menu, .td-list-plain { list-style: none; margin: 0; padding: 0; }
.td-menu a { display: block; padding: 12px 4px; color: var(--dark); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.td-menu a:hover, .td-menu .current-menu-item > a { color: var(--primary); }
.td-nav-cta { margin-top: 16px; display: block; }

/* Sections */
.td-section { padding: 56px 0; }
.td-section-soft { background: var(--soft-background); }
.td-section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.td-eyebrow { margin: 0 0 12px; color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.td-lead { font-size: 1.15rem; max-width: 640px; }
.td-note { font-size: .9rem; margin-top: 24px; }
.td-meta { font-size: .9rem; }
.td-prose { margin-top: 32px; }
.td-prose > * { max-width: 100%; }

/* Hero */
.td-hero { padding: 48px 0 56px; background: radial-gradient(900px 400px at 85% -10%, rgba(139, 124, 246, .22), transparent 60%), linear-gradient(180deg, #fff, var(--soft-background)); }
.td-hero-grid { display: grid; gap: 40px; align-items: center; }
.td-page-hero { padding: 48px 0 40px; text-align: center; background: radial-gradient(700px 300px at 50% -20%, rgba(139, 124, 246, .2), transparent 60%), var(--soft-background); }
.td-page-hero .td-lead { margin-left: auto; margin-right: auto; }

/* Hero workflow illustration (decorative, CSS only) */
.td-flow { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.td-flow-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.td-flow-node { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--dark); font-weight: 600; background: var(--soft-background); border-radius: 14px; }
.td-flow-node:not(:last-child)::after { content: ""; position: absolute; left: 32px; bottom: -14px; width: 2px; height: 14px; background: var(--primary-light); }
.td-flow-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 12px; }
.td-flow-3 .td-flow-icon { background: var(--success-text); }
.td-flow figcaption { margin-top: 16px; font-size: .8rem; text-align: center; }
.td-icon { display: block; }

/* Cards & grids */
.td-grid { display: grid; gap: 20px; }
.td-card { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(20, 33, 61, .04); transition: transform .2s, box-shadow .2s; }
.td-card p:last-child { margin-bottom: 0; }
.td-section-soft .td-card { border-color: transparent; }
.td-service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.td-card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; color: var(--primary); background: #EFEDFD; border-radius: 14px; }
.td-card h3 a { color: inherit; text-decoration: none; }
.td-card-price { color: var(--dark); }
.td-link { font-weight: 600; text-decoration: none; }
.td-link:hover { text-decoration: underline; }
.td-badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; color: #7a4b00; font-size: .8rem; font-weight: 700; background: #fff1d6; border-radius: 999px; }
.td-post h2 { font-size: 1.4rem; }
.td-post { margin-bottom: 20px; }

/* Lists */
.td-checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.td-checklist li { position: relative; padding: 14px 16px 14px 52px; color: var(--dark); background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.td-checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); background: var(--success-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%; }
.td-checklist-compact li { padding: 8px 12px 8px 44px; background: transparent; border: 0; }
.td-checklist-compact li::before { left: 10px; }
.td-list-plain { display: grid; gap: 8px; padding-left: 20px; list-style: decimal; }

.td-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.td-step { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.td-section-soft .td-step { border-color: transparent; }
.td-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; color: #fff; font-weight: 700; background: var(--primary); border-radius: 50%; }

.td-flow-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.td-flow-inline li { padding: 6px 14px; color: var(--dark); font-size: .9rem; font-weight: 600; background: #EFEDFD; border-radius: 999px; }
.td-flow-inline li:not(:last-child)::after { content: "\2192"; margin-left: 12px; color: var(--primary); }

.td-two-col { display: grid; gap: 32px; }
.td-price-card { text-align: center; }
.td-price { margin: 0 0 4px; color: var(--primary); font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; }
.td-price-card .td-actions { justify-content: center; }
.td-demo h3 { margin-top: 1.2em; }

/* FAQ */
.td-faq details { margin-bottom: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.td-faq summary { padding: 16px 48px 16px 20px; color: var(--dark); font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.4rem; line-height: 1; }
.td-faq details[open] summary::after { content: "\2212"; }
.td-faq details p { margin: 0; padding: 0 20px 18px; }

/* CTA */
.td-cta { color: #E9E7FB; text-align: center; background: linear-gradient(135deg, var(--dark), #2b2f7a 60%, var(--primary)); }
.td-cta h2 { color: #fff; }
.td-cta-inner { max-width: 760px; }
.td-cta .td-actions { justify-content: center; }

/* Contact */
.td-contact-grid { display: grid; gap: 32px; }
.td-form-card { padding: 24px; }

/* Footer */
.td-footer { padding: 48px 0 0; color: #C9CEE0; background: var(--dark); }
.td-footer a { color: #fff; text-decoration: none; }
.td-footer a:hover { text-decoration: underline; color: #fff; }
.td-footer .td-logo { color: #fff; }
.td-footer .td-logo strong { color: var(--primary-light); }
.td-footer-grid { display: grid; gap: 32px; }
.td-footer-title { margin-bottom: 12px; color: #fff; font-size: 1rem; }
.td-footer-menu li { margin-bottom: 8px; }
.td-footer-bottom { margin-top: 40px; padding: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
