/* ============================================
   TaskoNote – Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1A1A2E;
  --primary-light: #16213E;
  --accent: #F5C542;
  --accent-hover: #E5B732;
  --cat-todo: #F5C542;
  --cat-clean: #4A90D9;
  --cat-progress: #F5A623;
  --cat-done: #7ED321;
  --bg: #F8F9FA;
  --card: #FFFFFF;
  --text: #2D3436;
  --text-light: #636E72;
  --text-white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.4rem;
}

.nav-logo img,
.nav-logo svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: var(--text-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 197, 66, 0.15);
  border: 1px solid rgba(245, 197, 66, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-text h1 {
  margin-bottom: 20px;
  font-size: 3.5rem;
  letter-spacing: -1px;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 197, 66, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.phone-mockup {
  width: 300px;
  background: var(--card);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: perspective(800px) rotateY(-5deg);
}

.phone-screen {
  background: var(--bg);
  border-radius: 20px;
  padding: 20px;
  min-height: 500px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-header h4 {
  font-size: 1.1rem;
  color: var(--primary);
}

.phone-header .date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.phone-task {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.phone-task:nth-child(2) { animation-delay: 0.1s; }
.phone-task:nth-child(3) { animation-delay: 0.2s; }
.phone-task:nth-child(4) { animation-delay: 0.3s; }
.phone-task:nth-child(5) { animation-delay: 0.4s; }

.phone-task .color-bar {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.phone-task .task-info {
  flex: 1;
}

.phone-task .task-info h5 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}

.phone-task .task-info span {
  font-size: 0.72rem;
  color: var(--text-light);
}

.phone-task .task-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #DDD;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-task .task-check.done {
  background: var(--cat-done);
  border-color: var(--cat-done);
}

.phone-task .task-check.done::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

/* --- About Section --- */
.about {
  background: var(--card);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-illustration {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-illustration .task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 10px;
}

.about-illustration .task-row .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-illustration .task-row .bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  flex: 1;
}

.about-text h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat {
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.stat .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.feature-icon.yellow { background: rgba(245, 197, 66, 0.15); }
.feature-icon.blue { background: rgba(74, 144, 217, 0.15); }
.feature-icon.orange { background: rgba(245, 166, 35, 0.15); }
.feature-icon.green { background: rgba(126, 211, 33, 0.15); }
.feature-icon.purple { background: rgba(155, 89, 182, 0.15); }
.feature-icon.red { background: rgba(231, 76, 60, 0.15); }

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- How It Works Section --- */
.how-it-works {
  background: var(--card);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(to right, var(--cat-todo), var(--cat-clean), var(--cat-progress), var(--cat-done));
  border-radius: 2px;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  border: 3px solid var(--accent);
  transition: var(--transition);
}

.step:hover .step-number {
  background: var(--accent);
  color: var(--primary);
}

.step h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.step p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- Categories Section --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.category-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* --- Privacy Section --- */
.privacy-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  text-align: center;
}

.privacy-section .section-header h2 {
  color: var(--text-white);
}

.privacy-section .section-header h2::after {
  background: var(--accent);
}

.privacy-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  transition: var(--transition);
}

.privacy-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.privacy-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.privacy-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.privacy-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.privacy-note {
  margin-top: 40px;
  padding: 20px 32px;
  background: rgba(245, 197, 66, 0.1);
  border: 1px solid rgba(245, 197, 66, 0.25);
  border-radius: var(--radius-sm);
  display: inline-block;
  font-size: 1.05rem;
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Privacy Policy Page --- */
.policy-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.policy-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: 48px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.policy-content .subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--bg);
}

.policy-content h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.policy-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.policy-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-content li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}

.policy-content .highlight-box {
  background: rgba(245, 197, 66, 0.08);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.policy-content .highlight-box p {
  color: var(--text);
  margin-bottom: 0;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }

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

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .phone-mockup {
    transform: none;
    width: 260px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .steps::before {
    display: none;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-items {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .hero-text h1 { font-size: 2.4rem; }

  .section {
    padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

  .steps {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .policy-content {
    padding: 32px 24px;
  }

  .policy-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero-text h1 { font-size: 2rem; }

  .hero-badge { font-size: 0.78rem; }

  .btn { padding: 12px 22px; font-size: 0.9rem; }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}
