/* =========================================================
   DataStructo Corporate Website
   Global Website CSS
   ========================================================= */

:root {
  --ds-bg: #f6f8fc;
  --ds-bg-soft: #eef3fb;
  --ds-surface: #ffffff;
  --ds-surface-soft: #f8fafc;
  --ds-dark: #07111f;
  --ds-dark-2: #0f172a;
  --ds-text: #0f172a;
  --ds-muted: #64748b;
  --ds-muted-2: #94a3b8;
  --ds-border: rgba(15, 23, 42, 0.11);

  --ds-blue: #155dfc;
  --ds-blue-dark: #0b3eb8;
  --ds-cyan: #06b6d4;
  --ds-violet: #6d28d9;
  --ds-green: #16a34a;

  --ds-gradient: linear-gradient(135deg, #155dfc 0%, #06b6d4 48%, #6d28d9 100%);
  --ds-gradient-soft:
    radial-gradient(circle at 15% 10%, rgba(21, 93, 252, 0.16), transparent 30rem),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.15), transparent 28rem),
    radial-gradient(circle at 80% 90%, rgba(109, 40, 217, 0.12), transparent 30rem);

  --ds-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ds-shadow-md: 0 22px 60px rgba(15, 23, 42, 0.12);
  --ds-shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.18);

  --ds-radius-sm: 14px;
  --ds-radius-md: 22px;
  --ds-radius-lg: 34px;
  --ds-radius-xl: 46px;

  --ds-container: 1180px;
  --ds-header-height: 82px;
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ds-text);
  background:
    var(--ds-gradient-soft),
    linear-gradient(180deg, #ffffff 0%, var(--ds-bg) 38%, #ffffff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 62%);
  z-index: -1;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(21, 93, 252, 0.18);
}

/* =========================================================
   Header
   ========================================================= */

.ds-header {
  width: min(calc(100% - 40px), var(--ds-container));
  height: 88px;
  position: sticky;
  top: 18px;
  z-index: 50;
  margin: 18px auto 0;
  padding: 12px 14px 12px 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ds-shadow-sm);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.ds-brand-logo-only {
  width: 250px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-decoration: none;
}

.ds-brand-logo-only img {
  width: 240px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
}

.ds-nav {
  width: max-content;
  max-width: 100%;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
}

.ds-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.ds-nav a:hover {
  color: var(--ds-blue);
  background: rgba(21, 93, 252, 0.08);
  transform: translateY(-1px);
}

.ds-header-actions,
.ds-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-link-btn,
.ds-primary-btn,
.ds-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.ds-link-btn {
  color: var(--ds-dark);
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.65);
}

.ds-link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 93, 252, 0.28);
}

.ds-primary-btn {
  color: #ffffff;
  border: 1px solid transparent;
  background: var(--ds-gradient);
  box-shadow: 0 15px 34px rgba(21, 93, 252, 0.22);
}

.ds-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(21, 93, 252, 0.3);
}

.ds-secondary-btn {
  color: var(--ds-dark);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.ds-secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(21, 93, 252, 0.28);
  box-shadow: var(--ds-shadow-sm);
}

.ds-large-btn {
  min-height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

/* =========================================================
   Hero
   ========================================================= */

.ds-hero {
  width: min(calc(100% - 40px), var(--ds-container));
  min-height: calc(100vh - 120px);
  margin: 34px auto 0;
  padding: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 46px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--ds-radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,250,252,.78));
  box-shadow: var(--ds-shadow-lg);
  position: relative;
  overflow: hidden;
}

.ds-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21, 93, 252, 0.17), transparent 65%);
}

.ds-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -160px;
  bottom: -150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 66%);
}

.ds-hero-content,
.ds-hero-panel {
  position: relative;
  z-index: 2;
}

.ds-eyebrow {
  margin: 0 0 16px;
  color: var(--ds-blue);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ds-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ds-dark);
  font-size: clamp(48px, 6.3vw, 92px);
  line-height: 0.91;
  letter-spacing: -0.085em;
}

