:root {
    --text-dark: #000;
    --text-light: #fff;
    --text-grey: #adbdcc;
    --body-font: "Roboto", sans-serif;
    --heading-font: "Anek Telugu", sans-serif;
    --h1-size: 94px;
    --h1-height: 108px;
    --h2-size: 50px;
    --h2-height: 75px;
    --h3-size: 40px;
    --h4-size: 32px;
    --h5-size: 28px;
    --h6-size: 22px;
    --subtitle-size: 17px;
    --subtitle-height: 26px;
    --p-size: 18px;
    --p-height: 26px;
    --secondary-text-size: 14px;
    --secondary-text-height: 18px;
    --button-size: 16px;
    /* SPACING */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
  
    --standard-width: 1144px;
  
    --purple-1: #6962f7;
    --purple-2: #7000ff;
    --blue-1: #00d4ff;
    --primary-accent: #0a2540;
    --primary-button-hover: #6d7a88;
    --bg-white: #fff;
    --bg-light: #f7f9fc;

    --standard-box-shadow: 0px 2px 40px rgba(0,0,0, 0.15);

    --primary-gradient: linear-gradient(
      101.33deg,
      #08209a 0.76%,
      #6563ff 33.33%,
      #36c5f0 76.92%,
      #83e2ff 96.96%
    );
  }
  
  body {
    font-family: var(--body-font);
    color: var(--text-dark);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: var(--spacing-sm) 0 0 0;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  main{
    width: 100%;
    margin: var(--spacing-xl) 0 0 0;
  }
  
  h1 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--h1-size);
    margin: 0;
    width: 100%;
    letter-spacing: -1px;
    line-height: var(--h1-height);
  }

  h2 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: var(--h2-size);
    margin: 0;
    width: 100%;
    letter-spacing: -0.25px;
    line-height: var(--h2-height);
  }

  h3 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h3-size);
    margin: 0;
    width: 100%;
  }
  
  h4 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h4-size);
    margin: 0;
    width: 100%;
    letter-spacing: 0.25px;
  }
  
  h5 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h5-size);
    margin: 0;
    width: 100%;
  }
  
  h6 {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--h6-size);
    margin: 0;
    width: 100%;
  }
  
  a {
    text-decoration: none;
    color: var(--purple-1);
    font-weight: 500;
    transition: color 0.25s ease;
  }
  
  a:hover {
    color: var(--primary-accent);
  }
  p {
    font-size: var(--p-size);
    line-height: var(--p-height);
    font-weight: 400;
    margin: var(--spacing-md) 0;
  }

  /* Layout Styles  */
  .section-container {
    width: 100%;
    max-width: var(--standard-width);
  }
  
  .two-column {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
  }
  
  .two-column > .col-left {
    width: 50%;
    box-sizing: border-box;
    padding: 0 var(--spacing-md) 0 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .two-column > .c-col-left {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }
  
  .two-column > .col-right {
    width: 50%;
    box-sizing: border-box;
    padding: 0 0 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .two-column > .c-col-right {
    width: 50%;
    box-sizing: border-box;
    padding: 0 50px 0 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
  }

  .three-column {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* หรือ center / flex-start */
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    gap: 20px; /* ระยะห่างระหว่างคอลัมน์ */
    flex-wrap: nowrap; /* สำคัญ: ห้ามขึ้นบรรทัดใหม่ */
  }
  
  .three-column > .col {
    width: 33.3333%;
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  
  
  .subtitle,
  .subtitle2 {
    color: var(--purple-1);
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: var(--subtitle-size);
    line-height: var(--subtitle-height);
  }
  .subtitle2 {
    color: var(--blue-1);
  }
  
  .secondary-text {
    font-size: var(--secondary-text-size);
    line-height: var(--secondary-text-height);
    color: var(--text-grey);
    letter-spacing: 0.25px;
  }
  
  .primary-button {
    font-family: var(--body-font);
    font-size: var(--button-size);
    letter-spacing: 1.25px;
    font-weight: bold;
    border-radius: 20px;
    border: none;
    background-color: var(--primary-accent);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.15s ease;
  }
  
  .primary-button:hover {
    background-color: var(--primary-button-hover);
    cursor: pointer;
  }
  .secondary-button {
    font-family: var(--body-font);
    font-size: var(--button-size);
    letter-spacing: 1.25px;
    font-weight: bold;
    border-radius: 20px;
    border: none;
    background-color: transparent;
    color: var(--primary-accent);
    transition: all 0.15s ease;
  }
  
  .secondary-button:hover {
    opacity: 0.75;
    cursor: pointer;
  }
  
  .with-icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .with-icon > img {
    transition: transform 0.25s ease;
  }
  .with-icon:hover > img {
    transform: translateX(4px);
  }
  
  /* NAVBAR */
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--standard-width);
    padding: 0 var(--spacing-md);
    margin: 0 0 var(--spacing-xl) 0;
  }

  .menu {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
  }
  
  .menu a {
    color: var(--text-light);
    margin: 0 var(--spacing-md);
    font-weight: bold;
  }
  
  .menu a:hover {
    text-decoration: underline;
  }
  .navbar-button {
    background: rgba(250, 250, 250, 0.25);
  }
  
  .navbar-button:hover {
    background: rgba(250, 250, 250, 0.5);
  }
  
  /* Animated dradient */
  #gradient-canvas{
    
    width: 200%;
    height: 200%;
    /* transform: rotate(-10deg); */
    position: absolute;
    top: -600px;
    left: -50%;
    z-index: -1;
    --gradient-color-1: #c2c2c6;
    --gradient-color-2: #8b8b8b;
    --gradient-color-3: #f3f3f3;
    --gradient-color-1: #cdcdbc;
  }

  #mygradient-canvas{
    
    width: 200%;
    height: 1100px;
    transform: rotate(-10deg);
    position: absolute;
    top: -600px;
    left: -50%;
    z-index: -1;
    --gradient-color-1: #d88b39;
    --gradient-color-2: #e168d9;
    --gradient-color-3: #33d556;
    --gradient-color-1: #98617f;
  }

  #c-gradient-canvas{
    
    width: 200%;
    height: 1100px;
    transform: rotate(-10deg);
    position: absolute;
    top: -600px;
    left: -50%;
    z-index: -1;
    --gradient-color-1: #ef008f;
    --gradient-color-2: #6ec3f4;
    --gradient-color-3: #7038ff;
    --gradient-color-1: #ffba27;
  }

  #c2-gradient-canvas{
    
    width: 100%;
    height: 1100px;
    transform: rotate(-10deg);
    position: absolute;
    /* top: -600px; */
    /* left: -50%; */
    z-index: -1;
    --gradient-color-1: #d088b3;
    --gradient-color-2: #81abc4;
    --gradient-color-3: #bfb4dd;
    --gradient-color-1: #e1c68d;
  }

  #c3-gradient-canvas{
    
    width: 100%;
    height: 1100px;
    /* transform: rotate(-10deg); */
    position: absolute;
    top: 0px;
    /* left: -50%; */
    z-index: -1;
    --gradient-color-1: #f2809f;
    --gradient-color-2: #c9dbe5;
    --gradient-color-3: #cec1ee;
    --gradient-color-1: #e8b479;
  }

  /* HERO STYLES */

  .button-container {
    display: flex;
    margin: var(--spacing-md) 0;
  }
  
  .button-container button:nth-of-type(2) {
    margin: 0 0 0 var(--spacing-md);
    color: var(--purple-2);
  }
  
  .hero{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero p {
    max-width: 480px;
  }
  
  .hero .hero-phone-container {
    height: 564px;
    align-items: flex-end;
  }
  
  .hero-phone {
    height: 628px;
    transform: translate(32px, -32px);
  }

/* Partners Section */
.partners-section{
  width: 100%;
  display: flex;
  justify-content: center;
}
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  margin: var(--spacing-xl) 0;
  column-gap: var(--spacing-md);
  row-gap: var(--spacing-lg);
}
.partners-grid img {
  height: 60px;
  place-self: center;
}

