/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00BFFF; /* Electric Blue */
    --secondary-color: #FFFFFF; /* White */
    --dark-bg: #0A0A0A; /* Near Black */
    --card-bg: #1A1A1A; /* Dark Gray */
    --text-color: #E0E0E0; /* Light Gray */
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* --- Base & Typography --- */
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    font-weight: 600;
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

section {
    padding: 6rem 2rem;
    border-bottom: 1px solid #222;
    text-align: center;
}

section:last-of-type {
    border-bottom: none;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid #222;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

header .logo img {
    width: 120px; /* Adjust as needed */
    height: auto;
}

/* --- Hero Section --- */
#hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero .subheadline {
    font-size: 1.3rem;
    color: var(--text-color);
    max-width: 700px;
    margin-bottom: 2rem;
}

/* --- Buttons --- */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* --- About Short Section --- */
.stats-block {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat span {
    font-size: 1rem;
    color: var(--text-color);
}

/* --- Ventures Section --- */
.visual-placeholder {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    color: var(--text-color);
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.roadmap-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
    text-align: left;
}

.roadmap-item {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border-left: 5px solid;
}

.roadmap-item.launched { border-color: var(--primary-color); }
.roadmap-item.dev { border-color: #FFA500; } /* Orange */
.roadmap-item.conceptual { border-color: #808080; } /* Gray */

/* --- Partner Section --- */
.partner-reasons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.reason {
    flex-basis: 30%;
    min-width: 280px;
}

.reason h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* --- Contact Section --- */
#contact p {
    max-width: 600px;
}

/* --- Ventures Page Specifics --- */
#ventures-hero {
    min-height: 60vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.venture-showcase {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.venture-showcase:last-of-type {
    margin-bottom: 0;
}

.venture-showcase.reverse {
    flex-direction: row-reverse;
}

.venture-text {
    flex: 1;
    text-align: left;
}

.venture-visual {
    flex: 1;
}

.business-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.reason-item, .model-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
}

.reason-item h4, .model-card h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
}

.case-study-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 2rem auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
}

.case-study-visual {
    flex: 0 0 300px;
}

.case-study-text {
    flex: 1;
    text-align: left;
}

/* --- Contact Page Specifics --- */
.contact-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

.contact-info p {
    margin: 0 0 1rem 0;
}

.contact-info strong {
    color: var(--secondary-color);
}

/* --- TaskiLi Page --- */
#taskili-hero {
    text-align: center;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1rem 0;
}

.app-store-btn img {
    height: 50px;
}

.web-app-link {
    color: var(--text-color);
    text-decoration: underline;
}

.hero-visual-placeholder {
    background: #000;
    border: 1px solid #222;
    border-radius: 10px;
    margin: 3rem auto 0 auto;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.hero-visual-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    text-align: left;
}

.feature h4 {
    color: var(--primary-color);
}

/* --- Investors Page --- */
#investors-hero blockquote {
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    text-align: left;
}

#investor-cta {
    background-color: var(--card-bg);
}

/* --- Legal Page --- */
.legal-page #legal-content {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.legal-page .intro, .legal-page .last-updated {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.legal-page h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.legal-page p, .legal-page ul {
    text-align: left;
    max-width: none;
}

.legal-page ul {
    padding-left: 2rem;
}

/* Form feedback messages */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

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

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

