
:root {
  --tf-primary: #3bb;
  --tf-primary-dark: #072;
  --tf-accent: #d85;
  --tf-bg: #f7f8fb;
  --tf-surface: #ffffff;
  --tf-text: #111827;
  --tf-muted: #6b7280;
  --tf-radius-lg: 24px;
  --tf-radius-md: 18px;
  --tf-radius-sm: 12px;
  --tf-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f0fbff 0, #f7f8fb 42%, #f0f7ff 100%);
  color: var(--tf-text);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: none;
}

.tf-container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.tf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(59, 187, 187, 0.08);
  color: var(--tf-primary-dark);
}

/* Header */

.tf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.tf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.tf-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tf-logo-text {
  display: flex;
  flex-direction: column;
}

.tf-logo-text span:first-child {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tf-logo-text span:last-child {
  font-size: 0.78rem;
  color: var(--tf-muted);
}

.tf-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tf-nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tf-nav-links a {
  position: relative;
}

.tf-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.tf-nav-links a:hover::after {
  width: 100%;
}

.tf-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.tf-btn-ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--tf-text);
}

.tf-btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.8);
}

.tf-btn-primary {
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-accent));
  color: white;
  box-shadow: 0 12px 30px rgba(59, 187, 187, 0.35);
}

.tf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(59, 187, 187, 0.45);
}

.tf-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Mobile nav */

.tf-nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.3rem;
}

.tf-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  position: relative;
}

.tf-nav-toggle span::before,
.tf-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.tf-nav-toggle span::before {
  top: -6px;
}

.tf-nav-toggle span::after {
  top: 6px;
}

@media (max-width: 920px) {
  .tf-nav-links,
  .tf-nav-cta {
    display: none;
  }

  .tf-nav-toggle {
    display: inline-flex;
  }

  .tf-header-inner {
    padding-inline: 0.25rem;
  }
}

/* Hero */

.tf-hero {
  padding: 3.5rem 0 3rem;
}

.tf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.tf-hero-copy {
  max-width: 540px;
}

.tf-hero-eyebrow {
  margin-bottom: 0.9rem;
}

.tf-hero-title {
  font-size: clamp(2.35rem, 3vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.tf-hero-title span {
  background: linear-gradient(135deg, var(--tf-primary-dark), var(--tf-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tf-hero-desc {
  font-size: 0.98rem;
  color: var(--tf-muted);
  margin-bottom: 1.4rem;
}

.tf-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
}

.tf-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--tf-muted);
}

.tf-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-hero-meta span::before {
  content: "●";
  font-size: 0.48rem;
  color: var(--tf-primary);
}

.tf-hero-sub {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.tf-hero-sub strong {
  color: var(--tf-primary-dark);
}

.tf-hero-media {
  position: relative;
}

.tf-hero-card {
  position: relative;
  border-radius: 32px;
  padding: 0.9rem;
  background: radial-gradient(circle at top left, #ffffff 0, #f5f9ff 40%, #e8f8ff 100%);
  box-shadow: var(--tf-shadow-soft);
  overflow: hidden;
}

.tf-hero-card-inner {
  border-radius: 24px;
  overflow: hidden;
}

.tf-hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-hero-badge span {
  font-weight: 600;
}

.tf-hero-badge small {
  font-size: 0.7rem;
  opacity: 0.78;
}

.tf-hero-floating {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-hero-floating strong {
  color: var(--tf-primary-dark);
}

@media (max-width: 920px) {
  .tf-hero {
    padding-top: 2.4rem;
  }

  .tf-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .tf-hero-media {
    order: -1;
  }
}

/* Features */

.tf-section {
  padding: 2.8rem 0;
}

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

.tf-section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tf-primary-dark);
  margin-bottom: 0.3rem;
}

.tf-section-title {
  font-size: 1.7rem;
  margin: 0;
}

.tf-section-subtitle {
  margin-top: 0.6rem;
  font-size: 0.96rem;
  color: var(--tf-muted);
}

.tf-features {
  padding-bottom: 1.5rem;
}

.tf-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tf-feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--tf-radius-md);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.tf-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  background: rgba(59, 187, 187, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.tf-feature-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.tf-feature-desc {
  font-size: 0.9rem;
  color: var(--tf-muted);
}

@media (max-width: 900px) {
  .tf-features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Programs */

.tf-programs {
  padding-top: 0;
}

.tf-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.tf-course-card {
  background: var(--tf-surface);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.tf-course-media {
  position: relative;
  overflow: hidden;
  max-height: 230px;
}

.tf-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease-out;
}

.tf-course-tag {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
}

.tf-course-body {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tf-course-title {
  font-size: 1rem;
  font-weight: 600;
}

.tf-course-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.tf-course-price {
  font-weight: 700;
  color: var(--tf-primary-dark);
  font-size: 1rem;
}

.tf-course-cta {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-start;
}

.tf-course-cta .tf-btn {
  padding-inline: 0.95rem;
}

.tf-course-card:hover .tf-course-media img {
  transform: scale(1.06);
}

@media (max-width: 1024px) {
  .tf-programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tf-programs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Testimonials */

.tf-testimonials {
  background: radial-gradient(circle at top left, #0b1724 0, #020617 45%, #020617 100%);
  color: #f9fafb;
  padding: 3.2rem 0 3.5rem;
}

.tf-testimonials .tf-section-header {
  margin-bottom: 1.8rem;
}

.tf-testimonials .tf-section-kicker {
  color: #a5b4fc;
}

.tf-testimonials .tf-section-title {
  color: #e5e7eb;
}

.tf-testimonials .tf-section-subtitle {
  color: #9ca3af;
}

.tf-testimonials-strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.tf-testimonial-card {
  flex: 0 0 320px;
  max-width: 340px;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 20px;
  padding: 1.2rem 1.1rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  scroll-snap-align: start;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.tf-testimonial-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.tf-testimonial-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.tf-testimonial-tagline {
  font-size: 0.75rem;
  color: #9ca3af;
}

.tf-testimonials-strip::-webkit-scrollbar {
  height: 6px;
}

.tf-testimonials-strip::-webkit-scrollbar-track {
  background: transparent;
}

.tf-testimonials-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

/* Blog */

.tf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tf-blog-card {
  background: var(--tf-surface);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.tf-blog-media {
  position: relative;
  overflow: hidden;
  max-height: 210px;
}

.tf-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease-out;
}

.tf-blog-body {
  padding: 1rem 1rem 0.9rem;
}

.tf-blog-title {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.tf-blog-excerpt {
  font-size: 0.86rem;
  color: var(--tf-muted);
}

.tf-blog-footer {
  padding: 0 1rem 1rem;
  font-size: 0.78rem;
  color: var(--tf-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tf-blog-link {
  font-weight: 600;
  color: var(--tf-primary-dark);
}

.tf-blog-card:hover .tf-blog-media img {
  transform: scale(1.06);
}

@media (max-width: 1024px) {
  .tf-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tf-blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.tf-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 2.6rem 0 1.8rem;
  margin-top: 2.4rem;
}

.tf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  font-size: 0.84rem;
}

.tf-footer h3 {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.tf-footer p {
  margin: 0.25rem 0;
  color: #9ca3af;
}

.tf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.tf-footer a {
  color: #cbd5f5;
}

.tf-footer a:hover {
  color: #ffffff;
}

.tf-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tf-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tf-footer-brand strong {
  color: #e5e7eb;
}

.tf-footer-anpc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tf-footer-anpc a {
  color: #93c5fd;
}

@media (max-width: 900px) {
  .tf-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tf-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Utilities */

.tf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.75rem;
  color: var(--tf-muted);
}
