/* Root Variables */
:root {
    --color-primary: #59C3E1;
    --color-secondary: #40ABCD;
    --color-bg: #E3F6FA;
    --color-bg-secondary: #ecfeff; /* cyan-50 equivalent */
    --color-card-bg: #FFFFFF;
    --color-heading: #1e293b; /* slate-800 */
    --color-text: #334155; /* slate-700 */
    --color-text-muted: #64748b; /* slate-500 */
    --color-border: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;

    --container-width: 1152px;
  }

  html.dark {
    --color-bg: #0f172a;
    --color-bg-secondary: #0f172a;
    --color-card-bg: #1e293b;
    --color-heading: #ffffff;
    --color-text: #e2e8f0;
    --color-text-muted: #cbd5e1;
    --color-border: #334155;
  }

  /* Base Styles */
  body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
  }

  h1, h2, h3, h4, p, ul, li {
    margin: 0;
    padding: 0;
  }

  ul {
    list-style: none;
  }

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

  a {
    text-decoration: none;
    color: inherit;
  }

  /* Utilities */
  .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
  }

  .text-primary {
    color: var(--color-primary);
  }

  .font-bold {
    font-weight: 700;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
  }

  .btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-lg);
  }

  .btn-primary:hover {
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-xl);
  }

  .btn-outline {
    background-color: var(--color-card-bg);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
  }

  .btn-outline:hover {
    background-color: #ecfeff;
    color: var(--color-secondary);
  }

  html.dark .btn-outline {
    background-color: transparent;
    color: var(--color-primary);
  }

  html.dark .btn-outline:hover {
    background-color: #334155;
  }

  .btn-block {
    display: block;
    width: 100%;
  }

  /* Section Common */
  section {
    padding: 4rem 1rem;
  }

  @media (min-width: 768px) {
    section {
      padding: 6rem 1rem;
    }
  }

  /* Hero Section */
  .hero-section {
    position: relative;
  }

  .hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  @media (min-width: 768px) {
    .hero-wrapper {
      flex-direction: row;
      align-items: center;
    }
  }

  .hero-content {
    flex: 1;
    text-align: center;
    z-index: 10;
  }

  @media (min-width: 768px) {
    .hero-content {
      text-align: left;
    }
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
  }

  @media (min-width: 768px) {
    .hero-title {
      font-size: 3rem;
    }
  }

  .hero-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .hero-description {
    margin: 2rem auto;
    color: var(--color-text);
    line-height: 1.625;
    max-width: 32rem;
  }

  @media (min-width: 768px) {
    .hero-description {
      margin-left: 0;
    }
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  @media (min-width: 640px) {
    .hero-actions {
      flex-direction: row;
    }
  }

  @media (min-width: 768px) {
    .hero-actions {
      justify-content: flex-start;
    }
  }

  .hero-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 10;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 100%;
  }

  html.dark .hero-image {
    border-color: #334155;
  }

  /* Features Section */
  .features-section {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
  }

  html.dark .features-section {
    background-color: rgba(30, 41, 59, 0.6);
  }

  .section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 3rem;
  }

  @media (min-width: 768px) {
    .section-title {
      font-size: 2.25rem;
    }
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .features-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .feature-card {
    background-color: var(--color-card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s;
  }

  .feature-card:hover {
    transform: translateY(-0.25rem);
  }

  .feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.875rem;
  }

  .icon-blue { background-color: #ecfeff; color: var(--color-primary); }
  html.dark .icon-blue { background-color: #164e63; }

  .icon-purple { background-color: #f3e8ff; color: #a855f7; }
  html.dark .icon-purple { background-color: #581c87; }

  .icon-teal { background-color: #ccfbf1; color: #14b8a6; }
  html.dark .icon-teal { background-color: #134e4a; }

  .feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
  }

  .feature-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.625;
  }

  /* Actions Section */
  #actions {
    background-color: #e3f6fa;
  }
  .actions-container {
    width: 100%;
    margin-bottom: 159px;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
  }
  .actions-container::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .actions-block {
    width: 37.15%;
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    text-align: center;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    row-gap: 20px;
  }
  .actions-block::after {
    content: '';
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .actions-block:nth-child(1) {
    flex-direction: column-reverse;
  }
  .actions-block:nth-child(2) {
    margin-left: -5.65%;
    transform: translateY(calc(100% + 27px));
  }
  .actions-block:nth-child(3) {
    margin-left: -5.65%;
  }
  .actions-block:nth-child(1)::after,
  .actions-block:nth-child(3)::after {
    bottom: -21px;
  }
  .actions-block:nth-child(2)::after {
    top: -21px;
  }
  .actions-block h5 {
    color: #334155;
    font-size: 20px;
    line-height: 1.2;
  }
  .actions-block P {
    color: #727272;
    font-size: 16px;
  }
  .actions-desc {
    color: #727272;
    font-size: 14px;
    text-align: center;
    padding-top: 25px;
  }
  @media (max-width: 768px) {
    .actions-container {
      margin-bottom: 0;
      padding-left: 30px;
      padding-bottom: 0;
      flex-direction: column;
      align-items: center;
      row-gap: 20px;
    }
    .actions-container::after {
      width: 3px;
      height: 100%;
      left: 10px;
    }
    .actions-block {
      width: 100%;
    }
    .actions-block:nth-child(1) {
      flex-direction: column;
    }
    .actions-block:nth-child(2) {
      transform: translateY(0);
    }
    .actions-block:nth-child(2),
    .actions-block:nth-child(3) {
      margin-left: 0;
    }
    .actions-block::after {
      left: -26.5px;
    }
    .actions-block:nth-child(1)::after,
    .actions-block:nth-child(3)::after {
      bottom: 50%;
      transform: translateY(50%);
    }
    .actions-block:nth-child(2)::after {
      top: 50%;
      transform: translateY(-50%);
    }
  }

  /* Pricing Section */
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  @media (min-width: 768px) {
    .pricing-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
  }

  .pricing-card {
    background-color: var(--color-card-bg);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    position: relative;
  }

  .pricing-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-2xl);
  }

  @media (min-width: 768px) {
    .pricing-card.featured {
      transform: translateY(-1rem);
    }
  }

  .featured-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0.5rem;
    background-color: var(--color-primary);
  }

  .pricing-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .pricing-amount {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .pricing-amount span {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary);
  }

  .pricing-features {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
  }

  .pricing-item {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }

  .pricing-item i {
    color: var(--color-primary);
    margin-top: 0.25rem;
    margin-right: 0.5rem;
  }

  .pricing-subtext {
    font-size: 1rem;
    color: #94a3b8; /* slate-400 */
    text-align: center;
    margin-top: auto;
  }

  .pricing-action {
    padding: 1.5rem;
    background-color: #f8fafc; /* slate-50 */
    border-top: 1px solid var(--color-border);
  }

  html.dark .pricing-action {
    background-color: #1e293b; /* slate-800 */
  }

  /* Details Section */
  .details-section {
    background-color: var(--color-card-bg);
  }

  html.dark .details-section {
    background-color: #1e293b;
  }

  .details-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .details-flex {
      flex-direction: row;
    }
  }

  .details-img-col {
    display: flex;
    justify-content: center;
  }

  @media (min-width: 1024px) {
    .details-img-col {
      width: 33.333%;
    }
  }

  .details-img {
    width: 16rem;
    height: 16rem;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--color-bg);
    box-shadow: var(--shadow-2xl);
  }

  html.dark .details-img {
    border-color: #475569;
  }

  @media (min-width: 768px) {
    .details-img {
      width: 20rem;
      height: 20rem;
    }
  }

  .details-list-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  @media (min-width: 1024px) {
    .details-list-col {
      width: 66.666%;
    }
  }

  .detail-item {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    position: relative;
  }

  html.dark .detail-item {
    background-color: #334155;
  }

  @media (min-width: 1024px) {
    .detail-item.offset {
      margin-left: 2rem;
    }
  }

  .detail-arrow {
    display: none;
    position: absolute;
    left: -0.75rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color-bg);
    transform: rotate(45deg);
  }

  html.dark .detail-arrow {
    background-color: #334155;
  }

  @media (min-width: 1024px) {
    .detail-arrow {
      display: block;
    }
  }

  .detail-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
  }

  .detail-features li {
    display: flex;
    align-items: center;
    color: var(--color-text);
    margin-bottom: 0.25rem;
  }

  .detail-features i {
    color: var(--color-primary);
    font-size: 0.75rem;
    margin-right: 0.5rem;
  }

  /* Guide Section */
  .guide-section {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .guide-wrapper {
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
  }

  .guide-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
  }

  .guide-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
    color: var(--color-primary);
  }

  .guide-text {
    color: var(--color-text);
  }

  .guide-arrow {
    font-size: 0.875rem;
    margin: 0 0.5rem;
    color: #94a3b8;
  }

  .guide-info-box {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    margin-top: 3rem;
  }

  html.dark .guide-info-box {
    background-color: rgba(30, 41, 59, 0.5);
  }

  /* FAQ Section */
  .faq-wrapper {
    max-width: 48rem; /* max-w-3xl */
    margin: 0 auto;
  }

  .faq-header {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-heading);
    border-bottom: 4px solid var(--color-primary);
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-bottom: 2rem;
  }

  .faq-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .faq-question {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
  }

  .faq-answer {
    color: var(--color-text-muted);
  }

  /* Footer CTA */
  .footer-section {
    padding: 3rem 1rem;
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    text-align: center;
  }

  .footer-text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
  }

  .info-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1031;
    display: none;
  }
  .info-modal__container {
    height: calc(100% - 20px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .info-modal__container img {
    height: 100%;
  }
  .info-modal__backdrop {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
  }
