:root {
    --bg-primary: #fff;
    --bg-secondary: #fafafa;
    --bg-card: #fff;
    --accent-cyan: #141414;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --text-primary: #141414;
    --text-secondary: #5c5c5c;
    --border: rgba(20, 20, 20, 0.4);
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #141414;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

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

.nav-links a {
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: .7;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bg-secondary);
    opacity: 1;
}

.nav-cta {
    background: var(--accent-cyan);
    color: var(--bg-primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: #00F0FF;
    transform: translateY(-2px);
}

/* Page Container */
.page {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;   
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: url('logo-sinlge-white.png') center/contain no-repeat;
    opacity: 0.05;
    filter: invert(1);
    pointer-events: none;
}
.hero .container { 
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #ffb82b;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 184, 43, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: #ffb82b;
    border-color: #ffb82b;;
    color: #fff;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: #141414;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--bg-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
section {
    padding: 6rem 0;
}
section.inner-page {
    padding: 160px 0 60px 0;
}

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

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: calc(100% - 25px);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}
.card button {
    margin-top: auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #141414;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transform: translateY(-5px);
    /*border-color: var(--accent-cyan);*/
    /*box-shadow: 0 20px 60px rgba(106, 105, 103, 0.15);*/
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}
.card .btn-secondary {
    margin-top: auto;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

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

/* Feature List */
.feature-list {
    display: grid;
    gap: 1.2rem;
    margin: 2rem 0;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    /*box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;*/
    /*box-shadow: rgba(14, 63, 126, 0.06) 0px 0px 0px 1px, rgba(42, 51, 70, 0.03) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 2px 2px -1px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.03) 0px 5px 5px -2.5px, rgba(42, 51, 70, 0.03) 0px 10px 10px -5px, rgba(42, 51, 70, 0.03) 0px 24px 24px -8px;*/
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(20, 20, 20, 0.14);
    border-radius: 12px;
    color: #141414;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.grid-fourth {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.grid-two {
    grid-template-columns: 1fr 1fr;
}
.sm-card {
    padding: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}
.flex-row {
    gap: 12px;
    flex-direction: row;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

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

@media (max-width: 640px) {
    .grid-fourth {
        grid-template-columns: 1fr;
    }
}
.sm-card:hover {
    transform: scale(1.1);
}
.sm-card:hover::before {
    content: none;
}
.sm-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.center {
    text-align: center;
}
.w-100 {
    width: 100%;
    max-width: 100%;
}

/* ── Hero Tertiary Link ── */
.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-secondary);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  align-self: center;
}
.btn-text-link:hover {
  color: var(--accent-cyan);
}

/* ── Products & Brands Section ── */
.brands-marketplace-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.brand-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}

.section-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}

.grid-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.card-brand {
  text-align: center;
  padding: 2rem 1.5rem;
}

.card-brand h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* ── Bottom CTA Section ── */
.section-bottom-cta {
  text-align: center;
  background: 
    linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
  background-image:
    linear-gradient(135deg, #141414 0%, #1e1e1e 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,0.03) 59px,
      rgba(255,255,255,0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,0.03) 59px,
      rgba(255,255,255,0.03) 60px
    );
  border-top: none;
}

.section-bottom-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: #fff;
}

.section-bottom-cta .subtitle {
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.55);
}

.section-bottom-cta .cta-group {
  justify-content: center;
}
.section-bottom-cta .cta-group .btn-primary {
    background: #fff;
    color: #141414;
}
.section-bottom-cta .cta-group .btn-secondary {
    color: #fff;
    border-color: #fff;
}
.section-bottom-cta .cta-group .btn-secondary:hover {
    background-color: #fff;
    color: #141414;
}

@media (max-width: 768px) {
  .brands-marketplace-card {
    flex-direction: column;
  }
  .brands-marketplace-card .btn {
    width: 100%;
    text-align: center;
  }
  .grid-brands {
    grid-template-columns: 1fr 1fr;
  }
  .section-bottom-cta .cta-group {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

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

@media (min-width: 721px) {
  #diagram:has(#n-supply) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1.6rem;
    align-items: start;
  }

  .node--supply           { grid-column: 1;     grid-row: 1; }
  .node--demand           { grid-column: 2;     grid-row: 1; }
  .node--engine-core      { grid-column: 1 / 3; grid-row: 2; }
  .node--integration      { grid-column: 1;     grid-row: 3; }
  .node--outcomes         { grid-column: 2;     grid-row: 3; }
  .node--marketplace-core { grid-column: 1 / 3; grid-row: 4; }
}

@media (max-width: 720px) {
  #diagram:has(#n-supply) {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.9rem;
  }

  .node--supply,
  .node--demand,
  .node--engine-core,
  .node--integration,
  .node--outcomes,
  .node--marketplace-core {
    grid-column: 1;
  }
}