/* What is Starlight Section */
.what-is-starlight{
  padding: var(--spacing-xl) 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg-light);
}

.what-is-starlight h2{
  margin-bottom: var(--spacing-sm);
}

.what-is-starlight .primary-button{
  background-color: var(--purple-1);
  margin: var(--spacing-md) 0;
}
.what-is-starlight .primary-button:hover{
  background-color: var(--primary-accent);
}
 
/* GRAPHIC SECTION */
.graphic-section{
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg-light);
}

.graphic-grid{
  display: grid;
  grid-template-areas: 
  "card slack slack"
  "phone slack slack"
  "phone dash dash";
  grid-gap: var(--spacing-lg);
  padding: var(--spacing-lg);

}
#credit-card{
  grid-area: card;
  width: 100%;
  box-shadow: var(--standard-box-shadow);
}
#slack-invoice{
  grid-area: slack;
  width: 100%;
  box-shadow: var(--standard-box-shadow);
}
#phone{
  grid-area: phone;
  width: 100%;
  box-shadow: var(--standard-box-shadow);
}
#dash{
  grid-area: dash;
  width: 100%;
  box-shadow: var(--standard-box-shadow);
}

/* Why Starlight */
.card{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 0;
}

.card .icon{
  height: 50px;
  margin: 0 0 var(--spacing-sm) 0; 
}

