/* ===================================
   DOINGNOW.AI - MAIN STYLESHEET
   Combined from React components
   =================================== */

/* Base theme and utilities */
:root {
  --bg: #ffffff;
  --text: #1d2330;
  --muted: #5a6b85;
  --line: #e8eef6;
  --brand: #1f4bd8;
  --brand-600: #1538a1;
  --shadow: 0 6px 18px rgba(23,46,120,.08);
  --radius: 16px;
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #e8e8e8;
  --color-accent: #222222;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Main Content */
.main {
  min-height: 60vh;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .75rem;
}

.section-intro {
  max-width: 820px;
  color: var(--muted);
  margin: .25rem 0 2rem;
}

.center {
  text-align: center;
}

.section.centered .section-title,
.section.centered .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section.centered .section-intro {
  max-width: 760px;
}

/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-heading {
  margin: .2rem 0 .6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1b2a4a;
}

.card-body {
  color: var(--muted);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  font-weight: 800;
  color: #1b2a4a;
  background: #eef3ff;
  border: 1px solid #dbe6ff;
}

/* Pastel variants for highlight cards */
.card.pastel-blue {
  background: #eef3ff;
  border-color: #dbe6ff;
}

.card.pastel-peach {
  background: #fff3e8;
  border-color: #ffe2c9;
}

.card.pastel-mint {
  background: #ecfbf2;
  border-color: #d3f5e2;
}

.card.pastel-blue .card-icon {
  background: #dbe6ff;
  border-color: #ccd9f8;
}

.card.pastel-peach .card-icon {
  background: #ffe2c9;
  border-color: #ffd3ad;
}

.card.pastel-mint .card-icon {
  background: #d3f5e2;
  border-color: #c3ecd5;
}

/* Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.pill {
  font-size: .82rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9ff;
  color: #2951cc;
}

.pill.alt {
  background: #fff6ef;
  color: #c36a21;
  border-color: #ffe2c9;
}

.pill.mint {
  background: #effcf6;
  color: #138f52;
  border-color: #d3f5e2;
}

/* Bullet list with colored dots */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bullet {
  display: flex;
  gap: .75rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: .5rem;
  flex: 0 0 12px;
}

.dot.green {
  background: #2ecc71;
}

.dot.blue {
  background: #3b82f6;
}

.dot.orange {
  background: #f97316;
}

.bullet h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #0e2a47;
}

.bullet p {
  margin: .35rem 0 0;
  color: var(--muted);
}

/* Placeholder diagram */
.diagram-card {
  background: linear-gradient(180deg, #f7f9ff, #f4f6fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a99;
  font-weight: 700;
}

/* Buttons */
.cta-btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border-radius: 10px;
  background: #1d2330;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.cta-btn.primary {
  background: var(--brand);
}

.cta-btn.primary:hover {
  background: var(--brand-600);
}