.ds-hero-text {
  max-width: 690px;
  margin: 28px 0 0;
  color: #334155;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
}

.ds-hero-actions {
  margin-top: 34px;
  flex-wrap: wrap;
}

.ds-trust-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

/* =========================================================
   Hero system preview
   ========================================================= */

.ds-hero-panel {
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.94), rgba(15,23,42,.88));
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
  color: #ffffff;
}

.ds-panel-top {
  display: flex;
  gap: 7px;
  padding: 6px 4px 18px;
}

.ds-panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.ds-panel-top span:nth-child(1) {
  background: #38bdf8;
}

.ds-panel-top span:nth-child(2) {
  background: #22c55e;
}

.ds-panel-top span:nth-child(3) {
  background: #a78bfa;
}

.ds-system-card,
.ds-metric-card,
.ds-workflow-list div {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
}

.ds-system-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
}

.ds-system-card small,
.ds-metric-card small {
  display: block;
  color: rgba(226, 232, 240, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.ds-system-card strong,
.ds-metric-card strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.ds-system-card-main > span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #052e16;
  background: #86efac;
  font-size: 12px;
  font-weight: 1000;
}

.ds-metric-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ds-metric-card {
  min-height: 104px;
  padding: 18px;
  border-radius: 22px;
}

.ds-workflow-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.ds-workflow-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
}

.ds-workflow-list span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

.ds-workflow-list p {
  margin: 0;
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
  font-weight: 750;
}

/* =========================================================
   Sections
   ========================================================= */

.ds-section {
  width: min(calc(100% - 40px), var(--ds-container));
  margin: 28px auto 0;
  padding: 74px 0;
}

.ds-section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.ds-section-head h2,
.ds-split h2,
.ds-cta-section h2 {
  margin: 0;
  color: var(--ds-dark);
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.ds-section-head p:not(.ds-eyebrow),
.ds-split p,
.ds-cta-section p {
  margin: 18px 0 0;
  max-width: 710px;
  color: var(--ds-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ds-card-grid {
  display: grid;
  gap: 18px;
}

.ds-3-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-info-card {
  padding: 28px;
  border: 1px solid var(--ds-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ds-shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.ds-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 93, 252, 0.24);
  box-shadow: var(--ds-shadow-md);
}

.ds-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--ds-blue);
  background: rgba(21, 93, 252, 0.08);
}

.ds-icon svg {
  width: 28px;
  height: 28px;
}

.ds-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-info-card h3 {
  margin: 22px 0 0;
  color: var(--ds-dark);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.ds-info-card p {
  margin: 12px 0 0;
  color: var(--ds-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* =========================================================
   Dark solution section
   ========================================================= */

.ds-dark-section {
  width: min(calc(100% - 40px), var(--ds-container));
  padding: 70px;
  border-radius: var(--ds-radius-xl);
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.20), transparent 26rem),
    radial-gradient(circle at 90% 80%, rgba(109, 40, 217, 0.24), transparent 26rem),
    linear-gradient(135deg, #07111f, #101b33);
  box-shadow: var(--ds-shadow-lg);
}

.ds-dark-section .ds-section-head h2 {
  color: #ffffff;
}

.ds-dark-section .ds-section-head p {
  color: rgba(226, 232, 240, 0.76);
}

.ds-dark-section .ds-eyebrow {
  color: #67e8f9;
}

.ds-solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ds-solution-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.ds-solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(255, 255, 255, 0.11);
}

.ds-solution-card span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.ds-solution-card h3 {
  margin: auto 0 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.ds-solution-card p {
  margin: 14px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

/* =========================================================
   Process section
   ========================================================= */

.ds-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 54px;
  align-items: start;
}

.ds-steps {
  display: grid;
  gap: 14px;
}

.ds-steps div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  padding: 24px;
  border: 1px solid var(--ds-border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ds-shadow-sm);
}

.ds-steps span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--ds-gradient);
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(21, 93, 252, 0.18);
}