/* --- Footer --- */
footer {
    background: #000;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* --- Mobile/Tablet Drawer - styles --- */

/* base: hide menu toggle and drawer by default (desktop view uses existing nav) */
.menu-toggle,
.mobile-drawer,
.drawer-overlay {
  display: none;
}

/* Make sure desktop nav always visible on desktop */
@media (min-width: 1024px) {
  .nav-links { display: flex !important; } /* keep desktop layout */
  .menu-toggle { display: none !important; }
}

/* Mobile & Tablet rules: <1024px */
@media (max-width: 1023px) {

  /* hide desktop inline nav */
  .nav-links { display: none !important; }

  /* show menu toggle in top-right (same corner as desktop nav) */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    padding: 10px;
    margin-left: auto;
    cursor: pointer;
    position: relative;
    z-index: 10010;
    color: inherit;
  }

  /* Drawer overlay (semi-transparent) */
  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 10005;
    pointer-events: none;
  }

  /* Drawer panel (right side) */
  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;                /* drawer width */
    max-width: 85%;
    background: #071024;         /* adjust to match site dark theme */
    box-shadow: -8px 0 30px rgba(0,0,0,0.4);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
    z-index: 10020;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* inner padding */
  .mobile-drawer .drawer-inner {
    padding: 22px;
  }

  /* close button top-right inside drawer */
  .drawer-close {
    display: inline-flex;
    align-items:center;
    justify-content:center;
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    float: right;
  }

  /* nav links vertical stack */
  .drawer-nav {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .drawer-link {
    display: block;
    padding: 14px 12px;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
  }

  .drawer-link:active,
  .drawer-link:focus,
  .drawer-link:hover {
    background: rgba(255,255,255,0.06);
    outline: none;
  }

  /* when open: slide drawer in and show overlay */
  .mobile-drawer.open {
    transform: translateX(0);
  }
  .drawer-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* ensure tap targets are large enough */
  .menu-toggle, .drawer-link, .drawer-close { touch-action: manipulation; }

  /* optional: prevent page content shift by no body scroll */
  body.drawer-open { overflow: hidden; }
}

/* small-screen typography adjustments to improve fit */
@media (max-width: 420px) {
  .drawer-link { font-size: 1rem; padding: 12px; }
  .menu-toggle { font-size: 1.4rem; padding: 8px; }
}

/* ----------------------------
 Drawer / Mobile nav styles
 Keep desktop (>=1024px) unchanged
------------------------------*/

/* ensure nav container is positioned for absolute/absolute children */
.site-nav { position: relative; }

/* Hide the hamburger by default (desktop) */
.menu-toggle { display: none; background: transparent; border: none; cursor: pointer; color: inherit; }

/* Drawer base hidden */
.mobile-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 320px; max-width: 85vw; background: var(--dark-bg); color: var(--secondary-color); transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.9,.3,1); z-index: 1200; box-shadow: -14px 0 40px rgba(0,0,0,0.6); }

/* Drawer inner layout */
.drawer-inner { padding: 22px; display: flex; flex-direction: column; height: 100%; }
.drawer-close { background: transparent; border: 0; font-size: 22px; align-self: flex-end; color: inherit; padding: 6px 8px; cursor: pointer; }

/* Drawer nav links vertical */
.drawer-nav { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.drawer-link { display: block; text-decoration: none; color: var(--secondary-color); padding: 12px 10px; border-radius: 8px; font-weight: 600; font-size: 18px; }
.drawer-link:focus, .drawer-link:hover { background: var(--card-bg); outline: none; }

/* Overlay */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 1100; }

/* When visible */
.mobile-drawer.open { transform: translateX(0); }
.drawer-overlay.visible { opacity: 1; visibility: visible; }

/* Small visual tweak for menu-toggle button (touch-friendly) */
.menu-toggle { padding: 10px; font-size: 22px; line-height: 1; border-radius: 6px; }

/* Ensure menu-toggle visually sits at top-right - adjust if needed */
.site-nav .menu-toggle { position: absolute; right: 18px; top: 14px; z-index: 1250; }

/* Mobile-specific: hide the desktop nav and show hamburger */
@media (max-width: 1023px) {
  .nav-links { display: none !important; /* hide desktop nav under 1024px */ }
  .menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
}

/* Make drawer links easier to tap on small phones */
@media (max-width: 480px) {
  .drawer-link { font-size: 17px; padding: 14px 12px; }
  .mobile-drawer { width: 86vw; }
}

/* Style for the active link in the drawer */
.drawer-link.active {
  background-color: rgba(0, 191, 255, 0.1);
  color: var(--primary-color);
  font-weight: 700;
}

.drawer-link.active:hover {
  background-color: rgba(0, 191, 255, 0.2);
}

/* --- Responsive Design for index.html --- */

