@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Colors - Refined Palette */
  --primary-color: #6366f1;
  /* Indigo-500 */
  --primary-hover: #4f46e5;
  /* Indigo-600 */
  --secondary-color: #0ea5e9;
  /* Sky-500 */
  --accent-color: #ec4899;
  /* Pink-500 */

  /* Backgrounds */
  --bg-dark: #0f172a;
  /* Slate-900 */
  --bg-darker: #020617;
  /* Slate-950 */
  --bg-card: #1e293b;
  /* Slate-800 */
  --bg-glass: rgba(15, 23, 42, 0.7);

  /* Text & Borders */
  --text-primary: #f8fafc;
  /* Slate-50 */
  --text-secondary: #94a3b8;
  /* Slate-400 */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(99, 102, 241, 0.5);

  /* Spacing & Layout */
  --nav-height: 80px;
  --container-width: 1280px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
  --glow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* ================= HEADER & NAV ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

header>div {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

/* Adjust padding for mobile */
@media (max-width: 1000px) {
  header>div {
    padding: 0 2rem;
  }
}

.logo-img {
  height: 40px;
}

.navbar .nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar .nav-list a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.navbar .nav-list a:hover,
.navbar .nav-list a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* CTA Button in Nav */
.navbar .nav-list li:last-child {
  margin-left: 1rem;
}

.navbar .nav-list li:last-child a {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .nav-list li:last-child a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

/* Mobile Menu */
#nav-hamburger-menu {
  display: none;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  z-index: 999;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  text-align: center;
}

.mobile-menu li a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 0.5rem 0;
  text-align: center;
}

.mobile-menu li a:active {
  color: var(--primary-color);
}

.mobile-menu li:last-child a {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  text-align: center;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  width: 100%;
  box-shadow: var(--glow-primary);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  padding: 180px 2rem 100px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.15), transparent 25%);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-section h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: white;
  color: var(--bg-darker);
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ================= FEATURE GRID (BENTO STYLE) ================= */
.feature-section {
  padding: 4rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-content {
  text-align: center;
  margin-bottom: 4rem;
}

.section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-content p {
  max-width: 700px;
  margin: 0 auto;
}

/* Grid Layouts - Using standard CSS Grid for reliability */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  /* Force consistent row height */
  gap: 1.5rem;
}

.grid-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.grid-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--glow-card);
}

/* Gradient Overlay */
.grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent 60%);
}

.grid-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.grid-item.wide {
  grid-column: span 2;
}

.grid-item.tall {
  grid-row: span 2;
}


/* ================= SOLUTIONS / CUSTOM CARD SECTION ================= */
.custom-section,
.solutions-grid-section {
  padding: 6rem 2rem;
  background: var(--bg-dark);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.custom-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  background: linear-gradient(145deg, var(--bg-card), #263345);
}

.custom-card svg {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.custom-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.custom-card p {
  color: var(--text-secondary);
}

/* ================= NO-CODE SECTION ================= */
.nocode-section {
  padding: 8rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nocode-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.nocode-text {
  flex: 1;
}

.nocode-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.nocode-text ul {
  list-style: none;
  margin: 2rem 0;
}

.nocode-text li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.nocode-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.nocode-image {
  flex: 1;
  position: relative;
}

.nocode-image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.nocode-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* ================= PRICING PLANS ================= */
.plans-section {
  padding: 6rem 2rem;
  background: var(--bg-darker);
}

.plans-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  flex: 1 1 320px;
  max-width: 400px;
  text-align: center;
  transition: all 0.3s ease;
}

.plan-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.plan-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-pricing .monthly {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.plan-pricing .yearly {
  color: var(--text-secondary);
}

.plan-btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glow-primary);
  margin-top: 1.5rem;
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

/* ================= FORMS & FOOTER ================= */
input,
textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: 1.5rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

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

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

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* ================= SOLUTIONS GRID ================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.solution-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--glow-card);
}

.solution-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.solution-content {
  padding: 2rem;
}

.solution-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.solution-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.learn-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learn-more:hover {
  gap: 0.8rem;
  /* Subtle arrow movement */
}


/* ================= SOLUTIONS HERO ================= */
.solutions-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
  background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.1), transparent 25%);
}

/* ================= CONTACT & PRICING SECTIONS ================= */
.contact-section,
.pricing-section {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 8rem;
  background:
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 25%),
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.1), transparent 25%);
}

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

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  background: var(--bg-card);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--glow-card);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: white;
  margin-bottom: 1.5rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.getstarted-btn {
  display: inline-block;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--glow-primary);
}

.getstarted-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
  filter: brightness(1.1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .nocode-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .nocode-text ul {
    text-align: left;
    display: inline-block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 1000px) {
  :root {
    --nav-height: 100px;
  }

  .navbar .nav-list {
    display: none;
  }

  #nav-hamburger-menu {
    display: block;
    width: 56px;
    height: 56px;
  }

  .logo-img {
    height: 65px;
  }

  .mobile-menu {
    display: flex;
    /* Show only on mobile when layout allows */
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .grid-item.large {
    grid-column: auto;
    grid-row: auto;
    height: 250px;
  }
}