.cta-btn:hover {
  background: #303746;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  z-index: 99;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: -.3px;
  color: #222;
  text-decoration: none;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a.active,
.nav-links a:hover {
  color: #222;
}

.cta-mini {
  padding: .5rem .9rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

/* Hamburger menu button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

/* Hero */
.hero-block {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: #031b4e;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #4a5d75;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
  max-width: 640px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #eef3ff;
  color: #0d3a78;
  font-weight: 600;
  font-size: .75rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid #d1e1ff;
  margin-bottom: 2.2rem;
}

.hero-cta {
  margin-top: .5rem;
}

.hero-arrow {
  display: block;
  margin-top: 3.2rem;
  font-size: 1.4rem;
  color: #2d6bc4;
  text-decoration: none;
  animation: heroBounce 2.8s infinite;
  text-align: center;
}

.hero-arrow:hover {
  color: #153d82;
}

@keyframes heroBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Footer */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid #e8e8e8;
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand {
  max-width: 420px;
}

.footer-columns {
  display: flex;
  gap: 3rem;
}

.footer-columns h4 {
  margin: 0 0 .8rem;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columns li {
  margin: .4rem 0;
}

.footer-columns a {
  color: #666;
  text-decoration: none;
}

.footer-columns a:hover {
  color: #222;
}

.footer-legal {
  text-align: center;
  color: #999;
  margin-top: 1.5rem;
}

/* Home Page Specific */
.center-cards {
  margin-top: 2rem;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

.arch-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0 1rem;
}

@media (max-width: 900px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

.subcards {
  margin-top: 1.5rem;
}

.muted {
  color: var(--muted);
}

.diagram-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

.cta-dark {
  background: #06193b;
  color: #fff;
  padding: 4rem 2rem;
  margin: 0;
  text-align: center;
  width: 100%;
}

.cta-dark .section-title {
  color: #fff;
  font-size: 2.1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.cta-dark .section-intro {
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.cta-dark .cta-btn {
  background: #fff;
  color: #06193b;
  border: 2px solid #fff;
}

.cta-dark .cta-btn:hover {
  background: transparent;
  color: #fff;
}

/* Platform Subsections */
.platform-subsection {
  margin: 3rem 0;
}

.platform-subsection:first-child {
  margin-top: 0;
}

.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 .75rem;
}

.subsection-intro {
  color: #666;
  max-width: 800px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Case Studies specific */
.case-study-subheading {
  font-size: 1.15rem;
  font-weight: 600;
  color: #444;
  margin: 2rem 0 1rem;
}

/* Card Links */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link .card:hover {
  border-color: #222;
}

/* Guide Links */
.guide-link {
  display: inline-block;
  margin-top: 1rem;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.guide-link:hover {
  color: #646cff;
}

/* Featured Event */
.featured-event {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border: 2px solid #e0e5ff;
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
}

.event-badge {
  display: inline-block;
  background: #222;
  color: #fff;
  padding: .4rem 1rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-title {
  font-size: 2rem;
  font-weight: 800;
  color: #222;
  margin: .5rem 0 1rem;
}

.event-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.event-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #666;
}

.event-icon {
  font-size: 1.2rem;
}

.event-description {
  color: #555;
  line-height: 1.7;
  margin: 1rem 0;
}

.event-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.topic-tag {
  background: #eef3ff;
  color: #2951cc;
  padding: .4rem .8rem;
  border-radius: 2rem;
  font-size: .85rem;
  font-weight: 500;
}

.event-date {
  color: #888;
  font-size: .9rem;
  margin-top: .5rem;
}

/* Jobs & Careers */
.job-listings {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.job-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.job-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 .5rem;
}

.job-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.job-tag {
  background: #f5f5f5;
  color: #666;
  padding: .3rem .6rem;
  border-radius: .25rem;
  font-size: .85rem;
}

.job-description {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.job-requirements h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin: 0 0 .5rem;
}

.job-requirements ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: #666;
}

.job-requirements li {
  margin-bottom: .4rem;
}

.open-application {
  text-align: center;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 1rem;
}

.open-application p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #666;
}

/* Blog Styles */
.blog-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.blog-card.featured {
  border-color: #e0e5ff;
  background: linear-gradient(135deg, #fafbff 0%, #fff 100%);
}

.blog-category {
  display: inline-block;
  background: #eef3ff;
  color: #2951cc;
  padding: .3rem .6rem;
  border-radius: .25rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 .75rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: .5rem;
  color: #888;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.blog-link {
  color: #222;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-link:hover {
  color: #646cff;
}

/* Newsletter */
.newsletter-signup {
  text-align: center;
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  padding: .75rem 1rem;
  border: 1px solid #ccc;
  border-radius: .5rem;
  font-size: 1rem;
  min-width: 250px;
}

.newsletter-note {
  color: #888;
  font-size: .85rem;
  margin-top: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form.wide {
  max-width: 600px;
}

.contact-form.wide .form-row {
  display: flex;
  gap: 1rem;
}

.contact-form.wide input,
.contact-form.wide textarea {
  width: 100%;
}

.contact-form.wide input,
.contact-form.wide textarea {
  padding: .85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.contact-form.wide input:focus,
.contact-form.wide textarea:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.contact-form.wide button {
  margin-top: .5rem;
}

.contact-form input,
.contact-form textarea {
  padding: .9rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #222;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #222;
  box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.05);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background: #222;
  color: #fff;
  border: none;
  padding: .9rem 2rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.contact-form button:disabled {
  background: #999;
  cursor: not-allowed;
}

.form-status {
  padding: 1rem;
  border-radius: .5rem;
  margin-bottom: 1rem;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .section {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-block {
    padding: 5rem 1.5rem 4rem;
  }
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 820px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 800px) {
  .footer-columns {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
  
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
  }

  .cta-mini {
    margin-top: 1rem;
    text-align: center;
    border: 2px solid #222;
  }

  .overlay {
    display: block;
  }

  .nav-inner {
    padding: 1rem 1.5rem;
  }
  
  .event-details {
    flex-direction: column;
    gap: .5rem;
  }
}

@media (max-width: 700px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-form.wide .form-row {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .hero-block {
    padding: 4rem 1rem 3rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .footer-legal {
    font-size: .85rem;
    padding: 0 1rem;
  }
}