/* --- Tablet (and smaller desktop) Styles --- */
@media (max-width: 1023px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-block {
        gap: 2rem;
    }

    .partner-reasons {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .reason {
        text-align: center;
    }
}

/* --- Responsive Styles for Ventures Page --- */

/* --- Responsive Styles for Investors Page --- */

/* --- Responsive Styles for TaskiLi Page --- */
/* Core Features base (desktop/tablet keep 3 columns) */
#core-features { padding: 4rem 2rem; }
#core-features .features-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}
#core-features .feature-item {
  background-color: #0a0a0a;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#core-features .feature-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#core-features .feature-item i {
  color: #5956F4;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Desktop & Tablet layout (3 cards first row, 2 cards second row centered) */
@media (min-width: 768px) {
  #core-features .features-grid { 
    grid-template-columns: repeat(3, 1fr);
    justify-items: center; /* center cards within their columns */
  }
  /* Second row: 2 cards centered side-by-side */
  #core-features .feature-item:nth-child(4),
  #core-features .feature-item:nth-child(5) {
    grid-column: auto;
    width: 300px; /* fixed card width for consistency */
  }
  #core-features .feature-item:nth-child(4) { grid-column-start: 2; }
  #core-features .feature-item:nth-child(5) { grid-column-start: 3; }
}

/* Hero Video - FIXED: Minimal Container Height */
.taskili-page .hero-visual-placeholder {
  margin-top: 2rem;
  width: 100%;
  max-width: 900px; /* Match video max-width */
  margin-left: auto;
  margin-right: auto;
  /* NO display, NO flex, NO align-items - container height = video height */
}

.taskili-page .hero-video {
  display: block;
  width: 100%;
  height: auto; /* CRITICAL: maintains aspect ratio */
  max-width: 100%; /* Fill container */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0; /* No margins */
  padding: 0; /* No padding */
}

@media (hover: hover) {
  .taskili-page .hero-video:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  }
}

/* Desktop: 900px max container */
@media (min-width: 1024px) {
  .taskili-page .hero-visual-placeholder {
    max-width: 900px;
  }
}

/* Tablet: 80% width */
@media (max-width: 1023px) and (min-width: 768px) {
  .taskili-page .hero-visual-placeholder {
    max-width: 80%;
  }
}

/* Mobile: with padding */
@media (max-width: 767px) {
  .taskili-page .hero-visual-placeholder { 
    padding: 0 10px;
    margin-left: 10px;
    margin-right: 10px;
  }
  .taskili-page .hero-video { 
    border-radius: 8px; 
  }
}

/* Mobile Menu Toggle Button - Proper Spacing & Centering */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px; /* Vertical and horizontal padding */
  margin-right: 8px; /* Space from right edge */
  border-radius: 4px; /* Subtle rounded corners */
  transition: background-color 0.2s ease;

  /* Ensure proper alignment */
  align-items: center;
  justify-content: center;
  min-width: 48px; /* Minimum touch target */
  min-height: 48px; /* Minimum touch target */
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.menu-toggle:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); }

.menu-icon {
  font-size: 20px;
  color: #ffffff;
  line-height: 1;
  pointer-events: none;
}

/* Show only on mobile/tablet (below 1024px) */
@media (max-width: 1023px) {
  .menu-toggle { display: flex; }
}

/* Fine-tune for different screen sizes */
@media (max-width: 768px) {
  .menu-toggle {
    padding: 10px 24px;
    margin-right: 6px;
    min-width: 44px;
    min-height: 44px;
  }
  .menu-icon { font-size: 18px; }
}

/* Ensure navigation bar accommodates the button */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
@media (max-width: 1023px) {
  .site-nav { padding-right: 1rem; }
}

/* Comparison Table (TaskiLi) */
.taskili-page .table-container {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 80%;
}
.taskili-page .comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  text-align: center;
  min-width: 600px;
}
.taskili-page .comparison-table th,
.taskili-page .comparison-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  vertical-align: middle;
}
.taskili-page .comparison-table thead {
  background-color: #222;
  font-weight: bold;
}
.taskili-page .comparison-table tbody tr:hover {
  background-color: #111;
}

/* Typography and buttons base (desktop) scoped to TaskiLi page */
.taskili-page h1 { font-size: 3rem; }
.taskili-page h2 { font-size: 2rem; }
.taskili-page p { font-size: 1.2rem; }

