/* ============================================================
   TextKuya Landing Page - CSS
   Client: TextKuya
   Developer: MMO IT Solutions
   ============================================================ */

/* Root Variables */
:root {
  --primary-blue: #2563EB;
  --accent-orange: #F97316;
  --neutral-gray: #1F2937;
  --background: #FAFAFA;
  --light-gray: #E5E7EB;
  --border-gray: #D1D5DB;
  --white: #ffffff;
  --max-width: 1080px;
  --transition: all 0.3s ease;
}

/* ============================================================
   Reset & Base Styles
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--neutral-gray);
  background-color: var(--background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Button Styles
   ============================================================ */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-header {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-header:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 24px 64px;
  font-size: 20px;
  font-weight: 700;
  min-width: 280px;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-submit {
  background-color: var(--accent-orange);
  color: var(--white);
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
}

.btn-submit:hover {
  background-color: var(--primary-blue);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

.pulse-btn {
  animation: pulse 5s infinite;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 16px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  height: auto;
  width: 620px;
  display: block;
}

.hero-headline {
  font-size: 48px;
  line-height: 1.2;
  color: var(--neutral-gray);
}

.hero-subheadline {
  font-size: 18px;
  color: #6B7280;
  line-height: 1.6;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================================
   Features Section
   ============================================================ */
.features {
  padding: 80px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background-color: var(--background);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: block;
}

.feature-card h3 {
  font-size: 20px;
  color: var(--neutral-gray);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: #6B7280;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

/* ============================================================
   Sign-Up Section
   ============================================================ */
.notify {
  padding: 80px 0;
  background-color: var(--background);
}

.notify-card {
  background-color: var(--white);
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.notify-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--neutral-gray);
}

.notify-card > p {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 32px;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group.checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.form-group.checkbox label {
  cursor: pointer;
  font-size: 14px;
  color: var(--neutral-gray);
}

.success-message {
  background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 100%);
  color: #1E40AF;
  padding: 32px;
  border-radius: 12px;
  border-left: 6px solid var(--primary-blue);
  animation: slideIn 0.4s ease;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  color: #10B981;
  margin-bottom: 12px;
  font-weight: bold;
}

.success-message h3 {
  font-size: 28px;
  margin: 12px 0;
  color: #1E40AF;
}

.success-message p {
  margin: 8px 0;
  font-size: 16px;
  color: #1E40AF;
}

.success-subtext {
  font-size: 14px !important;
  color: #3B82F6 !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--neutral-gray);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}

.footer p {
  margin: 8px 0;
}

.footer a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet (641px - 1024px) */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-logo-img {
    width: 450px;
  }

  .hero-headline {
    font-size: 40px;
  }

  .hero-subheadline {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .notify-card {
    padding: 40px;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .hero {
    padding: 40px 0;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-logo-img {
    width: 280px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subheadline {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .notify-card {
    padding: 30px 20px;
    margin: 20px;
  }

  .notify-card h2 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .logo-text {
    font-size: 20px;
  }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #111827;
    color: #E5E7EB;
  }

  .notify-card,
  .features {
    background-color: #1F2937;
  }

  .feature-card {
    background-color: #111827;
  }

  .form-input {
    background-color: #374151;
    color: #E5E7EB;
    border-color: #4B5563;
  }

  .footer {
    background-color: #030712;
  }

  .hero-headline,
  .notify-card h2 {
    color: #E5E7EB;
  }

  .hero-subheadline,
  .feature-card p,
  .notify-card > p {
    color: #9CA3AF;
  }
}