/* ===========================================
   StockTrack Landing Page - Styles
   Premium, confident, professional.

   DESIGN TOKENS
   Color:
     --ink        #0B1220   deep navy-black, primary text & dark sections
     --cloud      #F7F8FB   soft off-white background
     --azure      #2554EC   brand blue, primary accent
     --azure-deep #123FBD   hover state for azure
     --slate      #5B6472   secondary / muted text
     --mist       #E4E7EE   borders & dividers
   Type:
     Space Grotesk - headlines (distinctive, geometric, technical)
     Inter         - body text (clean, highly readable)
=========================================== */

/* Load the two typefaces used across the whole site */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Reset some default browser spacing so we start from a clean slate */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Overall page styling */
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #5B6472;
  background-color: #F7F8FB;
}

/* Headings use the display typeface, and a confident near-black
   instead of a generic gray-blue, so they carry more weight. */
h1,
h2,
h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  color: #0B1220;
}

/* ===========================================
   HEADER / NAVIGATION
   Just the logo - clean and minimal. The logo
   itself is a link back to the home page.
=========================================== */
header {
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06); /* soft separation instead of a hard line */
}

header nav {
  max-width: 1100px;
  margin: 0 auto;           /* centers the nav bar on wide screens */
  padding: 22px 40px;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;    /* the logo is a link now - remove the underline */
}

.logo img {
  height: 44px;             /* bigger, to carry more visual weight in a minimal header */
  width: auto;              /* keeps the image's original proportions */
}

/* ===========================================
   SECTION SPACING
   Every section gets the same padding, so the
   page has a consistent rhythm as you scroll.
=========================================== */
section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;         /* centers each section on the page */
  text-align: center;
}

/* ===========================================
   HERO SECTION
=========================================== */
#hero {
  padding-top: 120px;
  padding-bottom: 110px;
}

#hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 680px;
  margin: 0 auto 20px auto;
}

#hero p {
  font-size: 18px;
  max-width: 520px;         /* keeps line length comfortable to read */
  margin: 0 auto 36px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ===========================================
   PROBLEM SECTION
   Slightly different background to visually
   separate it from the hero above it.
=========================================== */
#problem {
  background-color: #EEF1FC;
  max-width: 100%;
}

#problem h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

#problem p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* ===========================================
   FEATURES SECTION
   Cards laid out side by side so they are
   easy to scan at a glance. Shadow only
   appears on hover, so the page at rest stays
   calm and uncluttered.
=========================================== */
#features h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.feature {
  background-color: #ffffff;
  border: 1px solid #E4E7EE;
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 20px;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  box-shadow: 0 12px 24px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 15px;
}

/* On wider screens, lay the 3 feature cards out side by side */
@media (min-width: 700px) {
  #features {
    max-width: 900px;
  }

  #features > div.feature {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    margin-right: 3%;
  }

  .feature:last-child {
    margin-right: 0;
  }
}

/* ===========================================
   HOW IT WORKS SECTION
=========================================== */
#how-it-works {
  background-color: #EEF1FC;
  max-width: 100%;
}

#how-it-works h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.step {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 20px;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
  box-shadow: 0 12px 24px rgba(11, 18, 32, 0.08);
  transform: translateY(-2px);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2554EC;
}

.step p {
  font-size: 15px;
}

/* On wider screens, lay the 3 steps out side by side */
@media (min-width: 700px) {
  #how-it-works {
    max-width: 900px;
  }

  #how-it-works > div.step {
    display: inline-block;
    width: 30%;
    vertical-align: top;
    margin-right: 3%;
  }

  .step:last-child {
    margin-right: 0;
  }
}

/* ===========================================
   DASHBOARD PREVIEW SECTION
=========================================== */
#dashboard-preview {
  max-width: 900px;
}

#dashboard-preview h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

#dashboard-preview > p {
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 16px;
}

/* Summary cards */
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.summary-card {
  flex: 1;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid #E4E7EE;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.summary-card h3 {
  font-size: 15px;
  font-weight: normal;
  color: #5B6472;
  margin-bottom: 8px;
}

.summary-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #2554EC;
}

/* Sample product table (also reused by the real dashboard's
   product list, so keep its structure intact) */
.sample-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid #E4E7EE;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.sample-table th,
.sample-table td {
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid #E4E7EE;
}

.sample-table th {
  background-color: #EEF1FC;
  color: #0B1220;
  font-weight: bold;
}

.sample-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .sample-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ===========================================
   CALL TO ACTION SECTION
   A dark, high-contrast band - the one bold
   moment on the page, reserved for the final ask.
=========================================== */
#cta {
  background-color: #0B1220;
  max-width: 100%;
  padding-top: 90px;
  padding-bottom: 90px;
}

#cta h2 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 12px;
}

#cta p {
  color: #AEB6C4;
  font-size: 16px;
  margin-bottom: 28px;
}

/* ===========================================
   BUTTONS
=========================================== */
button {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 6px 12px 6px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Primary button ("Get Started") - solid, confident, with a soft
   shadow that lifts slightly on hover */
button:first-of-type {
  background-color: #2554EC;
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(37, 84, 236, 0.25);
}

button:first-of-type:hover {
  background-color: #123FBD;
  transform: translateY(-1px);
}

/* Secondary button ("Login") - an outlined "ghost" style rather than
   a flat gray fill, which reads as more premium and less like an
   afterthought next to the primary button */
button:last-of-type {
  background-color: transparent;
  color: #2554EC;
  border: 1.5px solid #2554EC;
}

button:last-of-type:hover {
  background-color: #EEF1FC;
}

/* The CTA section's button is also a "Get Started" button. Since
   it sits on a dark background, it's inverted: white fill, dark text. */
#cta button {
  background-color: #ffffff;
  color: #0B1220;
  border: none;
  box-shadow: none;
}

#cta button:hover {
  background-color: #E4E7EE;
  transform: translateY(-1px);
}

/* ===========================================
   MOBILE RESPONSIVENESS
   These rules only apply on small screens
   (phones, narrow tablets). They adjust layout
   without changing anything above this point.
=========================================== */
@media (max-width: 600px) {

  /* --- Header --- */
  header nav {
    padding: 16px 20px;
  }

  .logo img {
    height: 36px;
  }

  /* --- Hero section --- */
  #hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  #hero h1 {
    font-size: 32px;
  }

  #hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  /* --- Buttons stack neatly instead of sitting side by side --- */
  button {
    display: block;
    width: 100%;
    margin: 0 0 12px 0;
  }

  /* --- Summary cards go to a single column on narrow screens --- */
  .summary-cards {
    flex-direction: column;
  }

  .summary-card {
    min-width: 100%;
  }

  /* --- Footer --- */
  footer {
    padding: 24px 16px;
    font-size: 13px;
  }
}

/* ===========================================
   FOOTER
=========================================== */
footer {
  text-align: center;
  padding: 32px 20px;
  background-color: #0B1220;
  color: #AEB6C4;
  font-size: 14px;
}