@media (max-width: 1023px) {
  /* Features grid remains 3 columns on tablet */
  #core-features .features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  #core-features .feature-item { padding: 20px; border-radius: 8px; }

  /* Table font size on tablet */
  .taskili-page .comparison-table { font-size: 0.95rem; }

  /* Buttons (scoped) */
  .taskili-page .btn, .taskili-page .btn-secondary { padding: 0.9rem 1.6rem; font-size: 0.95rem; }
  /* Icon size on tablet */
  #core-features .feature-item i { font-size: 2rem; }
}

/* Mobile adjustments */
/* ... */
@media (max-width: 767px) {
  /* Typography (scoped to TaskiLi page) */
  .taskili-page h1 { font-size: 1.6rem; }
  .taskili-page h2 { font-size: 1.4rem; }
  .taskili-page p { font-size: 0.95rem; }

  /* Section spacing: 40px vertical */
  .taskili-page #taskili-hero,
  .taskili-page #what-is-taskili,
  .taskili-page #core-features,
  .taskili-page #comparison,
  .taskili-page #vision,
  .taskili-page #investor-cta { padding-top: 40px; padding-bottom: 40px; }

  /* App store/buttons/video */
  .app-store-buttons { justify-content: center; }
  .app-store-buttons .app-store-btn img { height: 38px; }
  .web-app-link { font-size: 0.98rem; }
  .hero-visual-placeholder { max-width: 95vw; }
  .hero-video { width: 100%; height: auto; }

  /* Features grid: 1 column on phone */
  #core-features .features-grid { grid-template-columns: 1fr; gap: 20px; }
  #core-features .feature-item { width: 100%; padding: 20px; border-radius: 8px; max-width: 90%; margin: 0 auto; }
  /* Icon size on mobile */
  #core-features .feature-item i { font-size: 1.8rem; }

  /* Table font size and container width on mobile */
  .taskili-page .comparison-table { font-size: 0.9rem; }
  .taskili-page .table-container { max-width: 95%; -webkit-overflow-scrolling: touch; }

  /* Buttons (scoped) */
  .taskili-page .btn, .taskili-page .btn-secondary { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
}

/* --- Responsive Styles for Contact Page --- */
@media (max-width: 1023px) {
  /* Section spacing */
  #contact-hero, #contact-main { padding: 3rem 1.5rem; }

  /* Typography */
  #contact-hero h1 { font-size: 2rem; }
  #contact-hero .subheadline { font-size: 1.1rem; }
  #contact-main h2 { font-size: 1.6rem; }
  #contact-main h3 { font-size: 1.2rem; }
  #contact-main p, #contact-main li { font-size: 1rem; }

  /* Layout: stack columns */
  .contact-container { display: flex; flex-direction: column; gap: 1.5rem; }
  .contact-form { width: 65%; margin-left: auto; margin-right: auto; }

  /* Buttons */
  .btn, .btn-primary { font-size: 1rem; padding: 0.85rem 1.4rem; }
}

@media (max-width: 767px) {
  /* Section spacing */
  #contact-hero, #contact-main { padding: 2.5rem 1rem; }

  /* Typography */
  #contact-hero h1 { font-size: 1.6rem; }
  #contact-hero .subheadline { font-size: 1rem; }
  #contact-main h2 { font-size: 1.35rem; }
  #contact-main h3 { font-size: 1.1rem; }
  #contact-main p, #contact-main li { font-size: 0.98rem; }

  /* Layout: full width */
  .contact-container { gap: 1.25rem; }
  .contact-form { width: 85%; }
  .contact-details-container > div { 
    padding: 16px; 
    border-radius: 8px; 
    box-sizing: border-box; 
  }

  /* Buttons */
  .btn, .btn-primary { font-size: 0.96rem; padding: 0.8rem 1.2rem; }
}
/* Force exact columns for investors cards using CSS Grid */
@media (min-width: 768px) {
  .investment-reasons,
  .models-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
  .reason-item,
  .model-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}
@media (max-width: 767px) {
  .investment-reasons,
  .models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --- Responsive Case Study Section --- */
.case-study-container {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}
.case-study-details, .case-study-visual {
  flex: 1 1 50%;
}
.visual-placeholder {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
@media (max-width: 1023px) {
  .case-study-container {
    gap: 1.5rem;
  }
  .case-study-details, .case-study-visual {
    padding: 0;
  }
  /* Center image on tablet */
  .case-study-visual {
    display: flex;
    justify-content: center;
  }
  /* Tablet: reduce image visual size */
  #case-study .showcase-img {
    max-width: 70%;
    width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}
@media (max-width: 767px) {
  .case-study-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .case-study-details, .case-study-visual {
    width: 100%;
    max-width: 100%;
  }
  .visual-placeholder {
    max-width: 95vw;
  }
  /* Center image on phone */
  .case-study-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  /* Phone: reduce image visual size further */
  #case-study .showcase-img {
    max-width: 85%;
    width: 85%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}


/* --- Responsive Investment Reasons (Why Invest) --- */
.investment-reasons {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0;
}
.reason-item {
  background: var(--card-bg, #181818);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  flex: 1 1 28%;
  min-width: 260px;
  max-width: 350px;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Partnership Models Cards */
.models-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.5rem 0;
}
.model-card {
  background: var(--card-bg, #181818);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  flex: 1 1 28%;
  min-width: 260px;
  max-width: 350px;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1023px) {
  .investment-reasons,
  .models-grid {
    gap: 1.5rem;
  }
  .reason-item,
  .model-card {
    padding: 1.5rem 1rem;
    min-width: 220px;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .investment-reasons,
  .models-grid {
    flex-direction: column;
    align-items: center;
  }
  .reason-item,
  .model-card {
    width: 95vw;
    max-width: 95vw;
    min-width: unset;
    padding: 1.2rem 0.8rem;
    align-items: flex-start;
  }
}

/* --- Responsive Text, Buttons, Text-Buttons --- */
@media (max-width: 1023px) {
  #investors-hero h1,
  #why-invest h2,
  #partnership-models h2,
  #contact-form h2 {
    font-size: 2rem;
  }
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-submit {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
  .text-btn {
    font-size: 1rem;
  }
}
@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  #investors-hero h1,
  #why-invest h2,
  #partnership-models h2,
  #contact-form h2 {
    font-size: 1.4rem;
  }
  #investors-hero .subheadline,
  #why-invest p,
  #partnership-models p,
  #contact-form p {
    font-size: 1rem;
  }
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-submit {
    font-size: 0.96rem;
    padding: 0.8rem 1.2rem;
  }
  .text-btn {
    font-size: 0.98rem;
  }
}

/* Ensure mobile cards and images never exceed viewport */
@media (max-width: 767px) {
  /* Horizontal padding to prevent edge overflow */
  #investors-hero,
  #why-invest,
  #partnership-models,
  #case-study,
  #contact-form {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* Cards constrained to screen width */
  .reason-item,
  .model-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  /* Guard against container overflow */
  .investment-reasons,
  .models-grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Case study visuals scale down correctly */
  .case-study-visual,
  .visual-placeholder {
    width: 100%;
    max-width: 100%;
  }
  .showcase-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 1200px) {
  .partner-reasons {
    gap: 2rem;
  }
}

@media (max-width: 1023px) {
  .partner-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .reason {
    flex: 1 1 280px;
    min-width: 260px;
    max-width: 400px;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .partner-reasons {
    flex-direction: column;
    align-items: center;
  }
  .reason {
    max-width: 95vw;
    width: 100%;
  }
}

.contact-form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #222;
  background: #111;
  color: #fff;
  font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.btn-submit {
  background: #00b7ff;
  color: #000;
  font-weight: bold;
  padding: 14px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-submit:hover {
  background: #009dd9;
}

/* Desktop & Tablet */
@media (min-width: 768px) {
  .contact-form {
    width: 55%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .contact-form {
    width: 80%;
  }
}


@media (max-width: 1023px) {
    .venture-showcase {
        flex-direction: column;
        gap: 2rem;
    }

    .venture-visuals {
        order: -1; /* Move image above text on tablet */
    }

    .innovations-grid,
    .framework-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* --- Mobile Styles --- */
@media (max-width: 767px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p, .subheadline {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .stats-block {
        flex-direction: column;
        gap: 1.5rem;
    }

    .roadmap-item {
        padding: 1rem 1.5rem;
    }
}
