/* Complete redesign with clean white background and Instagram gradient accents */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  
  body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: radial-gradient(ellipse at top, rgba(131, 58, 180, 0.03) 0%, #fafafa 50%);
	min-height: 100vh;
	color: #262626;
	line-height: 1.6;
  }
  
  .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
  }
  
  /* Site Header */
  .site-header {
	background: #ffffff;
	border-bottom: 1px solid #efefef;
	padding: 16px 0;
  }
  
  .head_nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
  }
  
  .logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #262626;
	font-weight: 700;
	font-size: 1.2em;
  }
  
  .logo img {
	width: 32px;
	height: 32px;
  }
  
  /* Language Picker */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .lang-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .lang-picker select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    color: #262626;
    padding: 8px 36px 8px 12px;
    border: 1px solid #151111;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .lang-picker select:focus {
    outline: none;
    border-color: #833ab4;
    box-shadow: 0 0 0 3px rgba(131,58,180,0.15);
  }
  .lang-picker::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #833ab4;
    pointer-events: none;
  }
  @media (max-width: 480px) {
    .lang-picker select {
      padding: 8px 32px 8px 10px;
      font-size: 13px;
    }
    .lang-picker::after {
      right: 10px;
      border-left-width: 4px;
      border-right-width: 4px;
      border-top-width: 5px;
    }
  }
  
  /* Hero Header */
  .hero-header {
	position: relative;
	text-align: center;
	padding: 100px 20px 80px;
	background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	overflow: hidden;
  }
  
  .hero-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1200px;
	height: 400px;
	background: radial-gradient(ellipse at top, rgba(131, 58, 180, 0.15) 0%, rgba(253, 29, 29, 0.08) 40%, transparent 70%);
	pointer-events: none;
	filter: blur(60px);
  }
  
  .header-content {
	position: relative;
	z-index: 1;
  }
  
  h1 {
	font-size: 4em;
	font-weight: 900;
	margin-bottom: 24px;
	letter-spacing: -0.04em;
	color: #262626;
	position: relative;
	display: inline-block;
    text-wrap: balance;
  }
  
  h1::after {
	content: "";
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 70%;
	height: 6px;
	background: linear-gradient(90deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
	border-radius: 3px;
  }
  
  .subtitle {
	font-size: 1.25em;
	font-weight: 500;
	color: #525252;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.7;
  }
  
  /* Input Section */
  .input-section {
	background: radial-gradient(ellipse at center, rgba(131, 58, 180, 0.02) 0%, #fafafa 60%);
	padding: 0px 20px;
	position: relative;
  }
  
  .input-wrapper {
	max-width: 900px;
	margin: 0 auto;
	position: relative;
  }
  
  .input-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 2px;
	position: relative;
	background: linear-gradient(
	  135deg,
	  rgba(131, 58, 180, 0.3) 0%,
	  rgba(253, 29, 29, 0.3) 50%,
	  rgba(252, 176, 69, 0.3) 100%
	);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  
  .input-inner {
	background: #ffffff;
	border-radius: 14px;
	padding: 0;
	overflow: hidden;
  }
  
  #textInput {
	width: 100%;
	padding: 24px 28px;
	font-size: 1.15em;
	border: none;
	outline: none;
	font-family: inherit;
	background: #ffffff;
	color: #262626;
	transition: all 0.3s ease;
  }
  
  #textInput::placeholder {
	color: #999;
  }
  
  #textInput:focus {
	background: #fafafa;
  }
  
  /* Font Results */
  #fontResults {
	display: none;
	padding: 0px 20px;
	background: radial-gradient(ellipse at center, rgba(131, 58, 180, 0.02) 0%, #fafafa 60%);
  }
  
  #fontResults.active {
	display: block;
  }
  
  .results-header {
	text-align: center;
	margin-bottom: 40px;
  }
  
  .results-header h2 {
	font-size: 2em;
	font-weight: 700;
	color: #262626;
	margin-bottom: 8px;
  }
  
  .results-header p {
	color: #737373;
	font-size: 1em;
  }
  
  .font-grid {
	max-width: 900px;
	margin: 0 auto;
  }
  
  .font-item {
	padding: 18px 20px;
	margin-bottom: 12px;
	background: #ffffff;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1px solid #efefef;
  }
  
  .font-item:hover {
	border-color: #833ab4;
	box-shadow: 0 2px 8px rgba(131, 58, 180, 0.1);
  }
  
  .font-text {
	font-size: 1.2em;
	flex: 1;
	word-break: break-word;
	color: #262626;
  }
  
  .copy-btn {
	background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
	transition: all 0.2s ease;
	margin-left: 16px;
  }
  
  .copy-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
  }
  
  /* Features Section */
  .features-section {
	padding: 70px 20px;
	background: #ffffff;
  }
  
  .section-title {
	text-align: center;
	font-size: 2.2em;
	font-weight: 700;
	margin-bottom: 50px;
	color: #262626;
  }
  
  .features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
  }
  
  .feature-card {
	background: #ffffff;
	padding: 32px 24px;
	border-radius: 12px;
	text-align: center;
	transition: all 0.2s ease;
	border: 2px solid #efefef;
	position: relative;
  }
  
  .feature-card:hover {
	border-color: #833ab4;
	box-shadow: 0 4px 16px rgba(131, 58, 180, 0.1);
  }
  
  .feature-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    line-height: 1;               /* prevent line-height swaps */
    display: inline-flex;         /* stabilize emoji baseline */
    align-items: center;
    justify-content: center;
    height: 1em;                  /* reserve icon height */
  }
  
  .feature-card h3 {
	color: #262626;
	font-size: 1.3em;
	margin-bottom: 12px;
	font-weight: 600;
  }
  
  .feature-card p {
	color: #737373;
	line-height: 1.6;
	font-size: 0.95em;
  }
  
  /* Content Section */
  .content-section {
	padding: 70px 20px;
	background: #ffffff;
  }
  
  /* Reduce below-the-fold CLS by reserving space (Chrome supports) */
  .features-section { content-visibility: auto; contain-intrinsic-size: 800px; }
  .content-section { content-visibility: auto; contain-intrinsic-size: 1400px; }
  .faq-section { content-visibility: auto; contain-intrinsic-size: 800px; }
  
  .content-wrapper {
	max-width: 900px;
	margin: 0 auto;
  }
  
  .content-wrapper h2 {
	font-size: 2.2em;
	margin-bottom: 24px;
	color: #262626;
	font-weight: 700;
  }
  
  .content-wrapper h3 {
	font-size: 1.6em;
	margin-top: 40px;
	margin-bottom: 16px;
	color: #262626;
	font-weight: 600;
  }
  
  .content-wrapper p {
	margin-bottom: 18px;
	color: #262626;
	font-size: 1em;
	line-height: 1.7;
  }
  
  .content-wrapper ul,
  .content-wrapper ol {
	margin-left: 28px;
	margin-bottom: 20px;
  }
  
  .content-wrapper li {
	margin-bottom: 12px;
	color: #262626;
	line-height: 1.7;
	font-size: 1em;
  }
  
  .content-wrapper strong {
	color: #833ab4;
	font-weight: 600;
  }
  
  /* FAQ Section */
  .faq-section {
	padding: 70px 20px;
	background: radial-gradient(ellipse at center, rgba(131, 58, 180, 0.02) 0%, #fafafa 60%);
  }
  
  .faq-container {
	max-width: 900px;
	margin: 0 auto;
  }
  
  .faq-item {
	background: #ffffff;
	padding: 24px;
	margin-bottom: 16px;
	border-radius: 8px;
	border: 1px solid #efefef;
  }
  
  .faq-question {
	font-size: 1.15em;
	font-weight: 600;
	color: #262626;
	margin-bottom: 10px;
  }
  
  .faq-answer {
	color: #737373;
	line-height: 1.6;
	font-size: 0.95em;
  }
  
  /* Notification */
  .notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
	color: white;
	padding: 14px 24px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
	display: none;
	z-index: 1000;
	animation: slideIn 0.3s ease;
	font-weight: 500;
	font-size: 0.95em;
  }
  
  @keyframes slideIn {
	from {
	  transform: translateX(400px);
	  opacity: 0;
	}
	to {
	  transform: translateX(0);
	  opacity: 1;
	}
  }
  
  /* Footer */
  footer {
	background: #ffffff;
	border-top: 1px solid #efefef;
	padding: 40px 20px;
  }
  
  .footer_nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-bottom: 24px;
  }
  
  .footer_nav a {
	color: #737373;
	text-decoration: none;
	transition: color 0.2s ease;
  }
  
  .footer_nav a:hover {
	color: #833ab4;
  }
  
  .copyright {
	text-align: center;
	color: #737373;
	font-size: 0.9em;
  }
  
  .copyright p {
	margin-bottom: 8px;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
	.hero-header {
	  padding: 70px 20px 50px;
	}
  
	h1 {
	  font-size: 2.8em;
	}
  
	h1::after {
	  width: 85%;
	  height: 4px;
	  bottom: -10px;
	}
  
	.subtitle {
	  font-size: 1.05em;
	}
  
	.input-section {
	  padding: 40px 20px;
	}
  
	#textInput {
	  padding: 20px 24px;
	  font-size: 1.05em;
	}
  
	.section-title {
	  font-size: 1.8em;
	}
  
	.features-grid {
	  grid-template-columns: 1fr;
	}
  
	.font-item {
	  flex-direction: column;
	  align-items: flex-start;
	}
  
	.copy-btn {
	  margin-left: 0;
	  margin-top: 12px;
	  width: 100%;
	}
  
	.content-wrapper h2 {
	  font-size: 1.8em;
	}
  
	.content-wrapper h3 {
	  font-size: 1.4em;
	}
  
	.footer_nav ul {
	  flex-direction: column;
	  gap: 16px;
	}
  }

  /* Added responsive styles for small devices like iPhone SE */
  @media (max-width: 480px) {
    .hero-header {
      padding: 50px 16px 40px;
    }
    h1 {
      font-size: 2.2em;
      letter-spacing: -0.02em;
    }
    h1::after {
      width: 90%;
      height: 3px;
      bottom: -8px;
    }
    .subtitle {
      font-size: 0.95em;
      padding: 0 8px;
    }
    .container {
      padding: 0 16px;
    }
    .input-section {
      padding: 0px 16px;
    }
    #textInput {
      padding: 18px 20px;
      font-size: 1em;
    }
    #fontResults {
      padding: 0px 16px;
    }
    .results-header h2 {
      font-size: 1.6em;
    }
    .results-header p {
      font-size: 0.9em;
    }
    .font-item {
      padding: 16px;
      margin-bottom: 10px;
    }
    .font-text {
      font-size: 1.1em;
      margin-bottom: 12px;
    }
    .copy-btn {
      padding: 12px 20px;
      font-size: 0.9em;
      min-height: 44px;
    }
    .features-section,
    .content-section,
    .faq-section {
      padding: 50px 16px;
    }
    .section-title {
      font-size: 1.6em;
      margin-bottom: 35px;
    }
    .feature-card {
      padding: 28px 20px;
    }
    .feature-icon {
      font-size: 2.2em;
    }
    .feature-card h3 {
      font-size: 1.2em;
    }
    .feature-card p {
      font-size: 0.9em;
    }
    .font-item {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  /* Extra small device support (e.g., 320-375px) */
  @media (max-width: 375px) {
    h1 {
      font-size: 1.9em;
    }
    .subtitle {
      font-size: 0.9em;
    }
    #textInput {
      padding: 16px 18px;
      font-size: 0.95em;
    }
    .section-title {
      font-size: 1.4em;
    }
    .feature-card {
      padding: 24px 16px;
    }
    .feature-icon {
      font-size: 2em;
    }
    .feature-card h3 {
      font-size: 1.1em;
    }
    .content-wrapper h2 {
      font-size: 1.4em;
    }
    .content-wrapper h3 {
      font-size: 1.2em;
    }
    .content-wrapper p,
    .content-wrapper li {
      font-size: 0.9em;
    }
    table {
      font-size: 0.85em;
    }
    table th,
    table td {
      padding: 8px !important;
    }
  }
  
  /* Contact Page */
  .contact-hero {
  	text-align: center;
  	padding: 60px 0 24px;
  }
  .contact-hero h1 {
  	font-size: 2.4em;
  	letter-spacing: -0.02em;
  	margin-bottom: 12px;
  }
  .contact-section {
  	padding: 10px 0 70px;
  }
  .contact-card {
  	background: #ffffff;
  	border-radius: 12px;
  	border: 1px solid #efefef;
  	padding: 28px;
  	box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  	max-width: 900px;
  	margin: 0 auto;
  }
  .contact-grid {
  	display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  	gap: 18px;
  }
  .contact-item {
  	display: flex;
  	align-items: center;
  	gap: 14px;
  	padding: 16px;
  	border: 1px solid #efefef;
  	border-radius: 10px;
  	background: #fff;
  	transition: border-color .2s ease, box-shadow .2s ease;
  }
  .contact-item:hover {
  	border-color: #833ab4;
  	box-shadow: 0 4px 12px rgba(131,58,180,0.08);
  }
  .contact-icon {
  	font-size: 1.6em;
  	line-height: 1;
  }
  .contact-label {
  	font-weight: 600;
  	color: #262626;
  	margin-bottom: 2px;
  }
  .contact-text {
  	color: #737373;
  }
  .contact-link {
  	color: #262626;
  	text-decoration: none;
  	font-weight: 600;
  }
  .contact-link:hover {
  	color: #833ab4;
  	text-decoration: underline;
  }
  @media (max-width: 480px) {
  	.contact-hero {
  		padding: 40px 0 20px;
  	}
  	.contact-hero h1 {
  		font-size: 2em;
  	}
  	.contact-card {
  		padding: 20px;
  	}
  }
  