.ds-steps strong {
  color: var(--ds-dark);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.ds-steps p {
  margin: 8px 0 0;
  color: var(--ds-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* =========================================================
   CTA
   ========================================================= */

.ds-cta-section {
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(21, 93, 252, 0.14);
  border-radius: var(--ds-radius-xl);
  background:
    radial-gradient(circle at left top, rgba(21, 93, 252, 0.12), transparent 30rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--ds-shadow-md);
}

.ds-cta-section h2 {
  max-width: 720px;
}

.ds-cta-section p {
  max-width: 680px;
}

/* =========================================================
   Footer
   ========================================================= */

.ds-footer {
  width: min(calc(100% - 40px), var(--ds-container));
  margin: 30px auto 28px;
  padding: 28px 4px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: var(--ds-muted);
}

.ds-footer strong {
  display: block;
  color: var(--ds-dark);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.ds-footer p {
  margin: 6px 0 0;
}

.ds-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ds-footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
}

.ds-footer-links a:hover {
  color: var(--ds-blue);
  background: rgba(21, 93, 252, 0.08);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .ds-header {
    height: auto;
    min-height: 88px;
    grid-template-columns: 230px 1fr;
    border-radius: 30px;
  }

  .ds-brand-logo-only {
    width: 220px;
    height: 60px;
  }

  .ds-brand-logo-only img {
    width: 210px;
    max-height: 56px;
  }

  .ds-nav {
    justify-self: end;
    max-width: 100%;
    overflow-x: auto;
  }

  .ds-header-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-end;
  }

  .ds-hero {
    grid-template-columns: 1fr;
    padding: 52px;
  }

  .ds-hero-panel {
    max-width: 640px;
  }

  .ds-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --ds-header-height: auto;
  }

  .ds-header,
  .ds-hero,
  .ds-section,
  .ds-dark-section,
  .ds-cta-section,
  .ds-footer {
    width: min(calc(100% - 24px), var(--ds-container));
  }

  .ds-header {
    top: 10px;
    margin-top: 10px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 28px;
  }

  .ds-brand-logo-only {
    width: 210px;
    height: 58px;
  }

  .ds-brand-logo-only img {
    width: 200px;
    max-height: 54px;
  }

  .ds-nav {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .ds-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ds-link-btn,
  .ds-primary-btn,
  .ds-secondary-btn {
    width: 100%;
  }

  .ds-hero {
    min-height: auto;
    margin-top: 18px;
    padding: 34px 22px;
    border-radius: 32px;
  }

  .ds-hero h1 {
    font-size: clamp(42px, 14vw, 64px);
    letter-spacing: -0.08em;
  }

  .ds-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ds-section {
    padding: 52px 0;
  }

  .ds-3-grid,
  .ds-solution-grid,
  .ds-metric-grid {
    grid-template-columns: 1fr;
  }

  .ds-dark-section {
    padding: 36px 22px;
    border-radius: 32px;
  }

  .ds-solution-card {
    min-height: 220px;
  }

  .ds-steps div {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 20px;
  }

  .ds-steps span {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .ds-cta-section {
    padding: 34px 22px;
    display: grid;
    border-radius: 32px;
  }

  .ds-footer {
    display: grid;
  }

  .ds-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .ds-brand-logo-only {
    width: 180px;
    height: 54px;
  }

  .ds-brand-logo-only img {
    width: 172px;
    max-height: 50px;
  }

  .ds-header-actions {
    grid-template-columns: 1fr;
  }

  .ds-hero-text,
  .ds-section-head p:not(.ds-eyebrow),
  .ds-split p,
  .ds-cta-section p {
    font-size: 16px;
  }

  .ds-info-card {
    padding: 24px;
  }
}