/* Why starlight Style */
.why-starlight{
  color: var(--text-light);
  /* background-color: var(--primary-accent); */
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: calc(var(--spacing-xl) *3) 0;
  z-index: 1;
}

.why-starlight::before{
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--primary-accent);
  position: absolute;
  top: -32px;
  left: 0;
  z-index: -1;
  /* transform: skewY(-10deg);   */   /* ปรับการเอียง */
}

.why-starlight .primary-button{
  background-color: var(--blue-1);
  color: var(--primary-accent);
  margin: var(--spacing-md) 0 0 0;
}

.why-starlight .primary-button:hover{
  background-color: var(--bg-white);
}

.why-starlight .secondary-button{
  color: var(--blue-1);
}

.why-starlight .card-container{
  display: flex;
  margin: var(--spacing-lg) 0;
}

.why-starlight .card-container .card{
  width: 50%;
}

#api-code{
  max-width: 470px;
  margin: 0 0 var(--spacing-md) 0;
  border-radius: 20px;
}

#terminal-code{
  max-width: 470px;
  border-radius: 20px;
}

/* Why Starlight 2 */
.why-starlight2{
  width: 100%;
  display: flex;
  justify-content: center;
  padding: calc(var(--spacing-xl) *3) 0;
}

.why-starlight2 .card-container{
  display: flex;
}

.why-starlight2 .card-container .card{
  width: 25%;
  padding: 0 var(--spacing-sm) 0 0;
  margin: 0 var(--spacing-sm) 0 0;
  box-sizing: border-box;
}

.why-starlight2 .secondary-text{
  color: var(--text-dark);
}


/* Global section */
.global-section{
  /* background-color: var(--primary-accent); */
  width: 100%;
  display: flex;
  justify-content: center;
  color: var(--text-light);
  position: relative;
  padding: calc(var(--spacing-xl)* 3) 0 0 0;
}

.global-section::before{
  content: "";
  width: 100%;
  height: 1200px;
  background-color: var(--primary-accent);
  position: absolute;
  top: -32px;
  left: 0;
  transform: skewY(-10deg);
  z-index: -1;
}

.global-section a{
  color: var(--blue-1);
}

.global-section a:hover{
  color: var(--text-light);
}

.global-section .card-container{
  display: flex;
  margin: calc(var(--spacing-xl) * 2) 0;
}

.global-section .card-container .card{
  width: 25%;
  box-sizing: border-box;
  padding: 0 var(--spacing-sm) 0 0;
  margin: 0 var(--spacing-sm) 0 0;
}

.global-section .card-container .card h3{
  border-left: 2px solid var(--blue-1);
  padding: 0 0 0 var(--spacing-sm);
  line-height: 28px;
}

#globe {
  max-width: 844px;
  opacity: 25%;
  position: absolute;
  top: 10%;
}

/* Demo Section */
.demo-section{
  display: flex;
  justify-content: center;
  padding: calc(var(--spacing-xl) * 2) 0;
  position: relative;
}

.demo-section::before{
  content: "";
  background-color: var(--bg-light);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: -1;
}

.demo-section h3{
  font-weight: 600;
}

.demo-section .primary-button{
  background-color: var(--purple-1);
  margin: var(--spacing-md) 0 0 0;
}

.demo-section .primary-button:hover{
  background-color: var(--primary-accent);
}

.demo-section .col-left{
  height: 446px;
  padding: 0 var(--spacing-xl) 0 0;
}

.starlight-session-card {
  width: 540px;
  height: 446px;
  box-shadow: var(--standard-box-shadow);
  border-radius: 20px;
  overflow: hidden;
}

.starlight-session-card .card-top {

  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* transform: rotate(10deg); */
}

.starlight-session-card .card-top::before {
  background: var(--primary-gradient);
  content: "";
  width: 100%;
  height: 150%;
  position: absolute;
  top: -40%;
  transform: skewY(-5deg);
  z-index: 1;
}

#sessions-logo{
  z-index: 2;
  width: 338px;
  color: var(--bg-white);
}

.demo-section .avatars{
  position: absolute;
  bottom: -70px;
  left: var(--spacing-xl);
  z-index: 3;
  /* width: 140px;
  height: 80px; */
}

.demo-section .avatars img{
  width: 80px;
}

.demo-section .avatars img:nth-of-type(2) {
  position: absolute;
  left: 55px;
}

.demo-section .card-bottom{
  width: 100%;
  height: 50%;
  box-sizing: border-box;
  padding: var(--spacing-xl);
}

.demo-section .card-bottom .subtitle{
  margin: var(--spacing-lg) 0 0 0;
}

.demo-section .card-bottom .secondary-text{
  color: var(--text-dark);
  font-weight: 700;
  width: 100%;
}

/* Getting started section */
.getting-started-section{
  display: flex;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}

.getting-started-section h3{
  font-weight: 600;
}

.getting-started-section .primary-button{
  background-color: var(--purple-1);
  margin: var(--spacing-md) 0;
}

.getting-started-section .primary-button:hover{
  background-color: var(--primary-accent);
}


.getting-started-section .col-left{
  padding: 0 var(--spacing-xl) 0 0;
}

.getting-started-section .col-right{
  flex-direction: row;
}

.getting-started-section .col-right .card{
  width: 50%;
  box-sizing: border-box;
  padding: 0 var(--spacing-sm) 0 0;
  margin: 0 var(--spacing-md) 0 0;
}

.getting-started-section .col-right .card .secondary-button{
  color: var(--purple-2);
  padding-left: 0;
}

/* Footer Styles */
.footer {
  display: flex;
  justify-content: center;
  background-color: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

#footer-logo{
  max-width: 150px;
  margin: 0 0 var(--spacing-md) 0;
}

.footer .section-container{
  display: flex;
  gap: 30px;
}

.footer .col{
  width: 25%;
}

.footer .col ul {
  list-style-type: none;
  padding: 0;
}

.footer .col ul li{
  margin: var(--spacing-md) 0;
}

.footer .col a{
  color: var(--text-dark);
  font-weight: normal;
}

.footer .col a:hover{
  color: var(--purple-1);
  text-decoration: underline;
}

.footer .icon-link {
  display: flex;
  align-items: center;
  margin: var(--spacing-md) 0;
}

.footer .icon-link img{
  width: 24px;
}

.footer h6{
  font-weight: 600;
}

.card-body button{
  text-align:center;
  justify-content: center;
}


/* package */

.card-body .primary-button:hover{
  background-color: var(--purple-2);
}

.card-body .secondary-button {
  color: var(--purple-1);
}

.card-body .secondary-button:hover{
  color: var(--purple-2);
}

/* additional style */
#center-button{
  background-color: var(--purple-1);
  justify-content: center;
  align-items: center;
}

#center-button:hover{
  background-color: var(--purple-2);
}

.c-form-style{
  background-color: var(--primary-accent);
  width: 100%;

  color: var(--text-light);
}
.c-main{
  background-color: var(--primary-accent);
}

.c-shadow{
  box-shadow: var(--standard-box-shadow);
}